summaryrefslogtreecommitdiff
path: root/src/leap/eip/checks.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-25 05:48:06 +0900
committerkali <kali@leap.se>2012-09-25 06:02:18 +0900
commit5173c0ee937696782a2f62078a860246ec388c39 (patch)
tree792ec3e31afda70b76b1c69528f88c16672eed84 /src/leap/eip/checks.py
parentf4f5fc21e186bcd94d39f78333f758ed906f5b98 (diff)
workaround for #638 and fix for eip config check for gateways
(we were picking gateway in a wrong way) Closes #610.
Diffstat (limited to 'src/leap/eip/checks.py')
-rw-r--r--src/leap/eip/checks.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/leap/eip/checks.py b/src/leap/eip/checks.py
index ef09a582..9b7b1cee 100644
--- a/src/leap/eip/checks.py
+++ b/src/leap/eip/checks.py
@@ -197,7 +197,8 @@ class ProviderCertChecker(object):
logger.warning('False! CERT VERIFICATION FAILED! '
'(this should be CRITICAL)')
logger.warning('SSLError: %s', exc.message)
- raise eipexceptions.EIPBadCertError
+ # XXX RAISE! See #638
+ #raise eipexceptions.EIPBadCertError
# XXX get requests.exceptions.ConnectionError Errno 110
# Connection timed out, and raise ours.
else:
@@ -227,7 +228,11 @@ class ProviderCertChecker(object):
if verify is True and self.cacert is not None:
verify = self.cacert
try:
- req = self.fetcher.get(uri, verify=verify)
+ # XXX FIXME!!!!
+ # verify=verify
+ # Workaround for #638. return to verification
+ # when That's done!!!
+ req = self.fetcher.get(uri, verify=False)
req.raise_for_status()
except requests.exceptions.SSLError:
logger.warning('SSLError while fetching cert. '
@@ -452,6 +457,7 @@ class EIPConfigChecker(object):
# XXX TODO:
# We should WRITE eip config if missing or
# incomplete at this point
+ #self.eipconfig.save()
#
# private helpers