The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change domain for free cPanel SSL certificate

Discussion in 'Security' started by chris_huh, Dec 5, 2016.

Tags:
  1. chris_huh

    chris_huh Member

    Joined:
    Dec 5, 2016
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,171
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. chris_huh

    chris_huh Member

    Joined:
    Dec 5, 2016
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,171
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Could you verify the URL you are using to access Web Host Manager? Replace the real domain name with an example.

    Thanks!
     
  5. chris_huh

    chris_huh Member

    Joined:
    Dec 5, 2016
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    London
    cPanel Access Level:
    Root Administrator
    I access from my hostname, which is something like server.example.co.uk:2087.

    Is it possible a port needs to be opened?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,171
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  7. chris_huh

    chris_huh Member

    Joined:
    Dec 5, 2016
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Doesn't seem like there are any touch files:

    Code:
    [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
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,171
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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!
     
  9. chris_huh

    chris_huh Member

    Joined:
    Dec 5, 2016
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    London
    cPanel Access Level:
    Root Administrator
    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
     
  10. chris_huh

    chris_huh Member

    Joined:
    Dec 5, 2016
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    London
    cPanel Access Level:
    Root Administrator
    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?
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,171
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

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

    Thanks!
     
Loading...

Share This Page