Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.13 KB

File metadata and controls

26 lines (19 loc) · 1.13 KB
# API token summary
#   +--- Account name
#      +---domain.tld - Zone:Read, DNS:Edit

docker run --rm -it -v "$(pwd)/out":/acme.sneilpang/acme.sh --register-account -m user@maildomain.tld

export CF_Token="sdfsdfsdfljlbjkljlkjsdfoiwje"
export CF_Account_ID="xxxxxxxxxxxxx"
export CF_Zone_ID="xxxxxxxxxxxxx"

# issuing
# [!!] remove --staging when testing is done
docker run --rm -it -v "$(pwd)/out":/acme.sh -e "CF_Token=$CF_Token" -e "CF_Account_ID=$CF_Account_ID" -e "CF_Zone_ID=$CF_Zone_ID" neilpang/acme.sh --issue --staging --dns dns_cf -d domain.tld -d "*.domain.tld" -d "*.rd.domain.tld"

# fixing attributes on host
docker run --rm  -it -v "$(pwd)/out":/acme.sh --entrypoint "/bin/chown" neilpang/acme.sh $(id -u):$(id -g) /acme.sh/domain.tld_ecc/domain.tld.key

# renewal
# settings are in out/domain.tld_ecc/domain.tld.conf
docker run --rm -it -v "$(pwd)/out":/acme.sh neilpang/acme.sh --renew --staging -d domain.tld -d "*.domain.tld" -d "*.rd.domain.tld"