flask-oauth icon indicating copy to clipboard operation
flask-oauth copied to clipboard

Add ability to include additional CA certs for SSL requests

Open evz opened this issue 12 years ago • 1 comments

In working with an OAuth endpoint that used SSL, I discovered that the certifying authority’s certificate (Network Solutions in this case) was not included in the cacerts.txt file that ships with httplib2. This is a simple patch which adds a configuration parameter to the initial setup that allows passing in a path to a pem file that contains additional certificates.

evz avatar Jun 10 '13 15:06 evz

There are few CA's missing from the list bundled by httplib2. It would be safe to replace the list with Mozilla accepted list, which is available in package certifi (line 197):

self._client = OAuthClient(self._consumer)
self._client.ca_certs = certifi.where()

zgoda avatar May 07 '14 14:05 zgoda