diff --git a/scripts/test-sanity.sh b/scripts/test-sanity.sh index 28f46d3..ab58200 100755 --- a/scripts/test-sanity.sh +++ b/scripts/test-sanity.sh @@ -40,11 +40,16 @@ function runSpotCheck() { exit 2 fi - doTestCmd "${OPENSSL_INSTALL_DIR}/bin/openssl s_client -CApath /etc/ssl/certs -connect github.com:443 ${SCRIPT_DIR}/allCA.pem" + CA_ARGS="-CAfile ${SCRIPT_DIR}/allCA.pem" + ;; + *) CA_ARGS="-CApath /etc/ssl/certs" ;; + esac + + doTestCmd "${OPENSSL_INSTALL_DIR}/bin/openssl s_client ${CA_ARGS} -connect github.com:443