LetsEncrypt+Docker to issue certificates against DNS challenge
Running LetsEncrypt in Docker is the best way to ensure DNS plugins are available, regardless of your platform.
First, create two folders conf
and lib
in the current folder. We'll setup these as two-way shares between Docker container and host, and use to get certificates once the steps are complete.
sudo docker run -it \
--rm --name certbot \
--mount src="$(pwd)/conf",target=/etc/letsencrypt,type=bind \
--mount src="$(pwd)/lib",target=/var/lib/letsencrypt,type=bind \
certbot/certbot certonly --manual \
--preferred-challenges dns