添加 ACME协议自动获取和续订TLS证书
parent
2136d0a58c
commit
a5453e60ea
16
ACME%E5%8D%8F%E8%AE%AE%E8%87%AA%E5%8A%A8%E8%8E%B7%E5%8F%96%E5%92%8C%E7%BB%AD%E8%AE%A2TLS%E8%AF%81%E4%B9%A6.md
Normal file
16
ACME%E5%8D%8F%E8%AE%AE%E8%87%AA%E5%8A%A8%E8%8E%B7%E5%8F%96%E5%92%8C%E7%BB%AD%E8%AE%A2TLS%E8%AF%81%E4%B9%A6.md
Normal file
@ -0,0 +1,16 @@
|
||||
- 安装依赖软件
|
||||
|
||||
```
|
||||
apt update
|
||||
apt install socat -y
|
||||
```
|
||||
|
||||
- 安装acme.sh
|
||||
```
|
||||
curl https://get.acme.sh | sh -s email=XXX@outlook.com
|
||||
```
|
||||
|
||||
- 生成证书,确保DNS解析到当前服务器中
|
||||
```
|
||||
~/.acme.sh/acme.sh --issue -d hostname.x.com --standalone --force
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user