Closed gauteh closed 2 years ago
Thanks for the report.
Yes, I see the same issue here -- I have no idea why our certificate would work with the browsers, but not with raw curl (or requests).
Though I have seen a similar issue with other APIs.
As a work around, you can tell curl not to check the certificate:
curl --insecure https://adios.orr.noaa.gov/api/oils/NO00108 > NO00108.json
The is also a similar setting for the requests lib, though I don't recall what it is at the moment.
Meanwhile, I'll work with our IT folks to see if we can get it configured to work safely "out of the box".
We've added the intermediate certificate ( I don't know what that means) -- and it seems to be working now. Let us know if if works for you.
NOTE: it was working with some versions of curl / OpenSSL before -- if you have the latest and greatest, it may work fine in any case.
Example, the curl from OS-X worked before the change:
$ curl --version
curl 7.54.0 (x86_64-apple-darwin18.0) libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
Thanks, I can now confirm that it works with both curl and python-requests without disabling SSL verification.
Hi,
when trying to access the API, e.g.:
curl https://adios.orr.noaa.gov/oils/
I get an SSL error. This seems to work in browsers like firefox + chrome. Does this work for you? I get the same error using python's requests.Regards, Gaute