From 388f3aea1929cfc8ed1216fc8c8b0123e50ceae8 Mon Sep 17 00:00:00 2001 From: Geert Hendrickx Date: Thu, 13 May 2021 13:58:07 +0200 Subject: [PATCH] `hostname` is not defined by POSIX, use portable `uname -n` instead. --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index d0e77ac..149eeec 100755 --- a/testssl.sh +++ b/testssl.sh @@ -138,7 +138,7 @@ ADDITIONAL_CA_FILES="${ADDITIONAL_CA_FILES:-""}" # single file with a CA in PEM CIPHERS_BY_STRENGTH_FILE="" TLS_DATA_FILE="" # mandatory file for socket-based handshakes OPENSSL_LOCATION="" -HNAME="$(hostname)" +HNAME="$(uname -n)" HNAME="${HNAME%%.*}" declare CMDLINE