Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Rasterio Error: "rasterio.errors.RasterioIOError: CURL error: SSL certificate problem: certificate has expired" #112

Open
gqueiroz opened this issue Oct 15, 2021 · 0 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@gqueiroz
Copy link
Contributor

gqueiroz commented Oct 15, 2021

If you are accessing a site with a certificated issued by Let's Encrypt, you will have trouble with RasterIO due to the certifi package. See the following certifi's issues: 162, 163, 164 and 165.

There are two possible workarounds:

  1. Set an environment variable in your Linux system pointing to the CA Bundle before launching the Python interpreter:
    export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt

  2. Or, use certifi-system-store to replace certifi's certificates by the system trust store:

python -m pip install certifi-system-store
python -m certifi -v
@gqueiroz gqueiroz added help wanted Extra attention is needed question Further information is requested labels Oct 15, 2021
@gqueiroz gqueiroz changed the title Verify the following Rasterio error: "CURL error: SSL certificate problem: certificate has expired" Rasterio Error: "rasterio.errors.RasterioIOError: CURL error: SSL certificate problem: certificate has expired" Oct 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants