Add SSL certificate for subdomain?

toplisek

Well-Known Member
Jan 7, 2010
190
13
68
As I understand there is an option to change the web server configuration files to tell Apache to use the new certificate for cdn.example.com.

How to add letsencrypt using the web server configuration?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
Hello @toplisek,

Can you provide some more information about how the SSL certificate was generated? For instance, is this the free cPanel-signed SSL certificate that's automatically generated for your server's hostname? Or, was some other method used to obtain this SSL certificate?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
Hello @toplisek,

We don't yet support wildcard SSL certificates from Let's Encrypt as part of the AutoSSL feature. I encourage you to vote and add feedback to the existing feature request for this at:

Let's Encrypt Wildcard Certificates

That said, are you sure you need a wildcard SSL certificate? If you are seeking to add SSL certificates for your existing subdomains, then the AutoSSL feature will automatically detect new subdomains and include them with the SSL certificates associated with the account.

Thank you.
 

toplisek

Well-Known Member
Jan 7, 2010
190
13
68
WP Multisite demands Wildcard when you use SUBdomains. In other way it should be added manually. So, it is the best option when you have many SUBdomains like 250.
 

MaxFein

Member
Jul 29, 2015
20
2
3
Portland, Oregon
cPanel Access Level
Root Administrator
WP Multisite demands Wildcard when you use SUBdomains. In other way it should be added manually. So, it is the best option when you have many SUBdomains like 250.
first, imo, if you plan to get to 250 or more, and plan to do WP style 'domain mapping' to your multisite subsites, use addon domains instead of parked domains at cPanel for the WP mapped domains - addons are are favorable re some AutoSSL CA limits, and also if only just for the logging, use addon domains.

in any case, if you want to go for the wildcard certs, see github.com/Neilpang/acme.sh/wiki/Simple-guide-to-add-TLS-cert-to-cpanel

use cPanel Api2 to do the addons and subdomains - manually at command line is still faster than cPanel UI; better to automate with some kinda bash script or such, perhaps best to integrate with WP... see PHP example in cPanel docs re :addaddondomain and figure out how to make it work with WP (eg. hook to new blog creation or something)

Caveat: New Thread - AutoSSL fails for addon domains when valid wildcard cert is installed

Cheers, Max

lil' tip: if you try integrating with WP via Api2 then maybe don't put your cPanel creds in wp-config or some random file in public path... if you go that route, stash the creds above public_html somewhere and include the file ;)
 
Last edited by a moderator: