Home Operation and Maintenance Linux Operation and Maintenance Examples of how to get a permanent free SSL certificate through Let's Encrypt. Tutorials and FAQs

Examples of how to get a permanent free SSL certificate through Let's Encrypt. Tutorials and FAQs

Jul 21, 2017 pm 05:02 PM
encrypt free permanent

The emergence of Let's Encrypt free SSL certificates will also have a big impact on traditional merchants that provide paid SSL certificate services. So far, Let's Encrypt has been cross-signed by IdenTrust, which means it can be applied and supported by mainstream browsers including FireFox and Chrome. Although it is currently in the public beta stage, there are also many users working on their own website projects. officially used in China.

Although the current Let's Encrypt free SSL certificate is valid for 90 days by default, we can also automatically renew it upon expiration, which does not affect our attempts and use.

First, preparations before installing Let's Encrypt

According to official requirements, we need system support before deploying Let's Encrypt free SSL certificates on VPS and servers. Python 2.7 or above and supports GIT tools.

This needs to be installed and upgraded according to our different system versions, because the versions provided by some service providers are fully compatible, especially the Debian environment compatibility is better than CentOS.

For example, CentOS 6 64-bit environment does not support GIT. We can also refer to "Linux CentOS 6 64-bit system installation Git tool environment tutorial" and "9 steps to upgrade CentOS5 system Python version to 2.7" for installation and upgrade.

The simplest thing is that the Debian environment does not support it. You can run "apt-get -y install git" to directly install support. If it is CentOS, directly run "yum -y install git-core" for support.

This specific problem is discussed and searched for solutions, because each environment and merchant distribution may be different.

The environment I use is centos7, so I will take this as an example.

Second, quickly obtain Let's Encrypt free SSL certificate

Obtaining the certificate and layout is still relatively complicated. Let's Encrypt must have considered the popularization of HTTPS to make it more popular. Users simply obtain and deploy SSL certificates, so they can use the following simple one-click deployment to obtain the certificate.

git clone https://github.com/letsencrypt/letsencryptcd letsencrypt
./letsencrypt-auto certonly --standalone --email admin@***.com -d ***.com -d www.***.com
Copy after login

Then execute the above script. We need to change the domain name to what we need to deploy based on our actual site conditions.

I use nginx proxy server

A little attention: If nginx is started, the certificate may not be generated , please close nginx before executing the above script.

After executing the script, the option Agree or Cancel will appear

Fill in A and press Enter

Third, Let's Encrypt free SSL certificate acquisition and application

After completing the generation of Let's Encrypt certificate, we will in "/etc/letsencrypt/live/** *.com/"There are 4 files in the domain name directory that are the generated key certificate files.

cert.pem - Apache server-side certificate

chain.pem - Apache root certificate and relay certificate
fullchain.pem - ssl_certificate file required by Nginx
privkey.pem - Security certificate KEY File

The Nginx environment I use requires the use of two certificate files, fullchain.pem and privkey.pem.

ssl_certificate /etc/letsencrypt/live/***.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/***.com/privkey.pem;
Copy after login

In the Nginx environment, just set the corresponding ssl_certificate and ssl_certificate_key paths to the two files we generated. It is best not to move or copy the files. , because when renewing, you can directly renew the directory file generated, and there is no need to manually copy it.

Fourth, solve the validity period problem of Let's Encrypt free SSL certificate

We generate from As you can see from the file, the Let's Encrypt certificate is valid for 90 days and needs to be updated and renewed manually.

./letsencrypt-auto certonly --renew-by-default --email admin@***.com -d ***.com -d www.***.com
Copy after login
In this way, we can solve the renewal problem by executing it again within 90 days, so that we can continue to use it for 90 days. If we are afraid of forgetting, we can also create a scheduled execution task, such as once a month.

Fifth, summary about Let's Encrypt free SSL certificate

A - Domain name DNS and resolution issues. When configuring Let's Encrypt free SSL certificate, the domain name must be resolved to the current VPS server, and the DNS must use the overseas domain name DNS. If you use the domestic free DNS, it may cause an error in obtaining it.

B - Before installing Let's Encrypt and deploying it, the server needs to support PYTHON2.7 and GIT environment, otherwise it cannot be deployed.

C - You need to close the nginx proxy server and execute the generate certificate command to successfully generate the certificate.

D - Let's Encrypt is free for 90 days by default and requires manual or automatic renewal before you can continue to use it.

The above is the detailed content of Examples of how to get a permanent free SSL certificate through Let's Encrypt. Tutorials and FAQs. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Where can I read Feilu novels for free? Feilu Novel reads free novel operation tutorials! Where can I read Feilu novels for free? Feilu Novel reads free novel operation tutorials! Mar 15, 2024 pm 03:10 PM

1. Where can I read Feilu novels for free? Feilu Novel reads free novel operation tutorials! 1. If you want to know where you can find free novels on the Feilu Novel App, then come and download the [Feilu Novel Free Version App] to experience it! Feilu Novel Free Edition app Category: News Reading Download Feilu Novel Free Edition app is an excellent mobile reading application, which provides users with a large number of high-quality novel resources. There are various types of novels on this platform, including fantasy, cultivation, history, romance, etc. Users can choose the genre they like to read. The reading experience of Feilu Novel Free Edition app is excellent. It has a good interface design, fast loading speed and smooth reading experience. 2. Open the downloaded app, enter the homepage, and click

How to get all free Steam games at once How to get all free Steam games at once Feb 19, 2024 pm 07:50 PM

This article will introduce how to use SteamDB's free package tool to obtain all free games on Steam at once. The SteamDB Free Tier Tool is a website and browser extension that helps you quickly find and activate free games and DLC on Steam. How to get all the free games on Steam at once If you want to know how to get all the free games on Steam at once by using SteamDB's free package tool, please use the following steps: Visit steamdb.info to view all free packages (games and DLC) on Steam list of. Click on the “SignInViaSTeamtoUnlockThisPage” option. This option will redirect you

Inventory of free and easy-to-use mobile phone screen recording software_A collection of easy-to-use mobile phone screen recording apps Inventory of free and easy-to-use mobile phone screen recording software_A collection of easy-to-use mobile phone screen recording apps Mar 02, 2024 pm 12:46 PM

The editor of this website recently took stock of some free and easy-to-use mobile phone screen recording software to help you record the screen anytime and anywhere on your mobile phone. For example, for live broadcasters and gamers, you can record your own beautiful moments. In a moment, I will give you a summary report below. I hope you like it. Inventory of free and easy-to-use mobile phone screen recording software 1, EV screen recording 1, the editor has been using this EV screen recording, it is really simple and practical, as an office artifact, it has no ads, no plug-ins, and takes up a lot of space. The memory space of your mobile phone is small, so the phone will not become laggy, and there are more video editing functions for everyone to use. The recorded video is very clear, and it supports the lossless transfer of video files between mobile devices and computer devices. Isn’t it very frustrating? You are excited. to

3 ways to upgrade win11 for free 3 ways to upgrade win11 for free Jan 07, 2024 pm 04:33 PM

Although win11 has been released for a long time, most users still use win10, so how should we upgrade win11? In fact, there are many methods that can be used. Let’s take a look at the X ways to upgrade win11 for free. 3 ways to upgrade win11 for free: Method 1: Win11 push upgrade 1. First click on "Settings" in the lower left corner 2. Then open "Update and Security" 3. After opening, you can check whether you can upgrade. It's win11. If possible, click "Download and Install". Method 2: ISO direct installation 1. We can also download the iso file directly from this site. 2. After the download is completed, right-click to select the downloaded file and click "Load" 3. Then run

Get Rich Every Day: Ace Racing Fushu's new car is available for free! Get Rich Every Day: Ace Racing Fushu's new car is available for free! Feb 21, 2024 pm 06:51 PM

Ace Racing S19 new spring season new benefits are coming. The new legendary racing car Lucky Rat is now online. The free car pickup activity will also start simultaneously to help you get rich day by day in the new year. Get rid of the post-holiday syndrome and take a look at the details of this event. Get Rich Every Day: Ace Racing Fushu’s new car is available for free! The Year of the Rat congratulates the Dragon. With joy and reluctance, you say goodbye to the Spring Festival holiday. When you return to work and study, do you always feel that you have no energy and difficulty in concentrating? Let the new benefits of the Ace Speed ​​Festival in the new spring season help you cheer up. Spirit, get rid of post-holiday syndrome! From February 18th to March 7th, the "0 Yuan to Drive a New Car" event will be launched for a limited time. After paying 1,500 gift points, drivers can drive the new legendary racing car Lucky Rat back.

win7 home basic version permanent activation key 2021 new version win7 home basic version permanent activation key 2021 new version Jul 08, 2023 pm 03:25 PM

There are multiple versions of the win7 system. Among them, the one with more commonly used functions and relatively simple functions is the win7 home version system, which is more suitable for home use. Some netizens have downloaded and installed the Win7 Home Basic Edition system, but do not know how to activate the Win7 Home Basic Edition. In fact, we can activate it with the help of win7 activation key. Below, the editor will share with you some 2021 new version of win7 home ordinary version permanent activation key to activate the win7 system. The win7 Home Basic Edition activation key is as follows: P4DBR-8YPT6-KHRB8-6T7RW-GMXGVFGTCF-8JBG2-4BK4G-36JWB-PFQXBCW4KD-MK47X-JYQ7Y-DKKTR-86T

What are some free music apps? What are some free music apps? Jul 28, 2023 pm 02:21 PM

Music apps for free listening: 1. Spotify, a very well-known music streaming platform, can search and play millions of songs on Spotify, and free users can obtain music content by watching ads; 2. Apple Music, very popular The popular music streaming application is closely integrated with iOS devices and is very convenient to use on Apple devices; 3. SoundCloud, a music sharing and social platform that allows users to upload and share their own music works; 4. YouTube Music.

How to upgrade win7 ordinary home version to ultimate version for free How to upgrade win7 ordinary home version to ultimate version for free Jul 07, 2023 pm 09:21 PM

How to upgrade win7 normal home version to ultimate version for free? As we all know, win7 ultimate version is the highest version with the most complete functions and the most expensive price. Generally, the win7 pre-installed on computers is win7 home standard or advanced version, which has limited functions. Many people want to upgrade Win7 Home Edition Ultimate, so how to upgrade Win7 Home Standard Edition Ultimate? The editor will introduce it to you in detail. How to upgrade win7 ordinary home version to ultimate version for free 1. First open the computer desktop, select all programs in the menu, and click Windows Anytime Upgtrade. 2. Select Enter upgrade key in the pop-up window, 3. Enter the upgrade key in the key input window. KH2J9-PC326-T44D4-39H6V-

See all articles