summaryrefslogtreecommitdiff
path: root/src/leap/eip
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-02-12 08:40:40 +0900
committerkali <kali@leap.se>2013-02-13 01:33:27 +0900
commitb1f4715334a1b6559ce35dbfe40cd1e1ad91cf7f (patch)
tree0b67ba0d9038633b6603582adde53b9bff969e6e /src/leap/eip
parent2f4b84d1f58e3c008ef9f8138bf1711e023f00e2 (diff)
add debug info
Diffstat (limited to 'src/leap/eip')
-rw-r--r--src/leap/eip/checks.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leap/eip/checks.py b/src/leap/eip/checks.py
index 9a34a428..af824c57 100644
--- a/src/leap/eip/checks.py
+++ b/src/leap/eip/checks.py
@@ -120,7 +120,12 @@ class ProviderCertChecker(object):
def verify_api_https(self, uri):
assert uri.startswith('https://')
cacert = self.ca_cert_path
- verify = cacert and cacert or True
+ verify = cacert or True
+
+ # DEBUG
+ logger.debug('uri -> %s' % uri)
+ logger.debug('cacertpath -> %s' % cacert)
+
req = self.fetcher.get(uri, verify=verify)
req.raise_for_status()
return True