Home Linux ServerWeb Server Install Let’s Encrypt SSL on OpenLiteSpeed

Install Let’s Encrypt SSL on OpenLiteSpeed

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

Install Let’s Encrypt SSL on OpenLiteSpeed with a few simple steps.

I. Introduction

What is an SSL certificate?

SSL is a certificate that helps encrypt information on devices or applications that support this encryption. SSL certificate will have Private Key and Public Key, in which Public Key will be installed in terminal applications that browsers or other applications can access. Private Key will be installed in applications that handle receiving data.

Its purpose of operation is like the key to helping decrypt the data sent from the terminal, which is also encrypted through the Public Key.

What is Let’s Encrypt?

Let’s Encrypt is an SSL authentication organization like Comodo, GeoTrust and Symantec, but the difference is that they are a non-profit organization established with the auspices of influential organizations in the world Cisco, Akamai, Mozilla, Facebook… Therefore, Let’s Encrypt SSL certificates will be no different from other types of SSL certificates. However, you must renew them every 90 days to continue using them.

So how to install Let’s Encrypt SSL on a website using OpenLiteSpeed, please see the steps below.

II. Implementation guide

To install Let’s Encrypt SSL on a server using OpenLiteSpeed, you can follow these 4 steps:

Step 1: Install Certbot

Note: During the implementation process, remember to replace the domain azdigi.cf with your domain name.

With CentOS 7, Certbot is available at EPEL Repository and you just need to enable and install it with the following 2 commands:

AZDIGI Tutorial
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install certbot
    

Step 2: Create a Let’s Encrypt certificate for the domain

You need to create a certificate for your domain with the command below:

AZDIGI Tutorial
certbot certonly --webroot -w /usr/local/lsws/azdigi.cf/html/ -d azdigi.cf
    

After entering the above command, you need to enter your email and answer as follows:

  • Question 1: Enter your email to receive information
  • Question 2: You press A (Agree)
  • Question 3: You press N (No)
    After completing the information, the installation process will take a few seconds. If you receive the message below, you have completed the certificate creation.
Install Let's Encrypt SSL on OpenLiteSpeed

You will see that the path to save the certificate files will be at /etc/letsencrypt/live/azdigi.cf . You can move to the above link to see the .pem configuration files as shown below:

Install Let's Encrypt SSL on OpenLiteSpeed

In the next step, you need to declare the path to the fullchain.pem and privkey.pem files in the OpenLiteSpeed configuration.

Step 3: Configure Let’s Encrypt SSL in OpenLiteSpeed

First, you access OpenLiteSpeed under the link https://45.252.249.104:7080/ and log in with the admin information created earlier when installing OpenLiteSpeed. You can refer to the article below to reset the information if you have forgotten this information.

After successfully logging in to OpenLiteSpeed, you access Listeners (1) => Add (2).

Install Let's Encrypt SSL on OpenLiteSpeed

You fill in the information Listener Name, Port, Secure (1) and click Save (2).

Install Let's Encrypt SSL on OpenLiteSpeed

Next, click View in the Listener section (443) just created to edit.

Install Let's Encrypt SSL on OpenLiteSpeed

In the Virtual Host Mappings section, click Add (+).

Install Let's Encrypt SSL on OpenLiteSpeed

Then you Map virtual host with your domain as shown below:

Install Let's Encrypt SSL on OpenLiteSpeed

Next, click on the SSL tab (1) => click Edit (2) to edit the SSL Private Key & Certificate section.

Install Let's Encrypt SSL on OpenLiteSpeed

Enter the private key and certificate path respectively (1) => Save (2).

Private Key File <=> /etc/letsencrypt/live/azdigi.cf/privkey.pem
Certificate File <=> /etc/letsencrypt/live/azdigi.cf/fullchain.pem

Install Let's Encrypt SSL on OpenLiteSpeed

Next, click SSL Protocol (1) => Edit (2)

SSL openlite9

You tick as shown below (1) and click Save (2).

Install Let's Encrypt SSL on OpenLiteSpeed

Now you restart Litespeed by clicking on the Graceful Restart button:

SSL openlite11

Step 4: Check SSL operation after installation

If you use WordPress, you can install and activate the Really Simple SSL Plugin so that the website automatically redirects http => https and can check it on the website.

Install Let's Encrypt SSL on OpenLiteSpeed

Alternatively, you visit the SSL Shopper page to check. Here will check the details of the time limit and SSL certificate provider you use.

Install Let's Encrypt SSL on OpenLiteSpeed

III. Summary

Thus, AZDIGI has shown you how to install Let’s Encrypt SSL on websites using OpenLiteSpeed in the most detail. Installing this seemingly simple SSL helps a lot for your website in terms of security as well as good for SEO. Hopefully, this article will help you to install Let’s Encrypt SSL successfully!

If you find the article helpful, please share it widely. In addition, you can refer to some other articles about OpenLiteSpeed at the link below:

If you need assistance, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign