connect7: Fix path for certfile

This commit is contained in:
remittor
2025-12-01 13:22:46 +03:00
parent 5f77330b01
commit 151bf69e1d
+2 -2
View File
@@ -123,8 +123,8 @@ class XmirHttpServer(HTTPServer):
def server_bind(self): def server_bind(self):
import ssl import ssl
root_dir = os.path.dirname(os.path.abspath(__file__)) root_dir = os.path.dirname(os.path.abspath(__file__))
certfile = f'{root_dir}\\data\\https\\cert.crt' certfile = f'{root_dir}/data/https/cert.crt'
keyfile = f'{root_dir}\\data\\https\\cert.key' keyfile = f'{root_dir}/data/https/cert.key'
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
ctx.check_hostname = False ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_OPTIONAL ctx.verify_mode = ssl.CERT_OPTIONAL