Skip to content

Commit 4364596

Browse files
author
Andras Fekete
committed
Fix test-sanity on OSX
1 parent 345c0ab commit 4364596

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

scripts/test-sanity.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,16 @@ function runSpotCheck() {
4040
exit 2
4141
fi
4242

43-
doTestCmd "${OPENSSL_INSTALL_DIR}/bin/openssl s_client -CApath /etc/ssl/certs -connect github.com:443 </dev/null"
44-
doTestCmd "curl https://github.com/wolfSSL/wolfProvider -o test.html"
45-
46-
doTestCmd "${OPENSSL_INSTALL_DIR}/bin/openssl s_client -CApath /etc/ssl/certs -connect tls.support:443 </dev/null"
47-
doTestCmd "curl https://tls.support -vv --tlsv1.3 --tls-max 1.3 -o test.html"
43+
case `uname` in
44+
Darwin)
45+
doTestCmd "security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain > ${SCRIPT_DIR}/allCA.pem"
46+
CA_ARGS="-CAfile ${SCRIPT_DIR}/allCA.pem"
47+
;;
48+
*) CA_ARGS="-CApath /etc/ssl/certs" ;;
49+
esac
50+
51+
doTestCmd "${OPENSSL_INSTALL_DIR}/bin/openssl s_client ${CA_ARGS} -connect github.com:443 </dev/null"
52+
doTestCmd "${OPENSSL_INSTALL_DIR}/bin/openssl s_client ${CA_ARGS} -connect tls.support:443 </dev/null"
4853
}
4954

5055
runSpotCheck

0 commit comments

Comments
 (0)