From de9d218c43a1cda18103471d4de8932498db6061 Mon Sep 17 00:00:00 2001 From: Wai Yee Wong Date: Wed, 8 Jun 2022 14:55:02 -0400 Subject: [PATCH] Obtain the highest version of TLS supported by OpenSSL/TLS --- xCAT-test/autotest/testcase/install_xCAT/case0 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xCAT-test/autotest/testcase/install_xCAT/case0 b/xCAT-test/autotest/testcase/install_xCAT/case0 index e41499802..f473b099b 100644 --- a/xCAT-test/autotest/testcase/install_xCAT/case0 +++ b/xCAT-test/autotest/testcase/install_xCAT/case0 @@ -30,6 +30,10 @@ cmd:diff /tmp/known_host_keys /tmp/current_os_host_keys check:output!~> cmd:rm -f /tmp/known_host_keys /tmp/current_os_host_keys check:rc==0 + +# Obtain the highest version of TLS supported by OpenSSL/TLS. +cmd:openssl s_client --help 2>&1 | grep "\-tls1" | awk '{print $1}' | sort | tail -1 +check:rc==0 end start:install_xCAT_on_ubuntu @@ -76,4 +80,8 @@ cmd:diff /tmp/known_host_keys /tmp/current_os_host_keys check:output!~> cmd:rm -f /tmp/known_host_keys /tmp/current_os_host_keys check:rc==0 + +# Obtain the highest version of TLS supported by OpenSSL/TLS. +cmd:openssl s_client --help 2>&1 | grep "\-tls1" | awk '{print $1}' | sort | tail -1 +check:rc==0 end