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/config.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/config.py')
-rw-r--r-- | poezio/config.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/poezio/config.py b/poezio/config.py index 9c2201e7..7bbc9268 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -30,6 +30,17 @@ ConfigDict = Dict[str, Dict[str, ConfigValue]] DEFSECTION = "Poezio" + +CA_CERT_DEFAULT_PATHS = { + '/etc/ssl/cert.pem', + '/etc/ssl/certs/ca-certificates.crt', + '/etc/ssl/certs/ca-bundle.crt', + '/etc/pki/tls/certs/ca-bundle.crt', + '/etc/ssl/certs/ca-certificates.crt', + '/etc/ca-certificates/extracted/tls-ca-bundle.pem', + '/etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt', +} + DEFAULT_CONFIG: ConfigDict = { 'Poezio': { 'ack_message_receipts': True, @@ -40,7 +51,7 @@ DEFAULT_CONFIG: ConfigDict = { 'autorejoin_delay': '5', 'autorejoin': False, 'beep_on': 'highlight private invite disconnect', - 'ca_cert_path': '', + 'ca_cert_path': ':'.join(CA_CERT_DEFAULT_PATHS), 'certificate': '', 'certfile': '', 'ciphers': 'HIGH+kEDH:HIGH+kEECDH:HIGH:!PSK:!SRP:!3DES:!aNULL', |