更新 linux基础/acm.sh生成免费证书.md
This commit is contained in:
parent
c96c1d210d
commit
7ca41ebe9a
1 changed files with 7 additions and 0 deletions
|
@ -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"
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue