Automate Root certificate installation process(particularly SSL cert)

We are working on the app which requires the installation of SSL cert as root certificate.

We did research and find out that there are two ways one is download & install cert with SFSafariViewController and other is to install with keychain services as .der file but i.e. for leaf certificate.

Our approach - SFSafariViewController will make call to certificate hosted on server and user will download the cert and the prompted the permission to open settings to show you a configuration profile.

Afterwards, in settings user has to manually install the certificate whereas we want to automate this process.

Query - we wanted to automate the process of SSL root cert installation. Is there any way to do this or is there any another process to install root certificate instead of using SFSafariViewController?