Update server.py
This commit is contained in:
parent
253bc08af4
commit
8f4a6ad6a7
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue