Symptoms
Under some circumstances, AutoSSL may fail to issue an SSL certificate for your Addon Domain. When you check the SSL/TLS Status page in cPanel for the Addon Domain, it cannot be found.
Cause
This is a result of important entries missing from the serveralias line in the userdata files. When an Addon domain is created, it is always associated with a subdomain of the cPanel account's main domain. userdata files are created for this subdomain. For example:
/var/cpanel/userdata/$cpaneluser/addon.maindomain.tld/var/cpanel/userda/$cpanel/user/addon.maindomain.tld\_SSL
Within these files, the following line is automatically generated:
CONFIG_TEXT: serveralias: mail.maindomain.tld addondomain.tld www.maindomain.tld www.addon.maindomain.tld
Resolution
Restore the userdata file from a backup that contains the missing line(s).
After restoring the file, you then need to rebuild the Apache configuration and restart Apache:
# /scripts/rebuildhttpdconf
# /scripts/restartsrv_httpd
Comments
0 comments
Article is closed for comments.