HTTPException: invalid and/or missing SSL certificate for url: https://accounts.google.com/o/oauth2/token

前端 未结 3 2140
南旧
南旧 2021-02-08 12:38

When I call for the Google Earth Engine (GEE) Python APIs through Google AppEngine, it throws out a HTTPException which says \"HTTPException: invalid and/or missing SSL cert

3条回答
  •  隐瞒了意图╮
    2021-02-08 13:32

    For Windows, because the SDK is stored in an Admin Read-only area, I used Windows File Explorer in two steps instead of a script.

    First download https://curl.haxx.se/ca/cacert.pem to a folder, e.g. Downloads.

    curl https://curl.haxx.se/ca/cacert.pem > urlfetch_cacerts.txt
    

    You can also use a browser to download the file and rename it.

    Check where your cacerts are stored. I found them in

    C:\Program Files (x86)\Google\google_appengine\lib\cacerts
    

    Others report it in:

    C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\lib\cacerts\urlfetch_cacerts.txt 
    

    With Admin credentials, rename the file urlfetch_cacerts.txt to something else.

    Then copy the downloaded file cacerts.pem to

    C:\Program Files (x86)\Google\google_appengine\lib\cacerts
    

    And rename it to urlfetch_cacerts.txt

    Voila!

提交回复
热议问题