LetsEncrypt certbot DNS-challenge

by lars on 29/03/2018

If you have ever tried to get some LetsEncrypt SSL-certificates by using the DNS-challenge, you might have been frustrated that the challenge is different each time you run it, so you have to leave it until the DNS has propagated. That means you might lose the connection to the server you are doing it on. There is a simple work-around: Let’s say you are requesting 3 certificates (or challenges), go through to the last one, do your DNS changes, then press CTRL+C to abort the certbot. Now you can wait comfortably until the DNS has propagated. When it has, simply start the certbot again using the same command, and the challenges are the same.