Setting Up Manual Acme DNS Challenges with Python for SSL Certificate Generation

1. Download the File
chmod +x
2. Move the File to the Appropriate Directory
sudo mv /etc/letsencrypt/
3. Generate the SSL Certificate
sudo certbot certonly --manual --manual-auth-hook /etc/letsencrypt/ --preferred-challenges dns --debug-challenges -d \* -d
4. Set the CNAME Record with Domain Provider

Follow the instructions provided by certbot and update the CNAME record with the information provided. Ensure that the record is updated and publicly visible before proceeding.

nslookup -type=TXT
5. Obtain SSL Files

Press enter in the other terminal to complete the process. You will then have the SSL files available for use in Nginx or other services.

6. Check Certbot Timer Status
sudo systemctl status certbot.timer
7. Test Certificate Renewal
sudo certbot renew --dry-run
By following these steps, you will be able to set up manual Acme DNS challenges using Python to generate SSL certificates for your desired domains.

Published @ Aug 2023