From 21529670944b82b6ecaeebb699ea53fe3adfa3a7 Mon Sep 17 00:00:00 2001 From: swee Date: Wed, 15 Jan 2025 21:44:07 -0800 Subject: [PATCH] Update server.py --- server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.py b/server.py index 171ab94..6b17f05 100644 --- a/server.py +++ b/server.py @@ -40,6 +40,8 @@ def loadcert_backend(): if allowed_file(cert.filename) and allowed_file(privkey.filename): for i in os.listdir(homefolder + "/certs/"): thisname = "-".join(i.split("-")[:-1]) + print(thisname) + print(homefolder + "/certs/" + thisname + "-privkey.pem") if (open(homefolder + "/certs/" + thisname + "-privkey.pem").read() == privkey.read()) and (open(homefolder + "/certs/" + thisname + "-chain.pem").read() == cert.read()): resp = make_response('The certificate seems to already exist, loading the used file.

Go home

') resp.set_cookie('certname',thisname)