From 721f7c1e644462a2849a2d85ccba69a32a224ada Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Mon, 17 Aug 2020 12:17:32 +0100 Subject: [PATCH] Add minimal client authentication test to ssl-opt.sh Signed-off-by: Hanno Becker --- tests/ssl-opt.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index 80943bd6e..3b576e65b 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -1121,6 +1121,12 @@ run_test "Default, DTLS" \ -s "Protocol is DTLSv1.2" \ -s "Ciphersuite is TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256" +run_test "TLS client auth: required" \ + "$P_SRV auth_mode=required" \ + "$P_CLI" \ + 0 \ + -s "Verifying peer X.509 certificate... ok" + requires_config_enabled MBEDTLS_X509_CRT_PARSE_C requires_config_enabled MBEDTLS_ECDSA_C requires_config_enabled MBEDTLS_SHA256_C