requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)

前端 未结 2 1689
旧时难觅i
旧时难觅i 2021-01-15 08:10

This is not a duplicate of this question

I checked this but going insecure way doesn\'t looks good to me.

I am working on image size fetcher

相关标签:
2条回答
  • 2021-01-15 08:37

    You need to download the GoDaddy root certificates, available at this site and then pass it in as a parameter to verify, like this:

    >>> r = requests.get('https://aucoe.info', verify='/path/to/gd_bundle-g2-g1.crt')
    >>> r.status_code
    200
    

    If you'll be doing multiple requests, you may want to configure the SSL as part of the session, as highlighted in the documentation.

    0 讨论(0)
  • You can always set verify= False. Easy way, not the best.

    0 讨论(0)
提交回复
热议问题