Symptoms
When a hostname certificate is issued, you will notice that the certificate includes the server's previous hostname.
Description
When preparing a new certificate request, the checkallsslcerts script looks at the current hostname and previous hostnames that resolve to the server. This data is stored in the following file:
/var/cpanel/hostname_history.json
Workaround
- Move hostname_history.json out of the way.
mv -v /var/cpanel/hostname_history.json{,.$(date +%s)}
- Move hostname_cert_csrs out of the way.
mv -v /var/cpanel/hostname_cert_csrs{,.$(date +%s)}
- Run the checkallsslcerts script to order a new certificate.
/usr/local/cpanel/bin/checkallsslcerts