diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e6d06ea --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:latest + +ADD safedns.ini / + +RUN apt update +RUN apt install certbot -y +RUN pip install certbot-dns-safedns + +CMD /bin/bash \ No newline at end of file diff --git a/README.md b/README.md index 75eded0..e0232ab 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,31 @@ # SafeDNS Authenticator plugin for Certbot +## Quickstart +Get the latest plugin image. +```bash +docker run -it ukfast/certbot-dns-safedns:latest /bin/bash +``` + +Add API key to safedns.ini +```bash +vim /safedns.ini +``` + +Run certbot with the SafeDNS plugin. +```bash +certbot certonly \ + --authenticator certbot-dns-safedns:dns_safedns \ + --certbot-dns-safedns:dns_safedns-credentials /safedns.ini \ + --certbot-dns-safedns:dns_safedns-propagation-seconds 900 \ + --server https://acme-v02.api.letsencrypt.org/directory \ + -d 'example.com' \ + -d '*.example.com' +``` + +Retrieve certs from ```/etc/letsencrypt/live/``` + + + ## Setup ```bash diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5960cda --- /dev/null +++ b/requirements.txt @@ -0,0 +1,34 @@ +acme==1.3.0 +certbot==1.3.0 +certbot-dns-safedns==0.1.13 +certifi==2020.4.5.1 +cffi==1.14.0 +chardet==3.0.4 +ConfigArgParse==1.2.1 +configobj==5.0.6 +cryptography==2.9 +distro==1.5.0 +dns-lexicon==3.3.19 +future==0.18.2 +idna==2.9 +josepy==1.3.0 +mock==4.0.2 +parsedatetime==2.5 +pycparser==2.20 +pyOpenSSL==19.1.0 +pyRFC3339==1.1 +pytz==2019.3 +PyYAML==5.3.1 +requests==2.23.0 +requests-file==1.4.3 +requests-toolbelt==0.9.1 +six==1.14.0 +tldextract==2.2.2 +urllib3==1.25.8 +zope.component==4.6.1 +zope.deferredimport==4.3.1 +zope.deprecation==4.4.0 +zope.event==4.4 +zope.hookable==5.0.1 +zope.interface==5.1.0 +zope.proxy==4.3.5 diff --git a/safedns.ini b/safedns.ini new file mode 100644 index 0000000..f98515f --- /dev/null +++ b/safedns.ini @@ -0,0 +1,2 @@ +certbot_dns_safedns:dns_safedns_auth_token = xxxxxxxxxxxxxxxx +certbot_dns_safedns:dns_safedns_propagation_seconds = 20