Compare commits
3 commits
2024.11.09
...
master
Author | SHA1 | Date | |
---|---|---|---|
2afc318a1c | |||
a2f1791575 | |||
6eccb27db8 |
2 changed files with 49 additions and 0 deletions
46
README.md
46
README.md
|
@ -1,5 +1,51 @@
|
||||||
# certbot-dns-ionos
|
# certbot-dns-ionos
|
||||||
|
|
||||||
|
In order to create a docker container with a certbot-dns-ionos installation,
|
||||||
|
create an empty directory with the following ``Dockerfile``:
|
||||||
|
|
||||||
|
```docker
|
||||||
|
FROM certbot/certbot
|
||||||
|
RUN pip install certbot-dns-ionos
|
||||||
|
```
|
||||||
|
|
||||||
|
Proceed to build the image
|
||||||
|
|
||||||
|
```docker
|
||||||
|
docker build -t certbot/dns-ionos .
|
||||||
|
```
|
||||||
|
if not exit make dir and set as root to secure the folder
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir -p /etc/letsencrypt/.secrets
|
||||||
|
chown root:root /etc/letsencrypt/.secrets
|
||||||
|
chmod 700 /etc/letsencrypt/.secrets
|
||||||
|
```
|
||||||
|
insert the APY KEY of IONOS in patachina.it.ini and copy
|
||||||
|
```bash
|
||||||
|
sudo cp patachina.it.ini /etc/letsencrypt/.secrets
|
||||||
|
```
|
||||||
|
|
||||||
|
Once that's finished, the application can be run as follows::
|
||||||
|
|
||||||
|
```docker
|
||||||
|
docker run --rm \
|
||||||
|
-v /var/lib/letsencrypt:/var/lib/letsencrypt \
|
||||||
|
-v /etc/letsencrypt:/etc/letsencrypt \
|
||||||
|
--cap-drop=all \
|
||||||
|
certbot/dns-ionos certonly \
|
||||||
|
--authenticator dns-ionos \
|
||||||
|
--dns-ionos-propagation-seconds 900 \
|
||||||
|
--dns-ionos-credentials \
|
||||||
|
/etc/letsencrypt/.secrets/patachina.it.ini \
|
||||||
|
--no-self-upgrade \
|
||||||
|
--keep-until-expiring --non-interactive --expand \
|
||||||
|
--server https://acme-v02.api.letsencrypt.org/directory \
|
||||||
|
-d patachina.it -d '*.patachina.it'
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Original git
|
||||||
|
|
||||||
[IONOS](https://www.ionos.de/) DNS Authenticator plugin for [Certbot](https://certbot.eff.org/)
|
[IONOS](https://www.ionos.de/) DNS Authenticator plugin for [Certbot](https://certbot.eff.org/)
|
||||||
|
|
||||||

|

|
||||||
|
|
3
patachina.it.ini
Normal file
3
patachina.it.ini
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
dns_ionos_prefix = 855b5080c2434ffc99f23fa20f09f0aa
|
||||||
|
dns_ionos_secret = bcD1lRr5af4UuXUGRSVTj-9uQxrxcj9GKcHo8D3xtaSducnWNxGx35XwqjXOwOSvTO7apFUjDWzbApUShMKPzA
|
||||||
|
dns_ionos_endpoint = https://api.hosting.ionos.com
|
Loading…
Reference in a new issue