File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ function build_curl {
4747 if [ -n " $IS_MACOS " ]; then
4848 flags=" $flags --with-secure-transport"
4949 else # manylinux
50- flags=" $flags --with-openssl=${BUILD_PREFIX} --without-ca-bundle --without-ca-path "
50+ flags=" $flags --with-openssl=${BUILD_PREFIX} "
5151 # yum_install perl-IPC-Cmd # needed for openssl 3+
5252 # yum_install perl-Pod-Html
5353 build_openssl
@@ -292,12 +292,13 @@ function run_tests {
292292 URL=' https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc'
293293 if [ -z " $IS_MACOS " ]; then # only needed for Linux
294294 # these should work, but don't
295- # echo "HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt" > $HOME/.ncrc
295+ echo " HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt" > $HOME /.ncrc
296+ echo " HTTP.SSL.CAPATH=/etc/ssl/certs" >> $HOME /.ncrc
296297 # export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
297- echo " cacert=/etc/ssl/certs/ca-certificates.crt" > $HOME /.curlrc
298+ # echo "cacert=/etc/ssl/certs/ca-certificates.crt" > $HOME/.curlrc
298299 # this works
299- # mkdir -p /etc/pki/tls/certs
300- # ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
300+ mkdir -p /etc/pki/tls/certs
301+ ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
301302 fi
302303 python -c " from netCDF4 import Dataset; nc=Dataset(\" ${URL} \" ); print(nc)"
303304}
You can’t perform that action at this time.
0 commit comments