Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Go to Cloudflare console and follow SSL/TLS -> Origin Server -> Create certificate
- Copypaste two .PEM files: 'Origin Certificate' and 'Private Key'
- 2. Go to /usr/local/lsws/conf/cert/ on your server and create 2 files:
- - /privatekey.pem
- - /certificate.pem
- 3. Go to OpenLiteSpeed WebAdmin CP and follow VirtualHost -> SSL and edit block "SSL Private Key & Cerificate":
- Private Key File /usr/local/lsws/conf/cert/privatekey.pem
- Certificate File /usr/local/lsws/conf/cert/certificate.pem
- Save.
- 4. Go to the OpenLiteSpeed WebAdmin CP Listeners -> SSL and add new domain listener: domain.com, www.domain.com, *
- Go to the SSL settings and put the same, that for VirtualHost.
- Save.
- 5. Restart LiteSpeed Server (systemctl restart lsws)
- 6. Go to CloudFlare console and setup:
- - SSl -> Overview and enable "Full Strict" mode.
- - SSL -> Origin Server and enable "Authenticated Origin Pulls".
- Profit.
Advertisement
Add Comment
Please, Sign In to add comment