In Progress How to install a certificate via uapi?

alexmyrge

Registered
Feb 11, 2021
2
1
1
Russia
cPanel Access Level
Website Owner
For installation I use the method "SSL::install_ssl". The certificate appears successfully in the panel. How can I activate a certificate on a site? The certificate that has already been installed continues to work.

Now I have to manually enter, select the certificate I need and press the activation button. Only after that on the site I see the certificate that I need!
Somehow this can be automated through UAPI?

Thank!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
11,743
1,866
363
cPanel Access Level
Root Administrator
I did confirm this behavior on my test server that a restart of Apache was required after the certificate installation happens in order for the SSL to start working in a browser.

I've opened a case with our developers to see if that is the intended behavior and if something else needs to be executed at the same time, and I'll let you know as soon as I hear back with more details.