[gdal-dev] CURL error - SSL certificate problem

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] CURL error - SSL certificate problem

Pedro Venâncio-2
Hi,

I'm trying to access Sentinel-2 data in Google Cloud Storage in QGIS, but I'm getting a SSL certificate problem.

gdalinfo says:

gdalinfo /vsicurl/https://storage.cloud.google.com/gcp-public-data-sentinel-2/L2/tiles/29/T/PF/S2B_MSIL2A_20190907T112119_N0213_R037_T29TPF_20190907T144322.SAFE/GRANULE/L2A_T29TPF_A013076_20190907T112853/IMG_DATA/R10m/T29TPF_20190907T112119_B02_10m.jp2

ERROR 11: CURL error: SSL certificate problem: unable to get local issuer certificate
gdalinfo failed - unable to open '/vsicurl/https://storage.cloud.google.com/gcp-public-data-sentinel-2/L2/tiles/29/T/PF/S2B_MSIL2A_20190907T112119_N0213_R037_T29TPF_20190907T144322.SAFE/GRANULE/L2A_T29TPF_A013076_20190907T112853/IMG_DATA/R10m/T29TPF_20190907T112119_B02_10m.jp2'.

I'm using gdal from OSGeo4W in Windows:

gdalinfo --version
GDAL 2.4.1, released 2019/03/15

I'm almost sure that this was working some time ago.

Any hint about this issue?

Another question I've is about using /vsigs/ (Google Cloud Storage files). For that, I need the bucket and the object key.

For Sentinel-2 data stored in Google Cloud Storage, I believe the bucket name is gcp-public-data-sentinel-2, but I can't find anything about the object key. What could be the key?

Thank you very much!

Best regards,
Pedro Venâncio

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: CURL error - SSL certificate problem

Tobias Wendorff
Am Mo, 9.09.2019, 18:37 schrieb Pedro Venâncio:
>
> Any hint about this issue?

Please try to add "--config GDAL_HTTP_UNSAFESSL YES".


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: CURL error - SSL certificate problem

Pedro Venâncio-2
Hi Tobias,

Disabling https check, it works!

Testing in a Linux environment, with GDAL 2.2.2, I don't have the https issue, so I assume that the SSL certificates are only checked in versions > 2.2.2, correct?

About the object key for Google Cloud Storage, anyone have an idea?

Thank you very much!

Best regards,
Pedro


Tobias Wendorff <[hidden email]> escreveu no dia segunda, 9/09/2019 à(s) 17:47:
Am Mo, 9.09.2019, 18:37 schrieb Pedro Venâncio:
>
> Any hint about this issue?

Please try to add "--config GDAL_HTTP_UNSAFESSL YES".



_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev