Change domain for free cPanel SSL certificate

chris_huh

Member
Dec 5, 2016
9
1
3
London
cPanel Access Level
Root Administrator
After cPanel was set up I received the email about the free cPanel-signed SSL certificate for the server's hostname.

Unfortunately the server hadn't been set up correctly and the hostname has since been changed. Is there a way to update the domain that the certificate is attached to, or force cPanel to re-check the hostname?

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
Unfortunately the server hadn't been set up correctly and the hostname has since been changed. Is there a way to update the domain that the certificate is attached to, or force cPanel to re-check the hostname?
Hello,

This should happen automatically during the next nightly cPanel update. Or, you can run the following command to update the certificate manually:

Code:
/usr/local/cpanel/bin/checkallsslcerts
Thank you.
 

chris_huh

Member
Dec 5, 2016
9
1
3
London
cPanel Access Level
Root Administrator
Thanks Michael,

I ran your suggested command and am still seeing the "Site is not secured" warning when I browse to the WHM login screen. Do I need to delete the SSL certificate and key for the old hostname from WHM's SSL Storage Manager?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
Thanks Michael,

I ran your suggested command and am still seeing the "Site is not secured" warning when I browse to the WHM login screen. Do I need to delete the SSL certificate and key for the old hostname from WHM's SSL Storage Manager?
Could you verify the URL you are using to access Web Host Manager? Replace the real domain name with an example.

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
Hello @chris_huh,

Check to see if touch files exist on the system that will prevent the AutoSSL hostname certificate generation:

Code:
ls /var/cpanel/ssl/disable_auto_hostname_certificate /var/cpanel/ssl/disable_service_certificate_management
If so, you can remove those files and then run the "/usr/local/cpanel/bin/checkallsslcerts" command again.

Thank you.
 

chris_huh

Member
Dec 5, 2016
9
1
3
London
cPanel Access Level
Root Administrator
Doesn't seem like there are any touch files:

Code:
[[email protected] ~]# ls /var/cpanel/ssl/disable_auto_hostname_certificate /var/cpanel/ssl/disable_service_certificate_management
ls: cannot access /var/cpanel/ssl/disable_auto_hostname_certificate: No such file or directory
ls: cannot access /var/cpanel/ssl/disable_service_certificate_management: No such file or directory
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here and we will update this thread with the outcome.

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
Hello,

Yes, feel free to open a ticket directly with us if your provider was unable to determine the cause of the problem.

Thanks!