Skip to content

Commit

Permalink
Merge pull request #3 from ukfast/containerisation
Browse files Browse the repository at this point in the history
Optimised Dockerfile and updated readme.
  • Loading branch information
TomCouser authored Apr 15, 2020
2 parents 569021b + 1d2bb01 commit b588cc1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 29 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
FROM python:latest

ADD safedns.ini /

RUN apt update
RUN apt install certbot -y
RUN apt update && apt install certbot -y
RUN pip install certbot-dns-safedns

CMD /bin/bash
ENTRYPOINT certbot certonly --authenticator certbot-dns-safedns:dns_safedns --server https://acme-v02.api.letsencrypt.org/directory --no-eff-email --agree-tos --certbot-dns-safedns:dns_safedns-credentials /safedns.ini
23 changes: 1 addition & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,10 @@
# SafeDNS Authenticator plugin for Certbot

## Quickstart
Get the latest plugin image.
```bash
docker run -it ukfast/certbot-dns-safedns:latest /bin/bash
docker run -it -v $(pwd)/safedns.ini:/safedns.ini -v $(pwd):/etc/certbot ukfast/certbot-dns-safedns:latest
```

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
4 changes: 2 additions & 2 deletions safedns.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
certbot_dns_safedns:dns_safedns_auth_token = xxxxxxxxxxxxxxxx
certbot_dns_safedns:dns_safedns_propagation_seconds = 20
certbot_dns_safedns:dns_safedns_auth_token = API KEY GOES HERE
certbot_dns_safedns:dns_safedns_propagation_seconds = 60

0 comments on commit b588cc1

Please sign in to comment.