https - 如何将我的 Google 域与我的 Google Cloud DNS 关联?
问题描述
我正在尝试使用 Google Cloud 生成 http 认证,遵循本指南:https ://certbot-dns-google.readthedocs.io/en/stable/
我通过 Google Domains 拥有我的域,并且我也使用 GSuite。我创建了一个 Google Cloud 帐户(免费),但我不知道如何告诉它我的域。
最好的前进方式是什么,以便我可以获得我的域的证书?谢谢!
解决方案
您不一定需要使用 Google Cloud 从“Let's Encrypt”创建证书,但我会这样做。
假设 Google Domains 域名是 certme.com,我会使用 certme.com链接创建一个 GCP Cloud DNS 公共区域,那么您必须创建一个 GCP 服务帐户链接(稍后将由您的 certbot 使用)记得使用凭证您的指南中描述的类型并将其凭据下载到 cerbot 运行机器。
之后,您应该能够运行以下命令(在您的指南中描述):
certbot certonly \
--dns-google \
--dns-google-credentials /path/to/credentials.json \
--dns-google-propagation-seconds 120 \
-d certme.com
请记住,在后台,您将使用 cerbot 挑战“dns-01”,为此必须添加和验证 DNS TXT 记录(由 cerbot)。
推荐阅读
- reactjs - 我如何测试用 jest 下载 excel 文件?
- react-native - Native-base 在我的视图中不显示页脚组件 React-native
- python - skimage.util.random_noise 方法的“salt_vs_pepper”参数如何影响生成的图像?
- javascript - 如何仅在 (JavaScript) 中的第一个函数完成后触发函数
- enzyme - 不能阻止 kusama 用酶在底物中进行质押
- java - 可执行 JAR 执行不同于 eclipse 执行
- squarespace - 本地添加squarespace开发者模式的静态页面
- java - 如何测试没有参数的 void 方法?
- go - 将 JWK json 转换为公钥 golang (lestrrat-go)
- matplotlib - 在 Matplotlib 中向 3D 集合添加矩形补丁和文本补丁