Update server.py
This commit is contained in:
parent
ccff74ec3b
commit
e82c4e0b4c
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ def gencert():
|
||||||
k = crypto.PKey()
|
k = crypto.PKey()
|
||||||
k.generate_key(crypto.TYPE_RSA, 1024)
|
k.generate_key(crypto.TYPE_RSA, 1024)
|
||||||
cert = crypto.X509()
|
cert = crypto.X509()
|
||||||
cert.get_subject().C = "Earth"
|
cert.get_subject().C = "US"
|
||||||
cert.get_subject().ST = "Earth"
|
cert.get_subject().ST = "Earth"
|
||||||
cert.get_subject().L = "Earth"
|
cert.get_subject().L = "Earth"
|
||||||
cert.get_subject().O = random_name
|
cert.get_subject().O = random_name
|
||||||
|
|
Loading…
Add table
Reference in a new issue