diff --git a/server.py b/server.py index e19f19b..32902f8 100644 --- a/server.py +++ b/server.py @@ -98,7 +98,7 @@ def relay(): try: gsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) fulladdr = "gemini://" + url + ("?" + queries if queries != None else "") - contx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH) + contx = ssl.create_default_context(ssl.Purpose.SERVER_AUTH) if certfile: contx.load_cert_chain(certfile=homefolder + "/certs/" + certfile + "-chain.pem", keyfile=homefolder + "/certs/" + certfile + "-privkey.pem"); contx.verify_mode = ssl.CERT_OPTIONAL