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

前端 未结 2 1702
旧时难觅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.

提交回复
热议问题