Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
gcloud init   #选择1重置当前账户配置
gcloud projects create zy5447

gcloud config set project zy5447
gcloud projects add-iam-policy-binding zy5447 --member=user:544725571@qq.com --role=roles/publicca.externalAccountKeyCreator  
#这里的544725571@qq.com是我谷歌账户的名称

...

Code Block
export Tencent_SecretId="AKID7B3SjuugEYfZGiz45tSq33oNhmcEcmhPAKID7B3Sjuug****"
export Tencent_SecretKey="by71gARTGn7E5hhV4OVO1QbZJqkW6RXNby71gARTGn*****"
~/.acme.sh/acme.sh --issue --server google --dns dns_tencent -d xspay.com -d *.xspay.com --keylength ec-256

...

将certificate.crt和private.key配置到nginx的ssl中就可以生效了

如果是nginx服务器在后面加上 --reloadcmd  "/bin/systemctl force-reload nginx"  就可以实现自动刷新nginx证书了

注意:

如果是其它dns机构参考这里:https://github.com/acmesh-official/acme.sh/wiki/dnsapi

...