Skip to content

Commit

Permalink
Merge pull request #2 from ukfast/containerisation
Browse files Browse the repository at this point in the history
Adding a dockerfile and relevant changes to the readme.md
  • Loading branch information
TomCouser authored Apr 15, 2020
2 parents f125a63 + c294e30 commit 569021b
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
34 changes: 34 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions safedns.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
certbot_dns_safedns:dns_safedns_auth_token = xxxxxxxxxxxxxxxx
certbot_dns_safedns:dns_safedns_propagation_seconds = 20

0 comments on commit 569021b

Please sign in to comment.