diff --git a/server.py b/server.py
index 2fb0771..9117a1b 100644
--- a/server.py
+++ b/server.py
@@ -41,13 +41,13 @@ 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])
- if (open(homefolder + "/certs/" + thisname + "-privkey.pem").read() == privkeyy) and (open(homefolder + "/certs/" + thisname + "-chain.pem").read() == certt):
+ if (open(homefolder + "/certs/" + thisname + "-privkey.pem").read() == privkeyy.decode()) and (open(homefolder + "/certs/" + thisname + "-chain.pem").read() == certt.decode()):
resp = make_response('The certificate seems to already exist, loading the used file.