文章源自柯基博客-https://www.vpspce.com/346.html
更新及安装组件Debian/Ubuntu 命令
- apt update -y
- apt install -y curl
- apt install -y socat
文章源自柯基博客-https://www.vpspce.com/346.html
更新及安装组件CentOS 命令
- yum update -y
- yum install -y curl
- yum install -y socat
安装 Acme 脚本
- curl https://get.acme.sh | sh
证书申请
自行更换代码中的域名、邮箱为你解析的域名及邮箱
- ~/.acme.sh/acme.sh --register-account -m 123@qq.com #申请账号
- ~/.acme.sh/acme.sh --issue -d vpspce.com --standalone #安装证书
- acme.sh --renew -d vpspce.com --force #更新证书 (证书会自动更新,60天更新一次)
安装证书到指定文件夹
- ~/.acme.sh/acme.sh --installcert -d vpspce.com --key-file /root/private.key --fullchain-file /root/cert.crt
文章末尾固定信息

我的微信
微信扫一扫
评论