Skip to main content

Change domain for free cPanel SSL certificate

Comments

10 comments

  • cPanelMichael
    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:
    /usr/local/cpanel/bin/checkallsslcerts
    Thank you.
    0
  • chris_huh
    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?
    0
  • cPanelMichael
    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!
    0
  • chris_huh
    I access from my hostname, which is something like server.example.co.uk:2087. Is it possible a port needs to be opened?
    0
  • cPanelMichael
    Hello @chris_huh, Check to see if touch files exist on the system that will prevent the AutoSSL hostname certificate generation:
    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.
    0
  • chris_huh
    Doesn't seem like there are any touch files:
    [root@server ~]# 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
    0
  • cPanelMichael
    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!
    0
  • chris_huh
    Thanks, but my cPanel license came through a Partner so I will try to contact them directly and come back to you if they can't fix it. Cheers Michael
    0
  • chris_huh
    Hi, I contacted my host but they said they couldn't do anything about it as the certificate is provided by cPanel. Shall I create a ticket with cPanel?
    0
  • cPanelMichael
    Hello, Yes, feel free to open a ticket directly with us if your provider was unable to determine the cause of the problem. Thanks!
    0

Please sign in to leave a comment.