When trying to use cURL from the OSGEO4W shell, it throws the following error:
curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.
While this seems to be a chronic issue, I couldn't find any indication that cURL or GDAL devs thought this was their repsonsibility. So, off to try and find a workaround.
From what I can ascertain, there is a missing certificate in the compilation of cURL that comes with OSGEO4W. Fortunately, someone was kind enough to share the steps they took to workaround this issue. They were having problems with cURL on Windows more generally, but the steps are more or less the same. I've adapted them for OSGEO4W shell:
- From http://curl.haxx.se/docs/caextract.html , Download the
cacert.pem
file. - Navigate to the location of cURL in your OSGEO4W installation. For me this was
C:\OSGeo4W64\bin
. Placecacert.pem
in this directory. - Rename
cacert.pem
file tocurl-ca-bundle.crt
At this point you should be able to run cURL from the the OSGEO4W shell.