You want to obtain certificate for address abc.someDomain.com and xyz.someDomain.com
You email address is
yourEmail@someDomain.com (this is important cause Let’s Encrypt will send nortification emails before certificate expire)
OS is Debian
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.