From 5e5c93a257caca755c9dc0688f23ebe5f0dddfbb Mon Sep 17 00:00:00 2001 From: Ethan Liu Date: Sun, 25 Sep 2022 17:20:37 +0800 Subject: [PATCH] acme.sh: add Chinese translation (#8513) --- pages.zh/common/acme.sh.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pages.zh/common/acme.sh.md diff --git a/pages.zh/common/acme.sh.md b/pages.zh/common/acme.sh.md new file mode 100644 index 0000000000..71b7632a14 --- /dev/null +++ b/pages.zh/common/acme.sh.md @@ -0,0 +1,33 @@ +# acme.sh + +> 实现了 ACME 客户端协议的 shell 脚本,是 certbot 的替代品。 +> 另见 `acme.sh dns`。 +> 更多信息:. + +- 使用网站根目录模式签发证书: + +`acme.sh --issue --domain {{example.com}} --webroot {{/路径/到/网站根目录}}` + +- 使用独立模式和 80 端口为多个域名签发证书: + +`acme.sh --issue --standalone --domain {{example.com}} --domain {{www.example.com}}` + +- 使用独立 TLS 模式和 443 端口签发证书: + +`acme.sh --issue --alpn --domain {{example.com}}` + +- 使用运行中的 Nginx 的配置来签发证书: + +`acme.sh --issue --nginx --domain {{example.com}}` + +- 使用运行中的 Apache 的配置来签发证书: + +`acme.sh --issue --apache --domain {{example.com}}` + +- 使用自动 DNS API 模式签发一个通配符(\*)证书: + +`acme.sh --issue --dns {{dns_cf}} --domain {{*.example.com}}` + +- 将证书文件安装到指定位置(对自动更新证书很有用): + +`acme.sh --install-cert -d {{example.com}} --key-file {{/路径/到/example.com.key}} --fullchain-file {{/路径/到/example.com.cer}} --reloadcmd {{"systemctl force-reload nginx"}}`