Skip to content

ssl exception

Using the bitmask RC4 package, I'm getting the following when I try to run bitmask with the danger flag against a test provider.

2014-11-13 15:42:37,352 - DEBUG    - L#120  : leap.bitmask.provider.providerbootstrapper:_check_name_resolution() - Checking name resolution for u'single.bitmask.local'
2014-11-13 15:42:37,355 - DEBUG    - L#134  : leap.bitmask.provider.providerbootstrapper:_check_https() - Checking https for u'single.bitmask.local'
2014-11-13 15:42:37,839 - DEBUG    - L#53   : leap:write() - 2014-11-13 15:42:37-0500 [-] Unhandled Error
2014-11-13 15:42:37,839 - DEBUG    - L#53   : leap:write() - 	Traceback (most recent call last):
2014-11-13 15:42:37,839 - DEBUG    - L#53   : leap:write() - 	  File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
2014-11-13 15:42:37,840 - DEBUG    - L#53   : leap:write() - 	    self.__bootstrap_inner()
2014-11-13 15:42:37,840 - DEBUG    - L#53   : leap:write() - 	  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
2014-11-13 15:42:37,840 - DEBUG    - L#53   : leap:write() - 	    self.run()
2014-11-13 15:42:37,840 - DEBUG    - L#53   : leap:write() - 	  File "/usr/lib/python2.7/threading.py", line 763, in run
2014-11-13 15:42:37,840 - DEBUG    - L#53   : leap:write() - 	    self.__target(*self.__args, **self.__kwargs)
2014-11-13 15:42:37,841 - DEBUG    - L#53   : leap:write() - 	---  ---
2014-11-13 15:42:37,841 - DEBUG    - L#53   : leap:write() - 	  File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 196, in _worker
2014-11-13 15:42:37,841 - DEBUG    - L#53   : leap:write() - 	    result = context.call(ctx, function, *args, **kwargs)
2014-11-13 15:42:37,841 - DEBUG    - L#53   : leap:write() - 	  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
2014-11-13 15:42:37,841 - DEBUG    - L#53   : leap:write() - 	    return self.currentContext().callWithContext(ctx, func, *args, **kw)
2014-11-13 15:42:37,842 - DEBUG    - L#53   : leap:write() - 	  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
2014-11-13 15:42:37,842 - DEBUG    - L#53   : leap:write() - 	    return func(*args,**kw)
2014-11-13 15:42:37,842 - DEBUG    - L#53   : leap:write() - 	  File "/usr/lib/python2.7/dist-packages/leap/bitmask/provider/providerbootstrapper.py", line 148, in _check_https
2014-11-13 15:42:37,842 - DEBUG    - L#53   : leap:write() - 	    timeout=REQUEST_TIMEOUT)
2014-11-13 15:42:37,843 - DEBUG    - L#53   : leap:write() - 	  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 469, in get
2014-11-13 15:42:37,843 - DEBUG    - L#53   : leap:write() - 	    return self.request('GET', url, **kwargs)
2014-11-13 15:42:37,844 - ERROR    - L#523  : leap.bitmask.gui.wizard:_complete_task() - Provider certificate could not be verified
2014-11-13 15:42:37,844 - DEBUG    - L#53   : leap:write() - 	  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 457, in request
2014-11-13 15:42:37,844 - DEBUG    - L#53   : leap:write() - 	    resp = self.send(prep, **send_kwargs)
2014-11-13 15:42:37,845 - DEBUG    - L#53   : leap:write() - 	  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 569, in send
2014-11-13 15:42:37,845 - DEBUG    - L#53   : leap:write() - 	    r = adapter.send(request, **kwargs)
2014-11-13 15:42:37,846 - DEBUG    - L#53   : leap:write() - 	  File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 420, in send
2014-11-13 15:42:37,846 - DEBUG    - L#53   : leap:write() - 	    raise SSLError(e, request=request)
2014-11-13 15:42:37,847 - DEBUG    - L#53   : leap:write() - 	requests.exceptions.SSLError: 

You can replicate this by doing the following:

add to your local /etc/hosts this line: 202.85.227.200 single.bitmask.local api.bitmask.local then launch bitmask --danger, and configure a new provider specifying 'single.bitmask.local' then click the check button

(from redmine: created on 2014-11-15, closed on 2014-11-25, relates #6219 (closed))