From 0e791559c5761e40bcd958608649fb1e6f100f38 Mon Sep 17 00:00:00 2001 From: daniel-123 Date: Fri, 15 May 2020 18:40:40 +0200 Subject: [PATCH] Assume CA bundle is UTF-8 encoded to fix #292 --- syncplay/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/client.py b/syncplay/client.py index fbb8036..7687874 100755 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -759,7 +759,7 @@ class SyncplayClient(object): self._endpoint = HostnameEndpoint(reactor, host, port) try: caCertFP = open(os.environ['SSL_CERT_FILE']) - caCertTwisted = Certificate.loadPEM(caCertFP.read()) + caCertTwisted = Certificate.loadPEM(caCertFP.read().encode('utf-8') caCertFP.close() self.protocolFactory.options = optionsForClientTLS(hostname=host) self._clientSupportsTLS = True