Python - SSL Issue with Oauth2

前端 未结 6 1018
醉话见心
醉话见心 2020-12-14 03:41

I seem to be having an issue with SSL whenever trying to use oAuth2 in Python. I\'ve spent most of the afternoon attempting to debug it but can\'t seem to figure it out.

6条回答
  •  一整个雨季
    2020-12-14 04:27

    First, run pip install certifi. Then set the client's ca_certs property, before making any requests:

    client = oauth.Client(consumer)
    client.ca_certs = certifi.where()
    

    This was inspired by jterrace's suggestion to use httplib2.Http.add_certificate

提交回复
热议问题