安装acme:curl https://get.acme.sh | sh

安装socat:apt install socat

添加软链接:ln -s /root/.acme.sh/acme.sh /usr/local/bin/acme.sh

申请证书:acme.sh –issue -d <domain> –standalone

安装证书:acme.sh –installcert -d <domain> –ecc –key-file /usr/local/etc/v2ray/server.key –fullchain-file /usr/local/etc/v2ray/server.crt

证书有效期3个月,之后需要重新申请

x-ui 脚本下载

wget https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh -o x-ui.sh

然后执行它

x-ui 在更新ssl证书后需要重启才生效

Last modified: 2025年 1月 3日

Author

Comments

Write a Reply or Comment

Your email address will not be published.