Update server.py
This commit is contained in:
parent
6e34c499ed
commit
7efcefc53b
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ def loadcert_backend():
|
|||
random_name = ''.join(random.choice(string.ascii_lowercase+string.digits+string.ascii_uppercase) for i in range(8))
|
||||
cert.save(homefolder + "/certs/" + random_name + "-chain.pem")
|
||||
privkey.save(homefolder + "/certs/" + random_name + "-privkey.pem")
|
||||
resp = make_response("<meta http-equiv=\"refresh\" content=\"0; url=//\" />Success!")
|
||||
resp = make_response('<link rel="stylesheet" href="/style.css">Success!<br><br><p><a href="/" class=go>Go home</a></p>')
|
||||
resp.set_cookie('certname',random_name)
|
||||
return resp
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue