从traefik的acme.json文件中提取TLS证书。
get-acme-certs的Python项目详细描述
获得Acme证书
从traefik acme.json文件中提取fullchain和privkey证书的快速脏脚本。 灵感来自https://gist.github.com/JayH5/f9e4dc48635f3faa63c52813ff6d115f
仅在Python 3中测试
用法
python get_acme_certs.py /path/to/acme.json myawesomesite.com /path/to/store/certs
python get_acme_certs.py -h
usage: get_acme_certs.py [-h] acme_json domain dest_dir
Grab a certificate out of Traefik's acme.json file
positional arguments:
acme_json path to the acme.json file
domain domain to get certificate for
dest_dir path to the directory to store the certificate
optional arguments:
-h, --help show this help message and exit