From 8fae9eaa72eef501c3ca97a59939d7c3eced25d5 Mon Sep 17 00:00:00 2001 From: Jeff 'Raid' Baitis Date: Tue, 27 Nov 2018 14:30:34 -0800 Subject: [PATCH] In FreeBSD, the certificate file is NOT encoded in utf8. --- nbxmpp/tls_nb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbxmpp/tls_nb.py b/nbxmpp/tls_nb.py index 3a6608d..657a929 100644 --- a/nbxmpp/tls_nb.py +++ b/nbxmpp/tls_nb.py @@ -333,7 +333,7 @@ class NonBlockingTLS(PlugIn): if not os.path.isfile(cert_path): return try: - f = open(cert_path, encoding='utf-8') + f = open(cert_path, encoding='ISO-8859-1') lines = f.readlines() except (IOError, UnicodeError) as e: log.warning('Unable to open certificate file %s: %s' % \ -- GitLab