From 3381c72087e26a2f1e336b566df1a08b149608ba Mon Sep 17 00:00:00 2001 From: Neon Date: Mon, 22 Jul 2024 18:20:01 +0800 Subject: [PATCH] fix verify fake ca fail --- neptune/mega/tunnel/punch.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/neptune/mega/tunnel/punch.js b/neptune/mega/tunnel/punch.js index 029a0b247..bec2b0cf4 100644 --- a/neptune/mega/tunnel/punch.js +++ b/neptune/mega/tunnel/punch.js @@ -237,17 +237,9 @@ export default function ({ app, mesh }) { var key = new crypto.PrivateKey({ type: 'rsa', bits: 2048 }) var pKey = new crypto.PublicKey(key) var cert = new crypto.Certificate({ - subject: { CN: 'Fake CA' }, - publicKey: pKey, - privateKey: key, - days: 365, - }) - - cert = new crypto.Certificate({ subject: { CN: role }, publicKey: pKey, privateKey: key, - issuer: cert, days: 365, })