A combination of https://hub.docker.com/r/certbot/certbot and https://github.com/hsmade/certbot-dns-transip
Can be found on the Docker Hub at https://hub.docker.com/r/grexx/certbot-transip/
Create the following folders on your host machine:
/etc/letsencrypt/var/lib/letsencrypt/var/log/letsencryptMake sure you have your TransIP username and an API key. Save the API key in RSA format as /etc/letsencrypt/transip.key. Make sure to chmod it to the correct setting for security!
NOTE: the key must be in RSA format!
To create an RSA key from the key you get from TransIP (which is OpenSSL standard format), execute:
openssl rsa -in transip_original.key -out transip_rsa.key
/etc/letsencrypt/transip.iniCreate the file /etc/letsencrypt/transip.ini with the following content (replace my_username with your own):
certbot_dns_transip:dns_transip_username = my_username
certbot_dns_transip:dns_transip_key_file = /etc/letsencrypt/transip.key
Use it as you usually would, but then as follows:
docker run -it --rm \
-v /etc/letsencrypt:/etc/letsencrypt \
-v /var/lib/letsencrypt:/var/lib/letsencrypt \
-v /var/log/letsencrypt:/var/log/letsencrypt \
grexx/certbot-transip \
certonly --agree-tos -d \*.domain.com --email [email protected] --server https://acme-v02.api.letsencrypt.org/directory -a certbot-dns-transip:dns-transip --certbot-dns-transip:dns-transip-credentials /etc/letsencrypt/transip.ini --certbot-dns-transip:dns-transip-propagation-seconds 240
and to automatically renew:
docker run -it --rm \
-v /etc/letsencrypt:/etc/letsencrypt \
-v /var/lib/letsencrypt:/var/lib/letsencrypt \
-v /var/log/letsencrypt:/var/log/letsencrypt \
grexx/certbot-transip \
renew
Your certificates will be in /etc/letsencrypt.
Content type
Image
Digest
Size
34.5 MB
Last updated
about 5 years ago
docker pull grexx/certbot-transip