[yocto] Missing certificates
Christopher Larson
clarson at kergoth.com
Fri Jul 24 12:37:42 PDT 2015
On Fri, Jul 24, 2015 at 11:02 AM, Gary Thomas <gary at mlbassoc.com> wrote:
> I was trying to run a simple fetch from python using
> url = '
> https://raw.github.com/Itseez/opencv/master/samples/c/fruits.jpg'
> filedata = urllib2.urlopen(url).read()
>
> This failed:
> Traceback (most recent call last):
> File "./edge.py", line 36, in <module>
> filedata = urllib2.urlopen(url).read()
> File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
> return opener.open(url, data, timeout)
> File "/usr/lib/python2.7/urllib2.py", line 431, in open
> response = self._open(req, data)
> File "/usr/lib/python2.7/urllib2.py", line 449, in _open
> '_open', req)
> File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
> result = func(*args)
> File "/usr/lib/python2.7/urllib2.py", line 1240, in https_open
> context=self._context)
> File "/usr/lib/python2.7/urllib2.py", line 1197, in do_open
> raise URLError(err)
> urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]
> certificate verify failed (_ssl.c:581)>
>
> I can see that it was looking for some certificates in /usr/lib/ssl/certs
> but that directory is missing.
>
> Anyone know what I might be missing (or have misconfigured)?
>
At least in the past, we’ve been highly inconsistent in certificate store
configuration in various recipes, some pointing at a dir, some a file, and
the paths vary. I don’t know if anyone ever fixed that, however — this is
from memory.
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150724/040ba9da/attachment.html>
More information about the yocto
mailing list