apt update -y
apt install -y curl
apt install -y socat
curl https://get.acme.sh | sh
~/.acme.sh/acme.sh --register-account -m xxxxxx@gmail.com
~/.acme.sh/acme.sh --issue -d xxxx.xxxxx.xx --standalone
~/.acme.sh/acme.sh --installcert -d xxxx.xxxxx.xx --key-file /root/private.key --fullchain-file /root/cert.crt
bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)

把XXX 替换成你的邮箱以及域名。

如果证书申请失败,就换个证书机构申请。

重新加载 Bash:

source ~/.bashrc

切换 Let's Encrypt

acme.sh --set-default-ca --server letsencrypt

详情看

Last modification:October 17, 2023
如果觉得我的文章对你有用,请随意赞赏