Autossl not working in addon domains

gfserver

Active Member
Feb 18, 2015
27
4
53
cPanel Access Level
Root Administrator
Hello, this is te problem:

I add an addon domain and the SSL certificate is isssued to the linked subdomain and not to the addon domain itself.

Example:

I have the primary domain, "primary.com"

I add the "addon.com"

Result in browser:

addon.com -> INVALID SSL

addon.primary.com -> VALID SSL


cpanel.addon.com -> VALID SSL

webmail..addon.com -> VALID SSL

cPanel updated v90 and this is the first time this happens.

Any help is appreciated
 

kodeslogic

Well-Known Member
Apr 26, 2020
52
14
83
IN
cPanel Access Level
Root Administrator
If you have WHM access then posting the logs from WHM Home »SSL/TLS »Manage AutoSSL »Logs »Select a log to view:Click View Log button will help to analyze your problem and suggest you what step should be taken next to solve this issue.
 

gfserver

Active Member
Feb 18, 2015
27
4
53
cPanel Access Level
Root Administrator
Hello @kodeslogic , thanks very much for your answer, I can see in the log that autossl is checking the linked subdomain instead the addon domain:


4:27:36 PM Analyzing “addon.primary.com” …
4:27:36 PM ERROR TLS Status: Defective
ERROR Defect: NO_SSL: No SSL certificate is installed.
4:27:36 PM Analyzing “primary.com” …
4:27:36 PM SUCCESS TLS Status: OK
Certificate expiry: 11/11/20, 12:00 AM UTC (69.15 days from now)

...........
...........

...........
...........


4:29:03 PM Polling for “username”’s new certificate for “addon.primary.com” (order item ID “XXXXXXX”) …
The certificate is available. The system will now attempt to install it.
4:29:04 PM SUCCESS The certificate is now installed!

And the certificate is assigned to "addon.primary.com" and not to "addon.com"

cPanel v90, nginx, csf and bitninja.

Some years working and this is the first time this happens.

I have root access if you have some commands for checking.

I think this is happening after cPanel v90 update.

Note: I receive the email with subject "[server.name] : addon.primary.com AutoSSL certificate installed!

Thanks!
 
Last edited:

kodeslogic

Well-Known Member
Apr 26, 2020
52
14
83
IN
cPanel Access Level
Root Administrator
@gfserver

In the same logs do you see any WARN or ERROR entries for addon.com?

The second thing to make sure .htaccess file of addon.com should not contain any redirection code.
 

gfserver

Active Member
Feb 18, 2015
27
4
53
cPanel Access Level
Root Administrator
Hello @kodeslogic , thanks for your answer.

Theres no WARN or ERROR in the log for addon.com and there's not a .htaccess file in /public_html/addon.com folder. There is the .well-known folder alone.