From 7ca41ebe9a37eaff563ce74836b28ef8b454f0ab Mon Sep 17 00:00:00 2001 From: iProbe Date: Mon, 4 Mar 2024 11:03:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20linux=E5=9F=BA=E7=A1=80/ac?= =?UTF-8?q?m.sh=E7=94=9F=E6=88=90=E5=85=8D=E8=B4=B9=E8=AF=81=E4=B9=A6.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux基础/acm.sh生成免费证书.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/linux基础/acm.sh生成免费证书.md b/linux基础/acm.sh生成免费证书.md index 8d32130..d01e140 100644 --- a/linux基础/acm.sh生成免费证书.md +++ b/linux基础/acm.sh生成免费证书.md @@ -9,6 +9,13 @@ acme.sh --set-default-ca --server letsencrypt ``` ### 生成并安装证书 ```bash +# 方法1 # 已配置Ali_Key与Ali_Secret acme.sh --install-cert --issue --dns dns_ali -d xhupo.com -d *.xhupo.com --key-file /item/nginx/conf/ssl/xhupo/xhupo.key --fullchain-file /item/nginx/conf/ssl/xhupo/xhupo.pem + +# 方法2 +# 生成证书 +acme.sh --issue -d xhupo.com -d www.xhupo.com --webroot /usr/share/nginx/html/xhupo/ +# 安装证书 +acme.sh --install-cert -d xhupo.com -d www.xhupo.com --key-file /etc/nginx/ssl/xhupo.com.key --fullchain-file /etc/nginx/ssl/xhupo.com.pem --reloadcmd "nginx -s reload" ``` \ No newline at end of file