1.安装acme脚本和所依赖的工具
curl https://get.acme.sh | sh; apt install socat -y || yum install socat -y; ~/.acme.sh/acme.sh --set-default-ca --server letsencrypt
2.用真实邮箱注册一个账号
.acme.sh/acme.sh --register-account -m 你的邮箱
3.申请证书
~/.acme.sh/acme.sh --issue -d 你的域名 --standalone -k ec-256 --force --insecure
4.安装证书
.acme.sh/acme.sh --install-cert -d 你的域名 --ecc --key-file /etc/x-ui/server.key --fullchain-file /etc/x-ui/server.crt
评论区