Simple wrapper around dehydrated and lexicon (and snooze)
832
Simple wrapper around dehydrated and lexicon, with periodic certificate renewal using snooze
Source code: https://git.sr.ht/~sirn/docker-dehydrated-lexicon
Prepare data directory and domain to request cert:
$ mkdir -p data
$ echo example.com > data/domains.txt
Request certificate:
$ podman run -v ./data:/data --rm -it \
-e PROVIDER=gandi \
-e LEXICON_GANDI_AUTH_TOKEN=example \
-e LEXICON_GANDI_API_PROTOCOL=rest \
docker.io/sirn/dehydrated-lexicon:latest
It is possible to run renewal hook by placing a shell script inside /data/renew.d, e.g.
$ mkdir -p ./data/renew.d
$ cat <<EOF | tee ./data/renew.d/00-insecure-permissions
#!/bin/sh
echo "Using insecure permissions"
chmod 0644 "\$KEYFILE" "\$CERTFILE" "\$CHAINFILE" "\$FULLCHAINFILE" "\$FULLBUNDLE"
chmod 0755 "\$DIRNAME"
EOF
In addition to standard dehydrated certificate files, this wrapper will also create another file called fullbundle.pem in the certificate directory. This file can be used directly with Hitch, HAProxy, or other applications that require a combined private key and certificates in a single file.
Content type
Image
Digest
sha256:41d902b44…
Size
32.9 MB
Last updated
about 3 years ago
docker pull sirn/dehydrated-lexicon:0.0.0-0-907b260