Cara Install SSL Let’s Encrypt di OpenLiteSpeed

make sure that your VPS service is active and has OpenLiteSpeed installed. After that, you can follow these steps:

1. Install Certbot

Certbot installation first. Here are the steps,

  1. Login to VPS via SSH
  2. Run the Certbot installation command
### Ubuntu ### apt-get install certbot ### CentOS ### yum install certbot


2. Get SSL Certificate

If you have finished installing Certbot, the next step is to download the SSL certificate. Here are the steps.

  1. Login to VPS via SSH
  2. Run the command to get the SSL certificate,
certbot certonly --webroot -w /usr/local/lsws/Example/html/ -d contohdomain.com

Make adjustments to the command executed with,

  • /usr/local/lsws/Example/html/ : Change with your website's root directory
  • contohdomain.com  : Change to the domain name you want to install SSL


  1. After running the above command, you will be asked to fill in some information, among others,
  • Email Address : Please fill in your email address
  • Select Y on Terms Of Service
  • Select Y/N regarding sharing email address to the Electornic Frontier Foundation

Once completed, you will get the SSL Certificate location information as follows.

Certificate is saved at : /path/fullchain.pem Key is saved at : /path/privkey.pem

Please save the Certificate and Key path obtained, because it will be used later during configuration in OpenLiteSpeed.


3. OpenLiteSpeed Configuration

After you get the Let's Encrypt SSL Certificate. The next step is to configure your OpenLiteSpeed. Here are the steps.

  1. Login to LiteSpeed WebAdmin Consol via the URL https://ipvps/7080
  2. Enter the Listener Menu, and add a Listener by clicking the + button as shown below:
  3. Next, you will be asked to fill in some information in the Address Settings. Please fill in the following information:
    • Listener Name : Fill in the Listener Name that you want to create
    • IP Address : ANY IPv4
    • Port : 443
    • Enable REUSERPORT : Not Set
    • Secure : Yes


      After completing, please save the configuration by clicking the save logo.
  4. After finishing creating the Listener, please edit the newly created Listener as shown below,


  5. Next, on the General tab, please add Virtual Host Mapping by clicking +,

  6. In the Virtual Host Mapping settings, please fill in the following information,

    • Virtual Host : Select Virtual Host domain
    • Domains : Fill with Domain Name


      Once done, please save the settings.
  7. Next please go to the SSL tab, and edit the SSL Private Key Certificate.

  8. Please fill in some information as follows,
    • Private Key File : Please fill in the path or location of the Private Key file obtained when generating the Certificate
    • Certificate File : Fill in the path or location of the SSL Certificate File
    • Chained Certificate : Yes

      When you have finished completing, please save the configuration.
  9. After completing the configuration, please restart the LiteSpeed Service by clicking the green logo as shown below,



  10. Please access your domain name in a browser using https to ensure successful configuration. If it can be accessed with https as shown below, it means that the configuration has been completed.

Renew SSL Let’s Encrypt

The validity period of the Let's Encrypt SSL Certificate is up to 90 days. To extend SSL, you can run the following command,

certbot renew --force-renew

Good Luck



Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.