snippets > create-lets-encrypt-certificate-dns

March 04, 2020

How to manually create a Let's Encrypt certificate using Docker and the DNS challenge

docker run -it -v ${PWD}:/etc/letsencrypt --entrypoint="sh" certbot/certbot
certbot certonly -d <domain_name> --manual --preferred-challenges dns