From 25e0ddcf47bd6a233589b0ec24b104984305a8e0 Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Sat, 29 Jan 2022 10:33:13 +0800 Subject: [PATCH] Add client certificate file Signed-off-by: Jerry Yu --- tests/ssl-opt.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index 74bc24ae6..2413ee931 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -9796,7 +9796,8 @@ requires_config_enabled MBEDTLS_DEBUG_C requires_config_enabled MBEDTLS_SSL_CLI_C run_test "TLS 1.3: CertificateRequest check - openssl" \ "$O_NEXT_SRV -msg -tls1_3 -num_tickets 0 -no_resume_ephemeral -no_cache -Verify 10" \ - "$P_CLI debug_level=4 force_version=tls13 " \ + "$P_CLI debug_level=4 force_version=tls13 crt_file=data_files/cli2.crt \ + key_file=data_files/cli2.key" \ 1 \ -c "=> parse certificate request" \ -c "got a certificate request" \ @@ -9812,7 +9813,8 @@ requires_config_enabled MBEDTLS_DEBUG_C requires_config_enabled MBEDTLS_SSL_CLI_C run_test "TLS 1.3: CertificateRequest check - gnutls" \ "$G_NEXT_SRV --debug=4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:+CIPHER-ALL:%NO_TICKETS" \ - "$P_CLI debug_level=3 min_version=tls13 max_version=tls13" \ + "$P_CLI debug_level=3 min_version=tls13 max_version=tls13 crt_file=data_files/cli2.crt \ + key_file=data_files/cli2.key" \ 1 \ -c "=> parse certificate request" \ -c "got a certificate request" \ @@ -9827,7 +9829,8 @@ requires_config_enabled MBEDTLS_SSL_CLI_C requires_config_disabled MBEDTLS_USE_PSA_CRYPTO run_test "TLS 1.3: CertificateRequest check, no middlebox - openssl" \ "$O_NEXT_SRV -msg -tls1_3 -num_tickets 0 -no_resume_ephemeral -no_cache -Verify 10 -no_middlebox" \ - "$P_CLI debug_level=4 force_version=tls13 " \ + "$P_CLI debug_level=4 force_version=tls13 crt_file=data_files/cli2.crt \ + key_file=data_files/cli2.key" \ 1 \ -c "=> parse certificate request" \ -c "got a certificate request" \ @@ -9843,7 +9846,8 @@ requires_config_enabled MBEDTLS_SSL_CLI_C requires_config_disabled MBEDTLS_USE_PSA_CRYPTO run_test "TLS 1.3: CertificateRequest check, no middlebox - gnutls" \ "$G_NEXT_SRV --debug=4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:+CIPHER-ALL:%NO_TICKETS:%DISABLE_TLS13_COMPAT_MODE" \ - "$P_CLI debug_level=3 min_version=tls13 max_version=tls13" \ + "$P_CLI debug_level=3 min_version=tls13 max_version=tls13 crt_file=data_files/cli2.crt \ + key_file=data_files/cli2.key" \ 1 \ -c "=> parse certificate request" \ -c "got a certificate request" \ @@ -9858,7 +9862,8 @@ requires_config_enabled MBEDTLS_SSL_CLI_C requires_config_disabled MBEDTLS_USE_PSA_CRYPTO run_test "TLS 1.3: CertificateRequest check, no client certificate - openssl" \ "$O_NEXT_SRV -msg -tls1_3 -num_tickets 0 -no_resume_ephemeral -no_cache -no_middlebox" \ - "$P_CLI debug_level=4 force_version=tls13 " \ + "$P_CLI debug_level=4 force_version=tls13 crt_file=data_files/cli2.crt \ + key_file=data_files/cli2.key" \ 0 \ -c "=> parse certificate request" \ -c "got no certificate request" \ @@ -9874,7 +9879,8 @@ requires_config_enabled MBEDTLS_SSL_CLI_C requires_config_disabled MBEDTLS_USE_PSA_CRYPTO run_test "TLS 1.3: CertificateRequest check, no client certificate - gnutls" \ "$G_NEXT_SRV --disable-client-cert --debug=4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:+CIPHER-ALL:%NO_TICKETS:%DISABLE_TLS13_COMPAT_MODE" \ - "$P_CLI debug_level=3 min_version=tls13 max_version=tls13" \ + "$P_CLI debug_level=3 min_version=tls13 max_version=tls13 crt_file=data_files/cli2.crt \ + key_file=data_files/cli2.key" \ 0 \ -c "=> parse certificate request" \ -c "got no certificate request" \