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