This is an old revision of the document!
Setup SSL with Let's Encrypt
Let's Encrypt is designed to provide free, automated, and open security certificate authority (CA) for everyone. It enables website owners to get security certificates within minutes. This means everyone gets a safer web experience.
Apply SSL via Let's Encrypt
- You may want to apply for your valid domain and point to your server first.
- Visit https://certbot.eff.org/ and choose your system for certbot command.
- We use CentOS7 as example.
yum install certbot certbot certonly
- Then start entering your email, domain and valid web root, e.g. /usr/local/lsws/DEFAULT/html/
- Then you should see Congratulations! if cert apply success.
- Verify cert file exist
ll /etc/letsencrypt/YOUR_DOMAIN/
- cert.pem
- chain.pem
- fullchain.pem
- privkey.pem
Setup SSL on LSWS
Access LiteSpeed Web Server Web admin → Configuration → Listeners → SSL
Method 1 with fullchain
- Private Key File:
/etc/letsencrypt/live/Your_Domain/privkey.pem
- Certificate File:
/etc/letsencrypt/live/Your_Domain/fullchaim.pem
- Chained Certificate:
Yes
- CA Certificate Path:
- CA Certificate File:
Method 2 without fullchain
- Private Key File:
/etc/letsencrypt/live/Your_Domain/privkey.pem
- Certificate File:
/etc/letsencrypt/live/Your_Domain/cert.pem
- Chained Certificate:
No
- CA Certificate Path: * CA Certificate File:
/etc/letsencrypt/live/Your_Domain/chain.pem
===== How to verify SSL===== ==== Online SSL testing tool==== ssllabs====Simple Browser check==== If cert valid, you will see Secure** in green color
You can also click it to view Connection status