Update server.py
This commit is contained in:
parent
47148dd76e
commit
59ab3d3ee2
1 changed files with 3 additions and 2 deletions
|
@ -45,8 +45,9 @@ def gencert():
|
||||||
for file_name, data in [('cert.pem', io.BytesIO(crypto.dump_certificate(crypto.FILETYPE_PEM, cert))),
|
for file_name, data in [('cert.pem', io.BytesIO(crypto.dump_certificate(crypto.FILETYPE_PEM, cert))),
|
||||||
('privkey.pem', io.BytesIO(crypto.dump_privatekey(crypto.FILETYPE_PEM, k)))]:
|
('privkey.pem', io.BytesIO(crypto.dump_privatekey(crypto.FILETYPE_PEM, k)))]:
|
||||||
zip_file.writestr(file_name, data.getvalue())
|
zip_file.writestr(file_name, data.getvalue())
|
||||||
resp = make_response(zip_buffer.getvalue(), mimetype="application/zip")
|
resp = make_response(zip_buffer.getvalue())
|
||||||
resp.set_cookie('GFG','ComputerScience Portal')
|
resp.set_cookie('certname',random_name)
|
||||||
|
resp.mimetype = "application/zip"
|
||||||
return resp
|
return resp
|
||||||
@app.route("/style.css")
|
@app.route("/style.css")
|
||||||
def style():
|
def style():
|
||||||
|
|
Loading…
Add table
Reference in a new issue