From 8f4a6ad6a7311d3281d98d12a46fea03771f7682 Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 14 Jan 2025 20:47:47 -0800 Subject: [PATCH] Update server.py --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 7eaee2d..67efcbe 100644 --- a/server.py +++ b/server.py @@ -51,7 +51,7 @@ def loadcert_backend(): def gencert(): random_name = ''.join(random.choice(string.ascii_lowercase+string.digits+string.ascii_uppercase) for i in range(8)) k = crypto.PKey() - k.generate_key(crypto.TYPE_RSA, 1024) + k.generate_key(crypto.TYPE_RSA, 2048) cert = crypto.X509() cert.get_subject().C = "US" cert.get_subject().ST = "Earth"