certbot-dns-transip/README.md

94 lines
3.0 KiB
Markdown
Raw Permalink Normal View History

certbot-dns-transip
2019-08-15 17:09:36 +00:00
=====================
2024-01-27 14:24:41 +00:00
# NO longer maintained, use https://certbot-dns-transip.readthedocs.io/en/stable/ instead
transip_ DNS Authenticator plugin for Certbot
2019-08-15 17:09:36 +00:00
This plugin automates the process of completing a ``dns-01`` challenge by
creating, and subsequently removing, TXT records using the transip Remote API.
2019-08-15 17:09:36 +00:00
Configuration of transip
2019-08-15 17:09:36 +00:00
---------------------------
2019-08-15 16:46:50 +00:00
In `https://www.transip.be/cp/account/api/` you need to have to a keypair
2019-08-15 16:46:50 +00:00
2019-08-15 17:09:36 +00:00
Installation
------------
2020-09-13 14:12:56 +00:00
2019-08-15 17:09:36 +00:00
pip install certbot-dns-transip-simple
2019-08-15 17:09:36 +00:00
Named Arguments
---------------
To start using DNS authentication for transip, pass the following arguments on
2019-08-15 17:09:36 +00:00
certbot's command line:
2020-09-13 14:12:56 +00:00
`--authenticator certbot-dns-transip:dns-transip`: select the authenticator plugin (Required)
2019-08-15 17:09:36 +00:00
2020-09-13 14:12:56 +00:00
`--dns-transip-credentials`: transip Remote User credentials INI file. (Required)
2019-08-15 17:09:36 +00:00
2020-09-13 14:12:56 +00:00
`--dns-transip-propagation-seconds`: waiting time for DNS to propagate before asking the ACME server to verify the DNS record. Default: 10, Recommended: >= 600)
2019-08-15 17:09:36 +00:00
Credentials
-----------
2020-09-13 14:12:56 +00:00
An example `credentials.ini` file:
2019-08-15 17:09:36 +00:00
2020-09-13 14:12:56 +00:00
```ini
dns_transip_username = myremoteuser
dns_transip_api_key_file = path/to/transip_api_key
```
2019-08-15 17:09:36 +00:00
The path to this file can be provided interactively or using the
2020-09-13 14:12:56 +00:00
`--dns-transip-credentials` command-line argument. Certbot
2019-08-15 17:09:36 +00:00
records the path to this file for use during renewal, but does not store the
file's contents.
**CAUTION:** You should protect these API credentials as you would the
password to your transip account. Users who can read this file can use these
2019-08-15 17:09:36 +00:00
credentials to issue arbitrary API calls on your behalf. Users who can cause
Certbot to run using these credentials can complete a ``dns-01`` challenge to
acquire new certificates or revoke existing certificates for associated
domains, even if those domains aren't being managed by this server.
Certbot will emit a warning if it detects that the credentials file can be
accessed by other users on your system. The warning reads "Unsafe permissions
on credentials configuration file", followed by the path to the credentials
file. This warning will be emitted each time Certbot uses the credentials file,
including for renewal, and cannot be silenced except by addressing the issue
(e.g., by using a command like ``chmod 600`` to restrict access to the file).
Examples
--------
2020-09-13 14:12:56 +00:00
To acquire a single certificate for both `example.com` and
`*.example.com`, waiting 900 seconds for DNS propagation:
```bash
certbot certonly \
--authenticator dns-transip \
--dns-transip-credentials /etc/letsencrypt/.secrets/domain.tld.ini \
--dns-transip-propagation-seconds 900 \
--server https://acme-v02.api.letsencrypt.org/directory \
--agree-tos \
--rsa-key-size 4096 \
-d 'example.com' \
-d '*.example.com'
```
2019-08-15 17:09:36 +00:00
2020-09-13 15:59:33 +00:00
```bash
certbot certonly -d 'example.com' -d '*.example.com' --agree-tos --authenticator dns-transip --dns-transip-credentials=credentials.ini -n --email=certbot@example.com --dns-transip-propagation-seconds 600
```
It is suggested to secure the folder as follows::
chown root:root /etc/letsencrypt/.secrets
chmod 600 /etc/letsencrypt/.secrets