0

我正在尝试使用 Google Cloud 生成 http 认证,遵循本指南:https ://certbot-dns-google.readthedocs.io/en/stable/

我通过 Google Domains 拥有我的域,并且我也使用 GSuite。我创建了一个 Google Cloud 帐户(免费),但我不知道如何告诉它我的域。

最好的前进方式是什么,以便我可以获得我的域的证书?谢谢!

4

1 回答 1

0

您不一定需要使用 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)。

于 2019-11-14T22:46:53.313 回答