[Python-modules-team] Bug#779528: Upstream requests also has a 'certifi' component

Daniele Tricoli eriol at mornie.org
Sat Mar 7 17:17:06 UTC 2015


Hello Julien,

Julien Puydt wrote:
> could you also package the certifi component of requests?

requests' upstream provides the possibility to specify the certificate bundle 
to use. The packaged version of requests use ca-certificates. Why do you need  
the bundle provided by certifi?

If you look at the code you will see that certifi just return the path of the 
bundle shipped inside it:
https://github.com/certifi/python-certifi/blob/master/certifi/core.py 

Also consider that in requests 2.5.3 due to this:

    http://bugs.python.org/issue23476 

it was needed to revert the update of the certificates bundle shipped. 

Is your problem to locate Debian's certificates bundle? If yes, you can just 
use this:

    def where():
        return '/etc/ssl/certs/ca-certificates.crt'

and depends on ca-certificates. If the problem is not this, can you provide 
more info?

HTH,

-- 
 Daniele Tricoli 'Eriol'
 http://mornie.org



More information about the Python-modules-team mailing list