learning-kubernetes icon indicating copy to clipboard operation
learning-kubernetes copied to clipboard

使用 cert-manager 为 dnspod 的域名签发免费证书

Open imroc opened this issue 4 years ago • 5 comments

https://imroc.cc/learning-kubernetes/trick/cert-manager-webhook-dnspod/

概述 如果你的域名使用 DNSPod 管理,想在 Kubernetes 上为域名自动签发免费证书,可以使用 cert-manager 来实现。 cert-manager 支持许多 dns provider,但不支持国内的 dnspod,不过 cert-manager 提供了 Webhook 机制来扩展 provider,社区也有 dnspod 的 provider 实现。本文将介绍如何结合 cert-manager 与 cert-manager-webhook-dnspod 来实现为 dnspod 上的域名自动签发免费证书。 基础知识 推荐先阅读 使用 cert-manager 签发免费证书 。

imroc avatar May 11 '21 11:05 imroc

update: cert-manager-webhook-dnspod 换成了我自己开发的,支持最新 cert-manager,接入腾讯云API密钥(dnspod官方推荐方式,不用apiID和apiToken)

imroc avatar Nov 17 '21 07:11 imroc

感谢,成功创建 ewhisper.cn 证书

east4ming avatar Mar 01 '22 13:03 east4ming

请问有没有办法把创建好的证书自动上传并应用到 腾讯云的 证书管理、cloudbase云开发、cdn...啊

east4ming avatar Mar 01 '22 13:03 east4ming

@imroc update: cert-manager-webhook-dnspod 换成了我自己开发的,支持最新 cert-manager,接入腾讯云API密钥(dnspod官方推荐方式,不用apiID和apiToken)

你好, 今天 renew 证书, 报以下错误, 请帮忙看一下如何解决, 谢谢! cert-manager报错:

"reason": "PresentError",
 "message": "Error presenting challenge: the server is currently unable to handle the request (post dnspod.acme.imroc.cc)",

cert-manager-webhook-dnspod报错:

I0430 12:46:46.670500       1 main.go:123] create dnspod client successfully
E0430 12:46:47.333874       1 main.go:204] Failed to get domain id cn.: no domain found in zone cn.

east4ming avatar Apr 30 '22 14:04 east4ming

@east4ming

@imroc update: cert-manager-webhook-dnspod 换成了我自己开发的,支持最新 cert-manager,接入腾讯云API密钥(dnspod官方推荐方式,不用apiID和apiToken)

你好, 今天 renew 证书, 报以下错误, 请帮忙看一下如何解决, 谢谢! cert-manager报错:

"reason": "PresentError",
 "message": "Error presenting challenge: the server is currently unable to handle the request (post dnspod.acme.imroc.cc)",

cert-manager-webhook-dnspod报错:

I0430 12:46:46.670500       1 main.go:123] create dnspod client successfully
E0430 12:46:47.333874       1 main.go:204] Failed to get domain id cn.: no domain found in zone cn.

今天又报这个错了😭😭😭

east4ming avatar Mar 21 '23 02:03 east4ming