Skip to content

Commit 3eee342

Browse files
committed
try copying ca-certificates to expected location
1 parent 8198b99 commit 3eee342

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

config.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,12 @@ function run_tests {
300300
#if [ -n "$IS_MACOS" ]; then # for now only run on MacOS since linux fails
301301
URL='https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc'
302302
export CURLOPT_VERBOSE=1
303-
ls -l /etc/ssl/certs
304-
echo "HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt" > ~/.ncrc
305-
cat ~/.ncrc
306-
#export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
303+
#ls -l /etc/ssl/certs
304+
#echo "HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt" > ~/.ncrc
305+
#cat ~/.ncrc
306+
#/export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
307+
sudo mkdir -p /etc/pki/tls/certs
308+
cp /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
307309
python -c "from netCDF4 import Dataset; nc=Dataset(\"${URL}\"); print(nc)"
308310
#fi
309311
}

0 commit comments

Comments
 (0)