From b30cd0029132e45f71368cfa3fca9037954627e4 Mon Sep 17 00:00:00 2001 From: chunzhi Date: Mon, 16 Mar 2026 12:44:52 -0400 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20v2ray=5Finstall=5Fscript.s?= =?UTF-8?q?h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2ray_install_script.sh | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/v2ray_install_script.sh b/v2ray_install_script.sh index 66f29e5..326f318 100644 --- a/v2ray_install_script.sh +++ b/v2ray_install_script.sh @@ -349,28 +349,6 @@ EOF echo -e "${GREEN}Nginx配置完成!${PLAIN}" } -# 下载SSL证书 -download_ssl_certificates() { - echo -e "${BLUE}正在下载SSL证书...${PLAIN}" - - # 创建SSL目录 - mkdir -p /etc/ssl - - # 下载证书和私钥文件 - curl -s -o /etc/ssl/cert.pem https://img.cdn.18g.me/cloudflare/1.pem - curl -s -o /etc/ssl/key.pem https://img.cdn.18g.me/cloudflare/1.key - - if [ ! -f /etc/ssl/cert.pem ] || [ ! -f /etc/ssl/key.pem ]; then - echo -e "${RED}证书或私钥下载失败,请检查网络连接或手动配置证书和私钥${PLAIN}" - exit 1 - fi - - # 设置证书和私钥的权限 - chmod 644 /etc/ssl/cert.pem - chmod 600 /etc/ssl/key.pem - - echo -e "${GREEN}SSL证书下载成功!${PLAIN}" -} # 启用BBR加速 enable_bbr() {