Update server.py
This commit is contained in:
parent
2152967094
commit
f761a2f536
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ def loadcert_backend():
|
||||||
thisname = "-".join(i.split("-")[:-1])
|
thisname = "-".join(i.split("-")[:-1])
|
||||||
print(thisname)
|
print(thisname)
|
||||||
print(homefolder + "/certs/" + thisname + "-privkey.pem")
|
print(homefolder + "/certs/" + thisname + "-privkey.pem")
|
||||||
|
print([open(homefolder + "/certs/" + thisname + "-privkey.pem").read()])
|
||||||
if (open(homefolder + "/certs/" + thisname + "-privkey.pem").read() == privkey.read()) and (open(homefolder + "/certs/" + thisname + "-chain.pem").read() == cert.read()):
|
if (open(homefolder + "/certs/" + thisname + "-privkey.pem").read() == privkey.read()) and (open(homefolder + "/certs/" + thisname + "-chain.pem").read() == cert.read()):
|
||||||
resp = make_response('<meta name="viewport" content="width=device-width, initial-scale=1.0"><link rel="stylesheet" href="/style.css">The certificate seems to already exist, loading the used file.<br><br><p><a href="/" class=go style="color: white;">Go home</a></p>')
|
resp = make_response('<meta name="viewport" content="width=device-width, initial-scale=1.0"><link rel="stylesheet" href="/style.css">The certificate seems to already exist, loading the used file.<br><br><p><a href="/" class=go style="color: white;">Go home</a></p>')
|
||||||
resp.set_cookie('certname',thisname)
|
resp.set_cookie('certname',thisname)
|
||||||
|
|
Loading…
Add table
Reference in a new issue