Earthwalker

Search

Search IconIcon to open search

SSL Certificate

Last updated Aug 27, 2023

# Let’s Encrypt

Let’s Encrypt provide free SSL certificate:

# Obtain Certificate

Suppose:

Install software:

1
2
sudo apt update
sudo apt install certbot

Obtain certificate:

1
2
3
4
5
6
7
sudo certbot --manual --agree-tos --hsts --staple-ocsp --email yourEmail@someDomain.com -d abc.someDomain.com -d xyz.someDomain.com --rsa-key-size 4096  --preferred-challenges dns certonly

# The certbot software will guide you step by step.
# Will ask you to add 2 TEXT records to domain DNS.
# Needs 2 records because we request a certificate for 2 addresses.
# You can delete these 2 TEXT records after obtain certificate obtain successfully.
# certbot will tell you if succeed and where is the generated certificates.