How do I add my www domain to SSL via litespeed shell?

#1
I'm running a digital ocean wordpress droplet that uses litespeed. I got through the ssl setup via the automated login script but when I go to www.smh.construction I says run into NET::ERR_CERT_COMMON_NAME_INVALID
based on this https://www.ssllabs.com/ssltest/analyze.html?d=smh.construction I'm assuming it's because www.smh.construction is not part of the alternate names nor the common name? Thanks for any help

by the way here is what I did
Code:
Your domain: smh.construction

The domain you put is: smh.construction

Please verify it is correct. [y/N] y


Domain has been added into OpenLiteSpeed listener.


Do you wish to issue a Let's encrypt certificate for this domain? [y/N]y

smh.construction check PASS

Please enter your E-mail: MY_EMAIL@gmail.com

The E-mail you entered is: MY_EMAIL@gmail.com

Please verify it is correct: [y/N] MY_EMAIL@gmail.com

Please enter your E-mail: MY_EMAIL@gmail.com

The E-mail you entered is: MY_EMAIL@gmail.com

Please verify it is correct: [y/N] y

Saving debug log to /var/log/letsencrypt/letsencrypt.log

Plugins selected: Authenticator webroot, Installer None

Obtaining a new certificate

Performing the following challenges:

http-01 challenge for smh.construction

Using the webroot path /var/www/html for all unmatched domains.

Waiting for verification...

Cleaning up challenges


IMPORTANT NOTES:

 - Congratulations! Your certificate and chain have been saved at:

   /etc/letsencrypt/live/smh.construction/fullchain.pem

   Your key file has been saved at:

   /etc/letsencrypt/live/smh.construction/privkey.pem

   Your cert will expire on 2020-02-13. To obtain a new or tweaked

   version of this certificate in the future, simply run certbot

   again. To non-interactively renew *all* of your certificates, run

   "certbot renew"

 - If you like Certbot, please consider supporting our work by:


   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate

   Donating to EFF:                    https://eff.org/donate-le



certificate has been successfully installed...

Update certbot cronjob hook

Certbot hook update success

Do you wish to force HTTPS rewrite rule for this domain? [y/N]y

Force HTTPS rules has been added...


Enjoy your accelarated OpenLiteSpeed server.

Do you wish to update the system now? This will update the web server as well. [Y/n]? y

Update Starting...

#######################   (100%)

Update complete

Your system is up to date
 

Unique_Eric

Administrator
Staff member
#2
Hi @bvbrandon ,

If you want to include the root(www) domain, please input `www.yourdomain.com` instead of `yourdomain.com`. This way, script will auto apply certificate for both domain automatically.

You now can
- Relaunch a new server and do it again
or
- Remove cert manually and download script and run it again to apply
or
- Remove the cert and follow this doc to manually apply

Best,
Eric
 
#3
I did this step - Remove cert manually and download script and run it again to apply

it ended with
Code:
Your domain: www.smh.construction
The domain you put is: www.smh.construction
Please verify it is correct. [y/N] y

Domain has been added into OpenLiteSpeed listener.

Do you wish to issue a Let's encrypt certificate for this domain? [y/N]y
www.smh.construction inaccessible, please verify.
 
Top