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 details)

Uploaded Source

File details

Details for the file certbot-dns-plugins-0.0.1.tar.gz.

File metadata

  • Download URL: certbot-dns-plugins-0.0.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for certbot-dns-plugins-0.0.1.tar.gz
Algorithm Hash digest
SHA256 533478c76f9dd66350430dbaf1fd699a0045f3c31895f07bdcbe2a77c0f2b76f
MD5 1ec4110c63faf3a299002e9c33c7591b
BLAKE2b-256 755d0444a5383fc7227e8d4a01ad8391ed4d6ebda9a98818444adb5384cd4e73

See more details on using hashes here.

Supported by

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