Skip to main content

Certbot dns plugin for DNSPod

Project description

Certbot DNS Plugin for DNSPod

安装

pip install certbot-dns-plugins

配置文件

假如文件路径如下:

~/.secrets/certbot/dnspod.ini

内容:

certbot_dns_plugins:dnspod_token_id = <token id>
certbot_dns_plugins:dnspod_token = <token>

chmod:

chmod 600 ~/.secrets/certbot/dnspod.ini

创建证书:

sudo certbot certonly \
-a certbot-dns-plugins:dnspod \
--certbot-dns-plugins:dnspod-credentials ~/.secrets/certbot/dnspod.ini \
-d example.com

自动续期(可以放到crontab中执行):

certbot renew --deploy-hook "service nginx reload"

crontab(每周一的1:01分执行):

1 1 * * 1 certbot renew --deploy-hook "service nginx reload"

其他

怎样编写一个certbot插件

官方插件: https://certbot.eff.org/docs/using.html#dns-plugins

其他第三方插件: https://certbot.eff.org/docs/using.html#third-party-plugins

官方插件是参数形式是:

--dns-cloudflare-credentials

而第三方插件的参数是:

--authenticator certbot-dns-plugins:dnspod

或者:

-a certbot-dns-plugins:dnspod

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

certbot-dns-plugins-0.0.1.tar.gz (6.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page