lego --email="[email protected]" --domains="example.com" --http run
lego --email="[email protected]" --domains="example.com" --http renew
# expires within 45
lego --email="[email protected]" --domains="example.com" --http renew --days 45
# callback
lego --email="[email protected]" --domains="example.com" --http renew --renew-hook="./myscript.sh"
# DNS provider
AWS_REGION=us-east-1 \
AWS_ACCESS_KEY_ID=my_id \
AWS_SECRET_ACCESS_KEY=my_key \
lego --email="[email protected]" --domains="example.com" --dns="route53" run
# CF DNS
[email protected] \
CLOUDFLARE_API_KEY=api-key \
lego --dns cloudflare --domains my.domain.com --email [email protected] run
# CF DNS Token
# 权限 Zone:Read, DNS:Edit
CLOUDFLARE_DNS_API_TOKEN=api-token \
lego --dns cloudflare --domains my.domain.com --email [email protected] run
# 阿里云 DNS
ALICLOUD_ACCESS_KEY=access-key \
ALICLOUD_SECRET_KEY=secret-key \
lego --dns alidns --domains my.domain.com --email [email protected] run
# PDNS
# https://go-acme.github.io/lego/dns/pdns/
PDNS_API_KEY=api-key \
PDNS_API_URL=http://127.0.0.1:8080 \
lego --dns pdns --domains my.domain.com --email [email protected] run
# custom csr
lego --email="[email protected]" --http --csr=/path/to/csr.pem run