之前使用一键脚本安装了trojan:https://raw.githubusercontent.com/V2RaySSR/Trojan/master/Trojan.sh
一段时间后发现证书过期了
[2020-09-05 09:08:18] [ERROR] 223.167.65.67:22013 SSL handshake failed: sslv3 alert certificate expired
[2020-09-05 09:08:18] [INFO] 223.167.65.67:22013 disconnected, 0 bytes received, 0 bytes sent, lasted for 1 seconds
[2020-09-05 09:08:23] [ERROR] 223.167.65.67:22021 SSL handshake failed: sslv3 alert certificate expired
[2020-09-05 09:08:23] [INFO] 223.167.65.67:22021 disconnected, 0 bytes received, 0 bytes sent, lasted for 3 seconds
故提取出一个脚本来续签证书:
curl https://get.acme.sh | sh
~/.acme.sh/acme.sh --issue -d 域名 --webroot /usr/share/nginx/html/
~/.acme.sh/acme.sh --installcert -d 域名 --key-file /usr/src/trojan-cert/private.key --fullchain-file /usr/src/trojan-cert/fullchain.cer --reloadcmd "systemctl force-reload nginx.service"
然后重启trojan
systemctl stop trojan.service
systemctl start trojan.service
网友评论