美文网首页
trojan续签证书

trojan续签证书

作者: 一只特例独行de猪 | 来源:发表于2020-09-05 17:50 被阅读0次

    之前使用一键脚本安装了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
    

    相关文章

      网友评论

          本文标题:trojan续签证书

          本文链接:https://www.haomeiwen.com/subject/glyfektx.html