-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_byterange.sh fails with BADCERT_NOT_TRUSTED #2407
Comments
The byterange driver I use is home-made because HDF5 does not |
DennisHeimbigner
added a commit
to DennisHeimbigner/netcdf-c
that referenced
this issue
Jun 17, 2022
re: Unidata#2337 re: Unidata#2407 Add two functions to netcdf.h to allow programs to get/set selected entries into the internal .rc tables. This should fix the above issues by allowing HTTP.CAINFO to be set to the certificates directory. Note that the changes should be performed as early as possible in the program because some of the .rc table entries may get cached internally and changing the entry after that caching occurs may have no effect. The new signatures are as follows: 1. Get the value of a simple .rc entry of the form "key=value". Note that caller must free the returned value, which might be NULL. ```` char* nc_rc_get(char* const * key); @param key table entry key @return value if .rc table has entry of the form key=value @return NULL if no such entry is found. ```` 2. Insert/Overwrite the specified key=value pair in the .rc table. ```` int nc_rc_set(const char* key, const char* value); @param key table entry key -- may not be NULL @param value table entry value -- may not be NULL @return NC_NOERR if no error @return NC_EINVAL if error ```` Addendum: re: Unidata#2407 Modify dhttp.c to use the .rc entry HTTP.CAINFO if defined.
PR #2408 should fix this, |
This PR may fix this problem: #2408 |
#2408 is merged, now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NetCDF 4.9.0
Linux, x86_64-linux-gnu-gcc (GCC) 4.8.5 (no cross-compilation this time)
Build steps:
When activating byte range support the
./test_byterange.sh
tests fails withThis is related to issue #2337 but not necessarily a duplicate since I have defined a
.ncrc
file with aHTTP.SSL.CAINFO
in/workspace/srcdir/netcdf-c-4.9.0/nc_test/.ncrc
and/root/.ncrc
:But if I hard code
CURLOPT_CAINFO
indhttp.c
, the first test with the url (https://thredds-test.unidata.ucar.edu/thredds/fileServer/pointData/cf_dsg/example/point.nc#mod e=bytes&aws.profile=none
) passes.Could it be that the byte range support of NetCDF does not use
HTTP.SSL.CAINFO
?Unfortunately, there are even with this change other failures later on in
./test_byterange.sh
:I am wondering if the HDF5 layer needs to be made aware of
HTTP.SSL.CAINFO
too.The text was updated successfully, but these errors were encountered: