Update server.py

This commit is contained in:
Nova Cat 2025-01-14 20:47:47 -08:00
parent 253bc08af4
commit 8f4a6ad6a7

View file

@ -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"