diff options
author | Kali Kaneko <kali@leap.se> | 2017-07-18 15:13:29 -0400 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2017-07-18 21:31:31 +0200 |
commit | 945d8d274a1ad95cee00364e48770e0a6855ae99 (patch) | |
tree | 8d3f9adab3268d882415a7ddf92d64ace5620ce9 /src/leap/bitmask | |
parent | 808281e9f2427bb7857fb659dbb9781f1bc4f2c7 (diff) |
use the passed ca_cert
if there is no ca_cert passed and the provider is configured, use the
pinned ca cert when the autoconf parameter is true.
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r-- | src/leap/bitmask/bonafide/config.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/leap/bitmask/bonafide/config.py b/src/leap/bitmask/bonafide/config.py index 611e9ed7..af031074 100644 --- a/src/leap/bitmask/bonafide/config.py +++ b/src/leap/bitmask/bonafide/config.py @@ -179,9 +179,8 @@ class Provider(object): self._disco = Discovery('https://%s' % domain) self._provider_config = None - cert_path = None is_configured = self.is_configured() - if is_configured: + if not cert_path and is_configured: cert_path = self._get_ca_cert_path() self._http = HTTPClient(cert_path) |