Add subdomains in SSL certificate

chris0147

Well-Known Member
Aug 28, 2015
118
3
68
London
cPanel Access Level
Root Administrator
Hi all,

I need some help with adding the subdomains on the ssl certificate. I've got a ssl certificate that was issued by the cPanel as I am using lets encrypt.

I can see the domains in the SSL certificate:

  • cpanel.mydomain.com
  • mail.mydomain.com
  • webdisk.mydomain.com
  • webmail.mydomain.com
  • mydomain.com
  • www. mydomain.com

I want to add smtp.mydomain.com and imap.mydomain.com in the SSL certificate but I have got no idea how I can do that.

Can you please tell me how I can add the subdomains in the SSL certificate?

I dont want to use self signed because it is not safe so I prefer to use the issuer as the cpanel as it is more safer.

I hope you will understand that.

Thanks in advance.
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,774
328
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
Just add the subdomains and then rerun autossl on that user and that should take care of it. Worst case, remove the existing SSL and then run autossl again but the first way should work I believe.
 

chris0147

Well-Known Member
Aug 28, 2015
118
3
68
London
cPanel Access Level
Root Administrator
Just add the subdomains and then rerun autossl on that user and that should take care of it. Worst case, remove the existing SSL and then run autossl again but the first way should work I believe.
Thank you for your quick reply.

I have try it but it will not generate the subdomains with the main domains as it will make it separate apart from the main domains.

Any idea?
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,774
328
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
I'm not sure I understand. If re-running autossl after subdomain creation does not work, then go to manage ssl hosts and actually remove the one that does not have the subdomains on it and then re-run autossl for that user as that will definitely work. If it doesn't you have something else going on and you should look at the autossl logs.
 

chris0147

Well-Known Member
Aug 28, 2015
118
3
68
London
cPanel Access Level
Root Administrator
I have already done it but it still make the subdomains to get separate from the main domain.

I want to generate the ssl certificate to add the subdomains with the main domain whole in one ssl certificate so I can upload the certificate on my other server for smtp and imap.

I hope you understand what I am trying to achieve.
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,774
328
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
Oh yes now I understand.

Technically speaking you're not really supposed to do that and as long as they are in the same account that won't work.

You would want to create a separate account in whm for these subdomains then autossl would generate a separate certificate for them.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
I want to generate the ssl certificate to add the subdomains with the main domain whole in one ssl certificate so I can upload the certificate on my other server for smtp and imap.
Hello @chris0147,

AutoSSL is not designed to work for that purpose. If you require a SSL certificate for subdomains that are hosted on a remote server that's not running cPanel & WHM, then you should setup and obtain the SSL certificates for those subdomains independently of AutoSSL.

Thank you.