From ea2cd988ab0c02af7257abdd10e6d8e32b04bfa6 Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 14 Jan 2025 20:50:13 -0800 Subject: [PATCH] Update server.py --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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