Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Add SSL certificate for subdomain?

Discussion in 'Security' started by toplisek, Apr 17, 2018.

Tags:
  1. toplisek

    toplisek Well-Known Member

    Joined:
    Jan 7, 2010
    Messages:
    124
    Likes Received:
    6
    Trophy Points:
    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?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,822
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. toplisek

    toplisek Well-Known Member

    Joined:
    Jan 7, 2010
    Messages:
    124
    Likes Received:
    6
    Trophy Points:
    68
    #3 toplisek, Apr 18, 2018
    Last edited: Apr 18, 2018
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,822
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. toplisek

    toplisek Well-Known Member

    Joined:
    Jan 7, 2010
    Messages:
    124
    Likes Received:
    6
    Trophy Points:
    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.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,822
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. MaxFein

    MaxFein Member

    Joined:
    Jul 29, 2015
    Messages:
    20
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Portland, Oregon
    cPanel Access Level:
    Root Administrator
    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 ;)
     
    #7 MaxFein, May 22, 2018
    Last edited by a moderator: May 25, 2018
  8. toplisek

    toplisek Well-Known Member

    Joined:
    Jan 7, 2010
    Messages:
    124
    Likes Received:
    6
    Trophy Points:
    68
    Thank you for this information.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice