Regenerate self-signed SSLs for cPanel services (CLI case)

Here you can find tutorials and notes for server-side maintenance/configuration

Regenerate self-signed SSLs for cPanel services (CLI case)

Postby lik » Fri Apr 13, 2012 4:47 pm

You can re-generate self-signed SSL certificates for cPanel services from the CLI interface with the help of the following script:
Code: Select all
/usr/local/cpanel/bin/checkallsslcerts

Example of the command output:
Self Signed SSL Certificate for ftp does not match current hostname! (srv1.example.com != srv1.newdomain.com).
Creating new Certificate and Key for ftp....Done
Self Signed SSL Certificate for exim does not match current hostname! (srv1.example.com != srv1.newdomain.com).
Creating new Certificate and Key for exim....Done
Self Signed SSL Certificate for dovecot does not match current hostname! (srv1.example.com != srv1.newdomain.com).
Creating new Certificate and Key for dovecot....Done
Self Signed SSL Certificate for cpanel does not match current hostname! (srv1.example.com != srv1.newdomain.com).
Creating new Certificate and Key for cpanel....Done

As always, you can do it via WHM insterface as described at:
http://docs.cpanel.net/twiki/bin/view/11_30/WHMDocs/ManageSslcerts
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Server Side Actions

 


  • Related topics
    Replies
    Views
    Last post
cron