Python 2.7.9 looks for SSL certificates in /etc/ssl instead of /usr/local/etc/ssl
possnfiffer
possnfiffer at snowboard.com
Thu Jan 1 09:22:57 UTC 2015
I run FreeBSD 10.1-RELEASE x86_64. The last two updates for python2.7_2.2 I
saw were Dec 22nd and Oct 10 (I believe) the Dec update is where I started
having issues with my SABnzbdplus and SickBeard python scripts.
I wrote the following in hopes that readers searching for a fix to https not
loading with your FreeBSD python scripts, like I was, will find the
following useful to get their systems in working order.
Yo,
The latest version of python changed it's defaults and now it looks for CA
certificate in /etc/ssl/cert.pem
I run FreeBSD and the base system doesn't include the file /etc/ssl/cert.pem
If your python scripts have been failing reporting
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed
then you simply need to apply the following fix as a privileged user
(FreeBSD 10.1-RELEASE last updated today is all I've tested this on)
ln -s /usr/local/etc/ssl/cert.pem /etc/ssl/cert.pem
-Roller aka possnfiffer
--
View this message in context: http://freebsd.1045724.n5.nabble.com/Python-2-7-9-looks-for-SSL-certificates-in-etc-ssl-instead-of-usr-local-etc-ssl-tp5976668p5977422.html
Sent from the freebsd-python mailing list archive at Nabble.com.
More information about the freebsd-python
mailing list