A shell script wrapper around lego that installs certificates into a docker/podman volume. By default its configured to use dns challenge via cloudflare. For other dns providers, please modify lego.sh and choose another dns provider.
Create a file called .env
, define EMAIL
(email used for letsencrypt
account) and CF_DNS_API_TOKEN
(see lego docs).
Example:
[email protected]
CF_DNS_API_TOKEN=998877665544332211aabbccddeeff
# Create a new certificate for example.com and test.example.com
lego-run -d example.com -d test.example.com
# Create a wildcard certificate for example.com
lego-run -d example.com -d '*.example.com'
# Renew the wildcard certificate
lego-renew -d example.com -d '*.example.com'