Skip to content

Commit

Permalink
Merge pull request #52 from bandi13/fixOSXSanity
Browse files Browse the repository at this point in the history
Fix test-sanity on OSX
  • Loading branch information
douzzer authored Sep 11, 2024
2 parents 345c0ab + 4364596 commit 4ca5086
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions scripts/test-sanity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 </dev/null"
doTestCmd "curl https://github.com/wolfSSL/wolfProvider -o test.html"

doTestCmd "${OPENSSL_INSTALL_DIR}/bin/openssl s_client -CApath /etc/ssl/certs -connect tls.support:443 </dev/null"
doTestCmd "curl https://tls.support -vv --tlsv1.3 --tls-max 1.3 -o test.html"
case `uname` in
Darwin)
doTestCmd "security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain > ${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 </dev/null"
doTestCmd "${OPENSSL_INSTALL_DIR}/bin/openssl s_client ${CA_ARGS} -connect tls.support:443 </dev/null"
}

runSpotCheck
Expand Down

0 comments on commit 4ca5086

Please sign in to comment.