Closed mulimoen closed 2 months ago
This let's one set the certificate for curl, as this is not done by default. The certificate can be set either programatically by the safe wrapper
netcdf::rc::set("HTTP.SSL.CAPATH", "/etc/ssl/certs/").unwrap();
by using the unsafe c-function
unsafe { let path = c"HTTP.SSL.CAPATH"; let value = c"/etc/ssl/certs/"; let ret = netcdf_sys::nc_rc_set(path.as_ptr(), value.as_ptr()); assert_eq!(ret, 0); }
or by setting the information in ~/.ncrc:
~/.ncrc
HTTP.SSL.CAPATH=/etc/ssl/certs/
Fixes #141
This let's one set the certificate for curl, as this is not done by default. The certificate can be set either programatically by the safe wrapper
by using the unsafe c-function
or by setting the information in
~/.ncrc
:Fixes #141