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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WHM keeps resetting control panel SSL cert

Discussion in 'General Discussion' started by SSy, Nov 30, 2016.

Tags:
  1. SSy

    SSy Active Member

    Joined:
    May 10, 2016
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I've gone to Manage Service SSL Certificates and updated the SSL cert for Calendar, cPanel, WebDisk, Webmail, and WHM Services. After doing this everything works fine.

    But it seems periodically on its own, WHM resets this to the original cert for the original domain WHM was installed on. How do I prevent this from happening over and over?
     
  2. SSy

    SSy Active Member

    Joined:
    May 10, 2016
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I've located one cron note that says this:

    The system will attempt to replace the certificate for the “cpanel” service with a signed certificate from the cPanel Store because the current certificate expires in less than one week.

    How do I disable this?
     
  3. SSy

    SSy Active Member

    Joined:
    May 10, 2016
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have done this:

    touch /var/cpanel/ssl/disable_auto_hostname_certificate

    will this now no longer happen?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,428
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can disable automatic service certificate management to avoid it's replacement by creating the /var/cpanel/ssl/disable_service_certificate_management file:

    Code:
    touch /var/cpanel/ssl/disable_service_certificate_management
    This will prevent cPanel from automatically replacing the certificate.

    Thank you.
     
  5. SSy

    SSy Active Member

    Joined:
    May 10, 2016
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank you!
     
  6. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,491
    Likes Received:
    60
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    The AutoSSL could be the one that is keeping the certificate reset. However, you should do both the things mentioned, one is the command that you gave and other is the one that Michael gave.

    touch /var/cpanel/ssl/disable_auto_hostname_certificate
    touch /var/cpanel/ssl/disable_service_certificate_management

    One will disable SSL check on service and other will do it on hostname. Hostname is also important one, as your server is recognized by its hostname..
     
Loading...

Share This Page