{"id":20937985,"url":"https://github.com/chenlongqiang/docker-certbot-dnspod","last_synced_at":"2025-05-13T22:31:31.434Z","repository":{"id":258640143,"uuid":"874311394","full_name":"chenlongqiang/docker-certbot-dnspod","owner":"chenlongqiang","description":"Certbot 客户端使用 Docker 从 Let's Encrypt 免费申请、续期证书，以 Dnspod 做 DNS 解析验证，官方未提供 Dnspod 验证插件，自己写个 Dockerfile 拼轮子实现下。","archived":false,"fork":false,"pushed_at":"2024-10-17T16:35:00.000Z","size":14,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T09:01:29.391Z","etag":null,"topics":["certbot","certificate","docker","free","let-s-encrypt"],"latest_commit_sha":null,"homepage":"https://lukachen.com/archives/1072/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chenlongqiang.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-17T15:49:23.000Z","updated_at":"2025-03-25T12:19:21.000Z","dependencies_parsed_at":"2024-10-20T00:16:48.218Z","dependency_job_id":null,"html_url":"https://github.com/chenlongqiang/docker-certbot-dnspod","commit_stats":null,"previous_names":["chenlongqiang/docker-certbot-dnspod"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenlongqiang%2Fdocker-certbot-dnspod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenlongqiang%2Fdocker-certbot-dnspod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenlongqiang%2Fdocker-certbot-dnspod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenlongqiang%2Fdocker-certbot-dnspod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenlongqiang","download_url":"https://codeload.github.com/chenlongqiang/docker-certbot-dnspod/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254036813,"owners_count":22003655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["certbot","certificate","docker","free","let-s-encrypt"],"created_at":"2024-11-18T22:47:06.809Z","updated_at":"2025-05-13T22:31:31.146Z","avatar_url":"https://github.com/chenlongqiang.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# readme\n近期免费证书有效期从 1 年缩短到 3 个月，避免经常要上云平台手动申请，所以想找个工具可以简单的申请、续期证书。通过了解，发现 Certbot 工具，但官方没提供 Dnspod 插件，于是找了 Python3 的封装并打包成 Docker 方便使用。\n\n## 安装与使用步骤\n1.clone 仓库\n```\ngit@github.com:chenlongqiang/docker-certbot-dnspod.git\n```\n\n2.构建镜像\n```\n# 构建 Docker 镜像\ncd docker-certbot-dnspod\ndocker build -t certbot-dnspod .\n```\n\n3.获取并填写 dnspod.ini 配置\n```\n在 https://console.dnspod.cn/account/token/token 进行 DNSPod Token 秘钥创建。\n```\n\n4.使用\n```\n# 申请新证书，执行后会进行命令行交互，填写完信息后将在 certs 目录下生成申请成功的证书\ndocker run -it --rm -v ./conf/dnspod.ini:/data/certbot/dnspod.ini -v ./certs:/etc/letsencrypt certbot-dnspod -d your_domain.com -d \"*.your_domain.com\"\n\n# 续期 certs 目录下的证书\ndocker run -it --rm -v ./conf/dnspod.ini:/data/certbot/dnspod.ini -v ./certs:/etc/letsencrypt certbot-dnspod renew\n```\n\n## certbot 相关参考资料\n官方文档：https://eff-certbot.readthedocs.io/en/latest/install.html  \n官方 Github 仓库：https://github.com/certbot/certbot  \nCertbot Python3 封装：https://pypi.org/project/certbot-dnspod/  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenlongqiang%2Fdocker-certbot-dnspod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenlongqiang%2Fdocker-certbot-dnspod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenlongqiang%2Fdocker-certbot-dnspod/lists"}