Lets encrypt using the dns method
How I got my let’s encrypt certificate using certbot.
apt install certbot
wget https://github.com/joohoi/acme-dns-certbot-joohoi/raw/master/acme-dns-auth.py
Add 3 to python in the first line so it is python3 :)
"#!/usr/bin/env python3"
Copy the script and run the certbot process.
chmod +x acme-dns-auth.py
mv acme-dns-auth.py /etc/letsencrypt/
certbot certonly --manual --manual-auth-hook /etc/letsencrypt/acme-dns-auth.py --preferred-challenges dns --debug-challenges -d \*.goutfreind.eu -d goutfreind.eu
Add the CNAME _acme_challenge to your DNS zone and press enter.
Source : Digital Ocean
Next time I’ll probably use ACME Shell script : Acmesh