brazil-data-cube / stac.py

Python Client Library for SpatioTemporal Asset Catalog
MIT License
5 stars 16 forks source link

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

Open gqueiroz opened 3 years ago

gqueiroz commented 3 years ago

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