Update server.py
This commit is contained in:
parent
e20e350a0b
commit
3b565eaaa2
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ def crosserver():
|
||||||
return send_file("cross-server.png")
|
return send_file("cross-server.png")
|
||||||
@app.route("/gencert.zip")
|
@app.route("/gencert.zip")
|
||||||
def gencert():
|
def gencert():
|
||||||
random_name = str(uuid.uuid4())
|
random_name = ''.join(random.choice(string.ascii_lowercase) for i in range(8))
|
||||||
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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue