Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#40179 - [python-httplib2] Use system certificate file instead of httplib2's bundled one
Attached to Project:
Community Packages
Opened by Anton Eliasson (eliasson) - Thursday, 01 May 2014, 21:44 GMT
Last edited by Alexander F. Rødseth (xyproto) - Saturday, 03 May 2014, 10:19 GMT
Opened by Anton Eliasson (eliasson) - Thursday, 01 May 2014, 21:44 GMT
Last edited by Alexander F. Rødseth (xyproto) - Saturday, 03 May 2014, 10:19 GMT
|
DetailsBy default, httplib2 uses a bundled truststore of CA certificates instead of the system store located in /etc/ssl/certs/ca-certificates.crt. The bundled one contains a very limited set of certificates which makes it pretty useless in practice. A simple example:
$ python Python 3.4.0 (default, Mar 17 2014, 23:20:09) [GCC 4.8.2 20140206 (prerelease)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import httplib2 >>> h = httplib2.Http() >>> headers, response = h.request('https://www.archlinux.org') Traceback (most recent call last): [...] During handling of the above exception, another exception occurred: [...] ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598) httplib2 could be trivially patched to instead use the system wide store. This has been done in e.g. Debian[1], Ubuntu[2], OpenSUSE[3] and Mageia[4]. Preparing a patch now. [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652105 [2]: https://bugs.launchpad.net/ubuntu/+source/python-httplib2/+bug/882027 [3]: https://bugzilla.novell.com/show_bug.cgi?id=761162 [4]: https://bugs.mageia.org/show_bug.cgi?id=6568 |
This task depends upon
PKGBUILD.patch adds this patch to prepare(). It also adds the ca-certificates package as a dependency.
[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652105#10
Hejdå!