From 945d8d274a1ad95cee00364e48770e0a6855ae99 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 18 Jul 2017 15:13:29 -0400 Subject: 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. --- src/leap/bitmask/bonafide/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/leap/bitmask') diff --git a/src/leap/bitmask/bonafide/config.py b/src/leap/bitmask/bonafide/config.py index 611e9ed..af03107 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) -- cgit v1.2.3