Update server.py
This commit is contained in:
parent
7efcefc53b
commit
253bc08af4
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('<link rel="stylesheet" href="/style.css">Success!<br><br><p><a href="/" class=go>Go home</a></p>')
|
||||
resp = make_response('<link rel="stylesheet" href="/style.css">Success!<br><br><p><a href="/" class=go style="color: white;">Go home</a></p>')
|
||||
resp.set_cookie('certname',random_name)
|
||||
return resp
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue