auto resetting certificates
Hello,
I have a simple virtual server setup at a hosting company with mostly all the default features. I'm pretty new to this so haven't changed much.
However, I wanted to have email security, so I created some self-signed certificates (using my host name) and installed them using cpanel/whm and "Manage Service SSL Certificates". I assigned my self-signed certs to all 4 services listed (ftp, exim, dovecot, calendar (this last includes Calendar, cPanel, WebDisk, Webmail, and WHM Services)) and hit Install. This asks me to restart the cpsrvd and once I do that everything works fine and my email client is happy.
However, sometime (I can't say when for sure but it seems to happen daily) those certs get reset to the default installed certs which doesn't match the domain of my server which causes my email client to complain and fail when trying to send emails. After this happens, I go look in xpanel/whm and "Manage Service SSL Certificates" and see the self-signed certs I installed are gone and I have to do my install all over again. Once I do that install all over again my email works fine until the next day when I have the same problem again.
What I was hoping someone could tell me is what is resetting those certs? and why? Hopefully that will help me figure out how to stop it happening.
Thanks!
-
Hello :) Are you sure the certificate name you are using for these certificates match the hostname of your server? Thank you. 0 -
Thanks for replying! My self-signed certs match the domain name that is mapped to this server, but they don't match the actual hostname of the server. Would that be a problem? What would decide it's a problem and change the certs? 0 -
New Thanks for replying! My self-signed certs match the domain name that is mapped to this server, but they don't match the actual hostname of the server. Would that be a problem? What would decide it's a problem and change the certs?
It's currently by design that service SSL certificates are reset to match the hostname of the server. There's an open feature request to change this behavior at: Make automatic reset of Service SSL Certificates Configurable Please vote and add your feedback to this request. Thank you.0 -
Thank you very much, I changed my hostname and that fixed the problem! I would have NEVER figured this out without your help, thanks again! 0 -
does that means I can not use mail.myserver.com for my mail servers, unless my server hostname is mail.myserver.com? 0 -
does that means I can not use mail.myserver.com for my mail servers, unless my server hostname is mail.myserver.com?
You can disable this automatic reset by creating the following file on cPanel version 56.0.13 and newer:/var/cpanel/ssl/disable_service_certificate_management
However, keep in mind you will need to manually manage your service SSL certificates after creating this file. Thank you.0
Please sign in to leave a comment.
Comments
6 comments