diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2021-12-28 18:29:58 +0100 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2022-01-30 00:07:03 +0100 |
commit | 7e8fa46402ce688f4feb31e811d5fbff0e34732e (patch) | |
tree | 85847346fcf09c6aa4371f9f621ca99a7f5ec46a /poezio/connection.py | |
parent | 842d71abf9b044af0996fa2b5c194a4ed8ba3346 (diff) | |
download | poezio-7e8fa46402ce688f4feb31e811d5fbff0e34732e.tar.gz poezio-7e8fa46402ce688f4feb31e811d5fbff0e34732e.tar.bz2 poezio-7e8fa46402ce688f4feb31e811d5fbff0e34732e.tar.xz poezio-7e8fa46402ce688f4feb31e811d5fbff0e34732e.zip |
Try to guess CA bundle path
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'poezio/connection.py')
-rw-r--r-- | poezio/connection.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/poezio/connection.py b/poezio/connection.py index c24dd913..55cf76e3 100644 --- a/poezio/connection.py +++ b/poezio/connection.py @@ -16,6 +16,7 @@ import subprocess import sys import base64 import random +from pathlib import Path import slixmpp from slixmpp import JID, InvalidJID @@ -117,7 +118,10 @@ class Connection(slixmpp.ClientXMPP): self.ciphers = config.getstr( 'ciphers', 'HIGH+kEDH:HIGH+kEECDH:HIGH:!PSK' ':!SRP:!3DES:!aNULL') - self.ca_certs = config.getstr('ca_cert_path') or None + self.ca_certs = None + ca_certs = config.getlist('ca_cert_path') + if ca_certs and ca_certs != ['']: + self.ca_certs = list(map(Path, config.getlist('ca_cert_path'))) interval = config.getint('whitespace_interval') if int(interval) > 0: self.whitespace_keepalive_interval = int(interval) |