WHM isn’t exactly easy to get to what you need sometimes and today’s been no different. My self-signed SSL certificate that appears for my hosting customers when they login to cPanel or secure webmail was up for expiry today so I had to redo the generation again.
Here’s how to do it for my future reference and anyone that gets stuck doing it themselves.
- Login to WHM
- Scroll down and under “Web SSL/TLS” click on “Generate a SSL Certificate and Signing Request”
- Enter your necessary details and click on create
- Next, under “SSL/TLS” click on “Change Server Certificates”
- Choose cPanel/WHM server
- In the box next to “Domain this CRT is for” type in the host name you entered for the generation process
- Click the two fetch buttons below to automatically get the .key and .crt files
- Click submit in the top left
You should now be left with a functional SSL certificate for your cPanel/WHM server.
The way my hosting companies support representative went about it was to click on “Reset server certificates”. Whilst this initially appears fine, it sets the SSL certificate to localhost as your hostname and not your actual DNS hostname. This causes errors in email clients and web browsers.