From c96c1d210daaf1cd9993e3f1597dbb50a18c2dc2 Mon Sep 17 00:00:00 2001 From: iProbe Date: Sat, 2 Mar 2024 20:20:46 +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 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/linux基础/acm.sh生成免费证书.md b/linux基础/acm.sh生成免费证书.md index ab7742b..8d32130 100644 --- a/linux基础/acm.sh生成免费证书.md +++ b/linux基础/acm.sh生成免费证书.md @@ -1,9 +1,14 @@ +### 安装acm.sh +``` +curl https://get.acme.sh | sh +``` ### 切换ca ``` # 默认ca为zerossl acme.sh --set-default-ca --server letsencrypt ``` -### 生成证书 +### 生成并安装证书 ```bash -acme.sh --installcert --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 +# 已配置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 ``` \ No newline at end of file