arrow_back
Setting Up Manual Acme DNS Challenges with Python for SSL Certificate Generation
1. Download the acme-dns-auth.py File
wget https://nim4.me/media/file_upload/acme-dns-auth.py
chmod +x acme-dns-auth.py
2. Move the File to the Appropriate Directory
sudo mv acme-dns-auth.py /etc/letsencrypt/
3. Generate the SSL Certificate
sudo certbot certonly --manual --manual-auth-hook /etc/letsencrypt/acme-dns-auth.py --preferred-challenges dns --debug-challenges -d \*.nim4.me -d nim4.me
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 _acme-challenge.nim4.me
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