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"