Update server.py

This commit is contained in:
Nova Cat 2025-01-14 19:25:30 -08:00
parent e20e350a0b
commit 3b565eaaa2

View file

@ -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()