下面环境的安装方式,大家根据自己的系统选择命令安装就好了。
更新及安装组件
1 2 3 4 5 6 |
apt update -y # Debian/Ubuntu 命令 apt install -y curl #Debian/Ubuntu 命令 apt install -y socat #Debian/Ubuntu 命令 yum update -y #CentOS 命令 yum install -y curl #CentOS 命令 yum install -y socat #CentOS 命令 |
安装 Acme 脚本
1 |
curl https://get.acme.sh | sh |
80 端口空闲的证书申请方式
自行更换代码中的域名、邮箱为你解析的域名及邮箱
1 2 |
~/.acme.sh/acme.sh --register-account -m xxxx@xxxx.com ~/.acme.sh/acme.sh --issue -d mydomain.com --standalone |
安装证书到指定文件夹
自行更换代码中的域名为你解析的域名
1 |
~/.acme.sh/acme.sh --installcert -d mydomain.com --key-file /root/private.key --fullchain-file /root/cert.crt |
阅读全文
评论前必须登录!
立即登录 注册