We have created an integration plugin for Certbot. You can get it with ‘pip’:
pip install certbot-external-auth
Detailed instructions as well as examples can be found at Enigma Bridge’s repository:
https://github.com/EnigmaBridge/certbot-external-auth
The plugin provides integration that simplifies and allows automating verification of domain control and certificate installation. It has been primarily created and tested with Dehydrated (former letsencrypt.py). However, it supports all existing verification methods: DNS, HTTP and TLS-SNI, in their current versions “01”.