This post is from a low-reputation account and contains an unverified outbound link. Be cautious before clicking external links.

Apply for free SSL

Words
120
Reading
1 min
Listen
Play
8y

1、 Download tool
wget https://dl.eff.org/certbot-auto

2、 Application ssl
./certbot-auto certonly -d "*.affgt.com" --manual --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory

Replace "*.affgt.com" with your own domain name.

Then follow the diagram to fill in the mail and other information.Need to add DNS TXT, wait for parsing and then go down.
Image

Note: Confirm the command to resolve to TXT:

dig -t txt _acme-challenge.affgt.com @8.8.8.8

If there is no dig command to use yum install:
yum install -y bind-utils
Image

After parsing, return to the original terminal and press Enter1 to confirm.
Image

3、 You can use the command to view the certificate information:

openssl x509 -in /etc/letsencrypt/live/affgt.com/cert.pem -noout -text
Image

4、90 days renewal

certbot-auto renew

5、You can set ssl in the Nginx configuration file.
Image

My original text is here: https://www.affgt.com/index.php/551/

Apply for free SSL | Ecency