Certificate verification failed with Python 2.7.13 and OpenSSL 1.1.0e on Ubuntu 16.04 -
this n+1-th question python's certificate verification problems.
i installed python 2.7.13 source , linked against openssl 1.1.0e (also installed source). running on ubuntu 16.04.1.
any clue how solve this?
is possible loads bad version of openssl in runtime?
python 2.7.13 (default, apr 6 2017, 21:15:15) [gcc 5.4.0 20160609] on linux2 type "help", "copyright", "credits" or "license" more information. >>> import ssl; print ssl.openssl_version openssl 1.1.0e 16 feb 2017 >>> import urllib2; urllib2.urlopen('http://python.org/') traceback (most recent call last): file "<stdin>", line 1, in <module> file "...prefix/lib/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) file "...prefix/lib/python2.7/urllib2.py", line 435, in open response = meth(req, response) file "...prefix/lib/python2.7/urllib2.py", line 548, in http_response 'http', request, response, code, msg, hdrs) file "...prefix/lib/python2.7/urllib2.py", line 467, in error result = self._call_chain(*args) file "...prefix/lib/python2.7/urllib2.py", line 407, in _call_chain result = func(*args) file "...prefix/lib/python2.7/urllib2.py", line 654, in http_error_302 return self.parent.open(new, timeout=req.timeout) file "...prefix/lib/python2.7/urllib2.py", line 429, in open response = self._open(req, data) file "...prefix/lib/python2.7/urllib2.py", line 447, in _open '_open', req) file "...prefix/lib/python2.7/urllib2.py", line 407, in _call_chain result = func(*args) file "...prefix/lib/python2.7/urllib2.py", line 1241, in https_open context=self._context) file "...prefix/lib/python2.7/urllib2.py", line 1198, in do_open raise urlerror(err) urllib2.urlerror: <urlopen error [ssl: certificate_verify_failed] certificate verify failed (_ssl.c:661)>
Comments
Post a Comment