Symptoms
When a hostname certificate is issued, you will notice that the certificate includes the server's previous hostname.
Description
The checkallsslcerts script, which orders new hostname certificates, looks at the current hostname and the hostnames in /var/cpanel/hostname_history.json for hostnames that resolve to the server when preparing a new certificate request.
Workaround
- Move hostname_history.json out of the way.
mv /var/cpanel/hostname_history.json{,.backup}
- Move hostname_cert_csrs out of the way.
mv /var/cpanel/hostname_cert_csrs{,.backup}
- Run the checkallsslcerts script to order a new certificate.
/usr/local/cpanel/bin/checkallsslcerts