Acquire a Let’s Encrypt Certificate Using DNS Validation
certbot -d example.com --manual --preferred-challenges dns certonly
References
https://serverfault.com/questions/750902/how-to-use-lets-encrypt-dns-01-challenge-validation
certbot -d example.com --manual --preferred-challenges dns certonly
References
https://serverfault.com/questions/750902/how-to-use-lets-encrypt-dns-01-challenge-validation
certbot certificates
The preferred challenges for Certbot are usually one of the following:
.well-known
directory.The HTTP-01 challenge is often the easiest to use, especially for standard web server setups, while the DNS-01 challenge is necessary for more complex scenarios like wildcard certificates.
You can specify the challenge type when running Certbot with the --preferred-challenges
option, followed by the challenge type, such as:
certbot --preferred-challenges http
or
certbot --preferred-challenges dns
Keep in mind that depending on your specific setup and requirements, you might need to choose a specific challenge type or follow additional steps to successfully obtain a certificate.
sudo certbot certonly --standalone --preferred-challenges http -d example.com
When you run this command, Certbot will start a temporary web server on port 80 (unless specified otherwise) and will respond to the HTTP-01 challenge from Let’s Encrypt. Once the challenge is successfully completed, Certbot will obtain the certificate and save it to a location on your system.
Note that since the command uses the --standalone
option, you’ll need to make sure that port 80 is not in use by any other service at the time you run the command, and you’ll also need to manually configure your web server to use the obtained certificate once it’s issued.