Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Regenerate hostname SSL after IP change?

Discussion in 'Security' started by ottdev, Sep 20, 2018.

Tags:
  1. ottdev

    ottdev Well-Known Member

    Joined:
    Oct 1, 2013
    Messages:
    119
    Likes Received:
    4
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    What do you do when you have swapped out the IP address of the server hostname ? Thus the one associated with the main WHM /services cert which is supplied by cPanel?

    Under SSL/TLS - "Manage SSL Hosts" - all client domains are showing the new IPs. The server hostname certificate issued by cPanel for the WHM and services is still showing the old IP address.

    What is the process to fix this ?
    If I go to verify.cpanel.net and input the new IP, it shows license AOK.
     
    #1 ottdev, Sep 20, 2018
    Last edited: Sep 20, 2018
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    46,756
    Likes Received:
    2,095
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @ottdev,

    The free cPanel-signed SSL certificate for the server's hostname is not installed for the Apache service by default. There's a feature request open for this at:

    AutoSSL/cPanel SSL on server hostname for Apache

    If you're seeing a certificate for the server's hostname in WHM >> Manage SSL Hosts, then it means at some point you manually installed it for the hostname via WHM >> Install an SSL Certificate on a Domain. Thus, to ensure it's installed on the new IP you can delete the hostname certificate in WHM >> Manage SSL Hosts and then reinstall it using WHM >> Install an SSL Certificate on a Domain.

    If you need to regenerate the hostname SSL certificate, you can do so using the command documented at the link below:

    The checkallsslcerts Script - Version 74 Documentation - cPanel Documentation

    Let me know if you have any questions.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ottdev

    ottdev Well-Known Member

    Joined:
    Oct 1, 2013
    Messages:
    119
    Likes Received:
    4
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    SSL Host Removal
    Failed to load userdata for "$file" ($domainowner)!

    Is there typically supposed to be an end-user type cpanel "account" existing on the server for the hostname ?
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    46,756
    Likes Received:
    2,095
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @ottdev,

    No, associating the server's hostname with a cPanel account is not recommended due to the potential configuration conflicts it can cause. I can't reproduce the error message you provided, but try simply overwriting the existing certificate for the hostname by reinstalling the new certificate using WHM >> Install an SSL Certificate on a Domain instead of deleting the existing one first.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice