Introduction
There may be times when a domain's SSL certificate has become corrupt or gone missing. This article provides the steps to regenerate the certificate.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Move aside the
/var/cpanel/ssl/apache_tls/$domain.tld
folder.
Please note that "$domains.tld" must be replaced with the domain's domain name. - Run the following commands.
/usr/local/cpanel/bin/uapi --user=$username SSL rebuildssldb
/usr/local/cpanel/bin/install_best_available_certificate_for_domain $domain.tld
Please note that "$username" and "$domains.tld" must be replaced with the cPanel user's username and domain's domain name.