Dennis Heimbigner
Dennis Heimbigner
How did you install netcdf-c? Are you building it yourself?
So it looks like you are building with your own CMakeLists.txt and not using the one provided by netcdf, correct?
Using the current netcdf-c master, I cannot duplicate the error. Try changing the URL to this form to get some more information: > http://psl.noaa.gov/thredds/dodsC/Datasets/NARR/monolevel/uwnd.10m.2000.nc#log&show=fetch
First review the relevant curl documentation and see if anything strikes you as relevant to your situation. * https://curl.se/libcurl/c/CURLOPT_CAINFO.html * https://curl.se/libcurl/c/CURLOPT_CAPATH.html
Second, you can force set CAINFO and/or CAPATH by creating the file ~/.ncrc and putting either or both of these lines in it. This assumes a non-windows environment. * HTTP.SSL.CAINFO=\...
Ok, then you need to put the .ncrc file in %USERPROFILE% instead of $HOME.
Backward slash should be ok, but do not quote the value (i.e text after the equal sign).
I was looking around and found this: > The [CURLOPT_CAPATH](https://curl.se/libcurl/c/CURLOPT_CAPATH.html) function apparently does not work in Windows due to some limitation in openssl. So try changing HTTP.SSL.CAPATH=... to HTTP.SSL.CAINFO=... but...
Also, you may be able to test .ncrc is being used by adding this line: > HTTP.VERBOSE=1 If you see a bunch of curl debug output, then .ncrc is being...
> Error:curl error: SSL peer certificate or SSH remote key was not OK This looks suspicious to me. Perhaps, the key in your known-hosts file for this site is out-of-date?