From 88b7af8ad13a521934a3c7ef60e87fcc51ae8adb Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Tue, 15 Jul 2025 23:28:44 +0200 Subject: [PATCH] Try harder to find OPENSSL2 This commit adds an improvement so that e.g. under MacOS /opt/homebrew/bin/openssl is automatically taken as $OPENSSL so that also QUIC works out of the box for MacOS. Formally for at least MacOS with silicon CPUs OPENSSL was equal to OPENSSL2 and LibreSSL in /usr/bin/openssl doesn't have QUIC support (up to version 15.5 of MacoOS at least). --- testssl.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index cfa12de..b4cf211 100755 --- a/testssl.sh +++ b/testssl.sh @@ -20946,7 +20946,12 @@ find_openssl_binary() { initialize_engine openssl_location="$(type -p $OPENSSL)" - + + # kludge for e.g. MacOS and brew + if [[ $OPENSSL == $OPENSSL2 ]]; then + OPENSSL2=$(type -a openssl | grep -v /usr/bin/openssl | awk '{ print $NF }') + fi + [[ -n "$GIT_REL" ]] && \ cwd="$PWD" || \ cwd="$RUN_DIR"