2022-07-31 06:45:25 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# tls13-kex-modes.sh
|
|
|
|
#
|
|
|
|
# Copyright The Mbed TLS Contributors
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
# not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
2022-11-09 15:43:31 +01:00
|
|
|
# DO NOT ADD NEW TEST CASES INTO THIS FILE. The left cases will be generated by
|
2022-11-08 14:49:47 +01:00
|
|
|
# scripts in future(#6280)
|
2022-08-25 11:53:13 +02:00
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/psk, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-s "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/psk, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/psk, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-08-31 11:08:34 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_or_ephemeral/psk, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-S "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-s "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-08-31 11:08:34 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_or_ephemeral/psk, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-S "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-08-31 11:08:34 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_or_ephemeral/psk, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-S "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: G->m: ephemeral_all/psk_ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: G->m: ephemeral_all/psk_ephemeral, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: G->m: ephemeral_all/psk_ephemeral, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/psk_ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/psk_ephemeral, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/psk_ephemeral, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 11:08:34 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_or_ephemeral/psk_ephemeral, fail, no common kex mode" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-S "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: G->m: ephemeral_all/psk_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: G->m: ephemeral_all/psk_all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: G->m: ephemeral_all/psk_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/psk_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/psk_all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/psk_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 11:08:34 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_or_ephemeral/psk_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-S "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-s "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 11:08:34 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_or_ephemeral/psk_all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-S "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 11:08:34 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_or_ephemeral/psk_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-S "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: G->m: ephemeral_all/ephemeral_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: G->m: ephemeral_all/ephemeral_all, good, key id mismatch, dhe." \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: G->m: ephemeral_all/ephemeral_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/ephemeral_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/ephemeral_all, good, key id mismatch, dhe." \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/ephemeral_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 11:08:34 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_or_ephemeral/ephemeral_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-S "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: G->m: ephemeral_all/all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: G->m: ephemeral_all/all, good, key id mismatch, dhe." \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: G->m: ephemeral_all/all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/all, good, key id mismatch, dhe." \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 11:08:34 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_or_ephemeral/all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-S "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 11:08:34 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_or_ephemeral/all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-S "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: G->m: ephemeral_all/psk_or_ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/psk_or_ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: G->m: all/psk_or_ephemeral, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-08-31 11:08:34 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_or_ephemeral/psk_or_ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-S "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-08-31 11:08:34 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_or_ephemeral/psk_or_ephemeral, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \
|
|
|
|
localhost" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-S "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
2022-09-06 05:19:31 +02:00
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-06 05:19:31 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_ephemeral group(secp256r1) check, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \
|
2022-09-06 05:19:31 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3:-GROUP-ALL:+GROUP-SECP256R1 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "write selected_group: secp256r1" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-06 05:19:31 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_ephemeral group(secp384r1) check, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \
|
2022-09-06 05:19:31 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3:-GROUP-ALL:+GROUP-SECP384R1 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "write selected_group: secp384r1" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-06 05:19:31 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_ephemeral group(secp521r1) check, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \
|
2022-09-06 05:19:31 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3:-GROUP-ALL:+GROUP-SECP521R1 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "write selected_group: secp521r1" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-06 05:19:31 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_ephemeral group(x25519) check, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \
|
2022-09-06 05:19:31 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3:-GROUP-ALL:+GROUP-X25519 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "write selected_group: x25519" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-06 05:19:31 +02:00
|
|
|
run_test "TLS 1.3: G->m: psk_ephemeral group(x448) check, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \
|
2022-09-06 05:19:31 +02:00
|
|
|
"$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3:-GROUP-ALL:+GROUP-X448 \
|
|
|
|
--pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \
|
|
|
|
localhost" \
|
|
|
|
0 \
|
|
|
|
-s "write selected_group: x448" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
2022-08-25 11:53:13 +02:00
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: O->m: ephemeral_all/psk, fail, no common kex mode" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/psk, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-s "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/psk, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/psk, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: O->m: ephemeral_all/psk_ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: O->m: ephemeral_all/psk_ephemeral, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg \
|
|
|
|
-psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: O->m: ephemeral_all/psk_ephemeral, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/psk_ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/psk_ephemeral, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/psk_ephemeral, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: O->m: ephemeral_all/psk_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: O->m: ephemeral_all/psk_all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg \
|
|
|
|
-psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: O->m: ephemeral_all/psk_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/psk_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/psk_all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/psk_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: O->m: ephemeral_all/ephemeral_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: O->m: ephemeral_all/ephemeral_all, good, key id mismatch, dhe." \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg \
|
|
|
|
-psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: O->m: ephemeral_all/ephemeral_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/ephemeral_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/ephemeral_all, good, key id mismatch, dhe." \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/ephemeral_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: O->m: ephemeral_all/all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: O->m: ephemeral_all/all, good, key id mismatch, dhe." \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg \
|
|
|
|
-psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: O->m: ephemeral_all/all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/all, good, key id mismatch, dhe." \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-08-31 08:15:23 +02:00
|
|
|
run_test "TLS 1.3: O->m: ephemeral_all/psk_or_ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-S "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/psk_or_ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Pre shared key found" \
|
|
|
|
-S "No matched PSK or ticket" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-08-29 14:38:39 +02:00
|
|
|
run_test "TLS 1.3: O->m: all/psk_or_ephemeral, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \
|
2022-08-25 11:53:13 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \
|
|
|
|
1 \
|
|
|
|
-s "found psk key exchange modes extension" \
|
|
|
|
-s "found pre_shared_key extension" \
|
|
|
|
-s "Found PSK_EPHEMERAL KEX MODE" \
|
|
|
|
-s "Found PSK KEX MODE" \
|
|
|
|
-s "Invalid binder." \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-S "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
2022-09-06 05:19:31 +02:00
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-06 05:19:31 +02:00
|
|
|
run_test "TLS 1.3: O->m: psk_ephemeral group(secp256r1) check, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \
|
2022-09-06 05:19:31 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex -groups P-256 \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "write selected_group: secp256r1" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-06 05:19:31 +02:00
|
|
|
run_test "TLS 1.3: O->m: psk_ephemeral group(secp384r1) check, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \
|
2022-09-06 05:19:31 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex -groups secp384r1 \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "write selected_group: secp384r1" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-06 05:19:31 +02:00
|
|
|
run_test "TLS 1.3: O->m: psk_ephemeral group(secp521r1) check, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \
|
2022-09-06 05:19:31 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex -groups secp521r1 \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "write selected_group: secp521r1" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-06 05:19:31 +02:00
|
|
|
run_test "TLS 1.3: O->m: psk_ephemeral group(x25519) check, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \
|
2022-09-06 05:19:31 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex -groups X25519 \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "write selected_group: x25519" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-06 05:19:31 +02:00
|
|
|
run_test "TLS 1.3: O->m: psk_ephemeral group(x448) check, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \
|
2022-09-06 05:19:31 +02:00
|
|
|
"$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex -groups X448 \
|
|
|
|
-psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \
|
|
|
|
0 \
|
|
|
|
-s "write selected_group: x448" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
2022-09-21 05:03:28 +02:00
|
|
|
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
|
|
|
requires_openssl_tls1_3
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-21 05:03:28 +02:00
|
|
|
run_test "TLS 1.3 O->m: psk_ephemeral group(secp256r1->secp384r1) check, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_list=Client_identity,6162636465666768696a6b6c6d6e6f70,abc,dead,def,beef curves=secp384r1" \
|
2022-09-21 16:44:24 +02:00
|
|
|
"$O_NEXT_CLI_NO_CERT -tls1_3 -msg -allow_no_dhe_kex -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70 -groups P-256:P-384" \
|
2022-09-21 05:03:28 +02:00
|
|
|
0 \
|
|
|
|
-s "write selected_group: secp384r1" \
|
|
|
|
-s "HRR selected_group: secp384r1" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_gnutls_next_no_ticket
|
|
|
|
requires_gnutls_next_disable_tls13_compat
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-21 05:03:28 +02:00
|
|
|
run_test "TLS 1.3 G->m: psk_ephemeral group(secp256r1->secp384r1) check, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_list=Client_identity,6162636465666768696a6b6c6d6e6f70,abc,dead,def,beef curves=secp384r1" \
|
2022-09-21 16:44:24 +02:00
|
|
|
"$G_NEXT_CLI_NO_CERT --debug=4 --single-key-share --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3:-GROUP-ALL:+GROUP-SECP256R1:+GROUP-SECP384R1 --pskusername Client_identity --pskkey 6162636465666768696a6b6c6d6e6f70 localhost" \
|
2022-09-21 05:03:28 +02:00
|
|
|
0 \
|
|
|
|
-s "write selected_group: secp384r1" \
|
|
|
|
-s "HRR selected_group: secp384r1" \
|
|
|
|
-S "key exchange mode: psk$" \
|
|
|
|
-s "key exchange mode: psk_ephemeral" \
|
|
|
|
-S "key exchange mode: ephemeral"
|
2022-08-23 08:47:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Add psk test cases for mbedtls client code
|
|
|
|
|
2022-08-25 10:48:51 +02:00
|
|
|
# MbedTls->MbedTLS kinds of tls13_kex_modes
|
|
|
|
# PSK mode in client
|
2022-08-23 08:47:40 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk/psk, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-08-23 08:47:40 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk$" \
|
2022-08-23 08:47:40 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
2022-08-25 10:48:51 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk/psk, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-13 03:58:07 +02:00
|
|
|
-s "No matched PSK or ticket"
|
2022-08-25 10:48:51 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk/psk, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk_identity=0a0b0c psk=040506 tls13_kex_modes=psk" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
2022-09-13 03:58:07 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-25 10:48:51 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-13 03:58:07 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-25 10:48:51 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk/psk_ephemeral, fail - no common kex mode" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk/ephemeral, fail - no common kex mode" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk/ephemeral_all, fail - no common kex mode" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk/psk_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-08-25 10:48:51 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk$" \
|
2022-08-25 10:48:51 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk/psk_all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk/psk_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk_identity=0a0b0c psk=040506 tls13_kex_modes=psk" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
2022-09-21 09:16:22 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-25 10:48:51 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-21 09:16:22 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-13 03:58:07 +02:00
|
|
|
-s "Invalid binder."
|
2022-08-25 10:48:51 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk/all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-08-25 10:48:51 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk$" \
|
2022-08-25 10:48:51 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk/all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk/all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c psk=040506 tls13_kex_modes=psk" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
2022-09-21 09:16:22 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-25 10:48:51 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-21 09:16:22 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-13 03:58:07 +02:00
|
|
|
-s "Invalid binder."
|
2022-08-25 10:48:51 +02:00
|
|
|
|
|
|
|
# psk_ephemeral mode in client
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_ephemeral/psk, fail - no common kex mode" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_ephemeral/psk_ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_ephemeral/psk_ephemeral, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_ephemeral/psk_ephemeral, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c psk=040506 tls13_kex_modes=psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
2022-09-13 03:58:07 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-25 10:48:51 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-13 03:58:07 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-25 10:48:51 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-09-23 09:25:40 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_ephemeral/ephemeral, fail - no common kex mode" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-26 06:01:06 +02:00
|
|
|
-c "client hello, adding PSK binder list"
|
2022-08-25 10:48:51 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_ephemeral/ephemeral_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
2022-09-23 09:25:40 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
2022-08-25 10:48:51 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_ephemeral/ephemeral_all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-26 06:01:06 +02:00
|
|
|
-s "No matched PSK or ticket"
|
2022-08-25 10:48:51 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_ephemeral/ephemeral_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c psk=040506 tls13_kex_modes=psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
2022-09-13 03:58:07 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-25 10:48:51 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-13 03:58:07 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-25 10:48:51 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_ephemeral/psk_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_ephemeral/psk_all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_ephemeral/psk_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-25 10:48:51 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-25 10:48:51 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_ephemeral/all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_ephemeral/all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_ephemeral/all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-08-25 10:48:51 +02:00
|
|
|
1 \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-25 10:48:51 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-25 10:48:51 +02:00
|
|
|
|
2022-08-29 10:25:17 +02:00
|
|
|
# ephemeral mode in client
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral/psk, fail - no common kex mode" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-08-29 10:25:17 +02:00
|
|
|
1 \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral/psk_ephemeral, fail - no common kex mode" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-08-29 10:25:17 +02:00
|
|
|
1 \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral/ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-08-29 10:25:17 +02:00
|
|
|
0 \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: ephemeral" \
|
2022-08-29 10:25:17 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral/ephemeral_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-08-29 10:25:17 +02:00
|
|
|
0 \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: ephemeral" \
|
2022-08-29 10:25:17 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral/psk_all, fail - no common kex mode" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-08-29 10:25:17 +02:00
|
|
|
1 \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral/all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-08-29 10:25:17 +02:00
|
|
|
0 \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: ephemeral" \
|
2022-08-29 10:25:17 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
# ephemeral_all mode in client
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral_all/psk, fail - no common kex mode" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-08-29 10:25:17 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral_all/psk_ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-08-29 10:25:17 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-29 10:25:17 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral_all/psk_ephemeral, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=ephemeral_all" \
|
2022-09-23 09:25:40 +02:00
|
|
|
1 \
|
2022-08-29 10:25:17 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-23 09:25:40 +02:00
|
|
|
-s "No matched PSK or ticket"
|
2022-08-29 10:25:17 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral_all/psk_ephemeral, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-29 10:25:17 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-29 10:25:17 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral_all/ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-08-29 10:25:17 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "key exchange mode: ephemeral" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: ephemeral" \
|
2022-08-29 10:25:17 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral_all/ephemeral_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-08-29 10:25:17 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-29 10:25:17 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-28 04:07:54 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral_all/ephemeral_all,good,key id mismatch,fallback" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=ephemeral_all" \
|
2022-08-29 10:25:17 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
2022-09-22 13:07:28 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-28 09:50:13 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral_all/ephemeral_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-09-28 04:07:54 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
|
|
|
1 \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-s "Invalid binder."
|
2022-09-22 13:07:28 +02:00
|
|
|
|
2022-08-29 10:25:17 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral_all/psk_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-08-29 10:25:17 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-29 10:25:17 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral_all/psk_all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=ephemeral_all" \
|
2022-08-29 10:25:17 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral_all/psk_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-08-29 10:25:17 +02:00
|
|
|
1 \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-29 10:25:17 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-29 10:25:17 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral_all/all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-08-29 10:25:17 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-29 10:25:17 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-28 04:07:54 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral_all/all, good, key id mismatch, fallback" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=ephemeral_all" \
|
2022-08-29 10:25:17 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: ephemeral_all/all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-29 10:25:17 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-29 10:25:17 +02:00
|
|
|
|
2022-08-29 12:11:14 +02:00
|
|
|
# psk_all mode in client
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/psk, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk$" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/psk, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/psk, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-22 13:07:28 +02:00
|
|
|
-s "Invalid binder."
|
2022-08-29 12:11:14 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/psk_ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/psk_ephemeral, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/psk_ephemeral, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-09-26 10:40:10 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
2022-09-26 10:40:10 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-26 10:40:10 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-29 12:11:14 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/ephemeral, fail - no common kex mode" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-26 06:01:06 +02:00
|
|
|
-c "client hello, adding PSK binder list"
|
2022-08-29 12:11:14 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/ephemeral_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/ephemeral_all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-26 06:01:06 +02:00
|
|
|
-s "No matched PSK or ticket"
|
2022-08-29 12:11:14 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-28 09:50:13 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/ephemeral_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-29 12:11:14 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/psk_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/psk_all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/psk_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-29 12:11:14 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-26 06:01:06 +02:00
|
|
|
-s "No matched PSK or ticket"
|
2022-08-29 12:11:14 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: psk_all/all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-29 12:11:14 +02:00
|
|
|
|
|
|
|
# all mode in client
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/psk, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk$" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/psk, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-26 10:40:10 +02:00
|
|
|
-s "No matched PSK or ticket" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/psk, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-22 13:07:28 +02:00
|
|
|
-s "Invalid binder."
|
2022-08-29 12:11:14 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/psk_ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/psk_ephemeral, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/psk_ephemeral, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-29 12:11:14 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/ephemeral, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: ephemeral" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/ephemeral_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-28 04:07:54 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/ephemeral_all, good, key id mismatch, fallback" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "No matched PSK or ticket" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: ephemeral" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/ephemeral_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=all" \
|
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-29 12:11:14 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/psk_all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/psk_all, fail, key id mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-s "ClientHello message misses mandatory extensions."
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/psk_all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
1 \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-29 12:11:14 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/all, good" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/all, good, key id mismatch, fallback" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-13 03:58:07 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=all" \
|
2022-08-29 12:11:14 +02:00
|
|
|
0 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "No matched PSK or ticket" \
|
|
|
|
-s "key exchange mode: ephemeral"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 13:41:50 +02:00
|
|
|
run_test "TLS 1.3: m->m: all/all, fail, key material mismatch" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-09-22 13:07:28 +02:00
|
|
|
"$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=all" \
|
|
|
|
1 \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
2022-08-29 12:11:14 +02:00
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
2022-09-22 13:07:28 +02:00
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Invalid binder."
|
2022-08-29 12:11:14 +02:00
|
|
|
|
2022-08-23 10:06:34 +02:00
|
|
|
#OPENSSL-SERVER psk mode
|
2022-08-23 08:47:40 +02:00
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->O: psk/all, good" \
|
2022-08-23 08:47:40 +02:00
|
|
|
"$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203 -allow_no_dhe_kex -nocert" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-08-23 08:47:40 +02:00
|
|
|
0 \
|
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-c "<= write client hello" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk$" \
|
2022-08-23 08:47:40 +02:00
|
|
|
-c "HTTP/1.0 200 ok"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->O: psk/ephemeral_all, fail - no common kex mode" \
|
2022-08-23 08:47:40 +02:00
|
|
|
"$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203" \
|
2022-10-17 09:37:16 +02:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-08-25 08:17:36 +02:00
|
|
|
1 \
|
2022-08-23 08:47:40 +02:00
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-c "<= write client hello" \
|
2022-08-25 08:17:36 +02:00
|
|
|
-c "Last error was: -0x7780 - SSL - A fatal alert message was received from our peer"
|
2022-08-23 08:47:40 +02:00
|
|
|
|
2022-08-30 11:18:59 +02:00
|
|
|
#OPENSSL-SERVER psk_all mode
|
|
|
|
requires_openssl_tls1_3
|
2022-08-23 08:47:40 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->O: psk_all/all, good" \
|
2022-08-30 11:18:59 +02:00
|
|
|
"$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203 -allow_no_dhe_kex -nocert" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-08-23 08:47:40 +02:00
|
|
|
0 \
|
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-c "<= write client hello" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "HTTP/1.0 200 ok"
|
2022-08-23 08:47:40 +02:00
|
|
|
|
2022-08-30 11:18:59 +02:00
|
|
|
requires_openssl_tls1_3
|
2022-08-23 08:47:40 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->O: psk_all/ephemeral_all, good" \
|
2022-08-30 11:18:59 +02:00
|
|
|
"$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203" \
|
2022-10-17 09:37:16 +02:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-08-23 08:47:40 +02:00
|
|
|
0 \
|
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-c "<= write client hello" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "HTTP/1.0 200 ok"
|
2022-08-23 08:47:40 +02:00
|
|
|
|
2022-08-30 11:18:59 +02:00
|
|
|
#OPENSSL-SERVER psk_ephemeral mode
|
2022-08-23 10:06:34 +02:00
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->O: psk_ephemeral/all, good" \
|
2022-08-23 10:06:34 +02:00
|
|
|
"$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203 -allow_no_dhe_kex -nocert" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-08-23 10:06:34 +02:00
|
|
|
0 \
|
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-c "<= write client hello" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-23 10:06:34 +02:00
|
|
|
-c "HTTP/1.0 200 ok"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->O: psk_ephemeral/ephemeral_all, good" \
|
2022-08-23 10:06:34 +02:00
|
|
|
"$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203" \
|
2022-10-17 09:37:16 +02:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-08-23 10:06:34 +02:00
|
|
|
0 \
|
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-c "<= write client hello" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-23 10:06:34 +02:00
|
|
|
-c "HTTP/1.0 200 ok"
|
|
|
|
|
2022-08-30 11:18:59 +02:00
|
|
|
#OPENSSL-SERVER ephemeral mode
|
|
|
|
requires_openssl_tls1_3
|
2022-08-23 10:06:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->O: ephemeral/all, good" \
|
2022-08-30 11:18:59 +02:00
|
|
|
"$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203 -allow_no_dhe_kex" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-08-23 10:06:34 +02:00
|
|
|
0 \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: ephemeral" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "HTTP/1.0 200 ok"
|
2022-08-23 10:06:34 +02:00
|
|
|
|
2022-08-30 11:18:59 +02:00
|
|
|
requires_openssl_tls1_3
|
2022-08-23 10:06:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->O: ephemeral/ephemeral_all, good" \
|
2022-08-30 11:18:59 +02:00
|
|
|
"$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203" \
|
|
|
|
"$P_CLI debug_level=4 sig_algs=ecdsa_secp256r1_sha256 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-08-23 10:06:34 +02:00
|
|
|
0 \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: ephemeral" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "HTTP/1.0 200 ok"
|
2022-08-23 10:06:34 +02:00
|
|
|
|
2022-08-30 11:18:59 +02:00
|
|
|
#OPENSSL-SERVER ephemeral_all mode
|
2022-08-24 05:18:31 +02:00
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->O: ephemeral_all/all, good" \
|
2022-08-24 05:18:31 +02:00
|
|
|
"$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203 -allow_no_dhe_kex -nocert" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-08-24 05:18:31 +02:00
|
|
|
0 \
|
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-24 05:18:31 +02:00
|
|
|
-c "<= write client hello" \
|
|
|
|
-c "HTTP/1.0 200 ok"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->O: ephemeral_all/ephemeral_all, good" \
|
2022-08-24 05:18:31 +02:00
|
|
|
"$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203" \
|
2022-08-30 11:18:59 +02:00
|
|
|
"$P_CLI debug_level=4 sig_algs=ecdsa_secp256r1_sha256 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-08-24 05:18:31 +02:00
|
|
|
0 \
|
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-24 05:18:31 +02:00
|
|
|
-c "<= write client hello" \
|
|
|
|
-c "HTTP/1.0 200 ok"
|
|
|
|
|
2022-08-30 11:18:59 +02:00
|
|
|
#OPENSSL-SERVER all mode
|
2022-08-24 08:29:05 +02:00
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->O: all/all, good" \
|
2022-08-30 11:18:59 +02:00
|
|
|
"$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203 -allow_no_dhe_kex -nocert" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-08-24 08:29:05 +02:00
|
|
|
0 \
|
|
|
|
-c "=> write client hello" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-24 08:29:05 +02:00
|
|
|
-c "<= write client hello" \
|
|
|
|
-c "HTTP/1.0 200 ok"
|
|
|
|
|
|
|
|
requires_openssl_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->O: all/ephemeral_all, good" \
|
2022-08-24 08:29:05 +02:00
|
|
|
"$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203" \
|
2022-08-30 11:18:59 +02:00
|
|
|
"$P_CLI debug_level=4 sig_algs=ecdsa_secp256r1_sha256 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-08-24 08:29:05 +02:00
|
|
|
0 \
|
|
|
|
-c "=> write client hello" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-24 08:29:05 +02:00
|
|
|
-c "<= write client hello" \
|
|
|
|
-c "HTTP/1.0 200 ok"
|
|
|
|
|
2022-08-30 11:18:59 +02:00
|
|
|
#GNUTLS-SERVER psk mode
|
2022-08-24 08:29:05 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->G: psk/all, good" \
|
2022-10-25 17:35:29 +02:00
|
|
|
"$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK --pskpasswd=data_files/simplepass.psk" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-08-24 08:29:05 +02:00
|
|
|
0 \
|
|
|
|
-c "=> write client hello" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Parsing extension 'PSK Key Exchange Modes/45'" \
|
|
|
|
-s "Parsing extension 'Pre Shared Key/41'" \
|
2022-08-24 08:29:05 +02:00
|
|
|
-c "<= write client hello" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk$" \
|
2022-08-24 08:29:05 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->G: psk/ephemeral_all, fail - no common kex mode" \
|
2022-10-25 17:35:29 +02:00
|
|
|
"$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK --pskpasswd=data_files/simplepass.psk" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \
|
2022-08-30 11:18:59 +02:00
|
|
|
1 \
|
2022-08-24 08:29:05 +02:00
|
|
|
-c "=> write client hello" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Parsing extension 'PSK Key Exchange Modes/45'" \
|
|
|
|
-s "Parsing extension 'Pre Shared Key/41'" \
|
2022-08-24 08:29:05 +02:00
|
|
|
-c "<= write client hello" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "Last error was: -0x7780 - SSL - A fatal alert message was received from our peer"
|
2022-08-24 08:29:05 +02:00
|
|
|
|
2022-08-30 11:18:59 +02:00
|
|
|
#GNUTLS-SERVER psk_all mode
|
2022-08-24 08:48:07 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
2022-08-30 11:18:59 +02:00
|
|
|
requires_gnutls_tls1_3
|
2022-08-24 08:48:07 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->G: psk_all/all, good" \
|
2022-10-25 17:35:29 +02:00
|
|
|
"$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK --pskpasswd=data_files/simplepass.psk" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-08-24 08:48:07 +02:00
|
|
|
0 \
|
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-s "Parsing extension 'PSK Key Exchange Modes/45'" \
|
|
|
|
-s "Parsing extension 'Pre Shared Key/41'" \
|
2022-08-24 08:48:07 +02:00
|
|
|
-c "<= write client hello" \
|
2022-09-27 16:46:11 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
2022-08-24 08:48:07 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
2022-08-30 11:18:59 +02:00
|
|
|
requires_gnutls_tls1_3
|
2022-08-24 08:48:07 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-27 16:46:11 +02:00
|
|
|
run_test "TLS 1.3: m->G: psk_all/ephemeral_all, good" \
|
2022-10-25 17:35:29 +02:00
|
|
|
"$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK --pskpasswd=data_files/simplepass.psk" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \
|
2022-09-27 16:46:11 +02:00
|
|
|
0 \
|
2022-08-24 08:48:07 +02:00
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-s "Parsing extension 'PSK Key Exchange Modes/45'" \
|
|
|
|
-s "Parsing extension 'Pre Shared Key/41'" \
|
2022-08-24 08:48:07 +02:00
|
|
|
-c "<= write client hello" \
|
2022-09-27 16:46:11 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
|
|
|
-c "HTTP/1.0 200 OK"
|
2022-08-24 08:48:07 +02:00
|
|
|
|
2022-08-30 11:18:59 +02:00
|
|
|
#GNUTLS-SERVER psk_ephemeral mode
|
2022-08-24 08:48:07 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->G: psk_ephemeral/all, good" \
|
2022-10-25 17:35:29 +02:00
|
|
|
"$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK --pskpasswd=data_files/simplepass.psk" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-08-30 11:18:59 +02:00
|
|
|
0 \
|
2022-08-24 08:48:07 +02:00
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Parsing extension 'PSK Key Exchange Modes/45'" \
|
|
|
|
-s "Parsing extension 'Pre Shared Key/41'" \
|
|
|
|
-c "<= write client hello" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
2022-08-24 08:48:07 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->G: psk_ephemeral/ephemeral_all, good" \
|
2022-10-25 17:35:29 +02:00
|
|
|
"$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK --pskpasswd=data_files/simplepass.psk" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \
|
2022-08-30 11:18:59 +02:00
|
|
|
0 \
|
2022-08-24 08:48:07 +02:00
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Parsing extension 'PSK Key Exchange Modes/45'" \
|
|
|
|
-s "Parsing extension 'Pre Shared Key/41'" \
|
|
|
|
-c "<= write client hello" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
2022-08-24 08:48:07 +02:00
|
|
|
|
2022-08-30 11:18:59 +02:00
|
|
|
#GNUTLS-SERVER ephemeral mode
|
2022-08-24 08:55:18 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
2022-08-30 11:18:59 +02:00
|
|
|
requires_gnutls_tls1_3
|
2022-08-24 08:55:18 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->G: ephemeral/all, good" \
|
2022-10-25 17:35:29 +02:00
|
|
|
"$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK --pskpasswd=data_files/simplepass.psk" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-08-24 08:55:18 +02:00
|
|
|
0 \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: ephemeral" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
2022-08-24 08:55:18 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
2022-08-30 11:18:59 +02:00
|
|
|
requires_gnutls_tls1_3
|
2022-08-24 08:55:18 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->G: ephemeral/ephemeral_all, good" \
|
2022-10-25 17:35:29 +02:00
|
|
|
"$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK --pskpasswd=data_files/simplepass.psk" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \
|
2022-08-24 08:55:18 +02:00
|
|
|
0 \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: ephemeral" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
2022-08-24 08:55:18 +02:00
|
|
|
|
2022-08-30 11:18:59 +02:00
|
|
|
#GNUTLS-SERVER ephemeral_all mode
|
2022-08-24 08:55:18 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
2022-08-30 11:18:59 +02:00
|
|
|
requires_gnutls_tls1_3
|
2022-08-24 08:55:18 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->G: ephemeral_all/all, good" \
|
2022-10-25 17:35:29 +02:00
|
|
|
"$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK --pskpasswd=data_files/simplepass.psk" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-08-24 08:55:18 +02:00
|
|
|
0 \
|
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-s "Parsing extension 'PSK Key Exchange Modes/45'" \
|
|
|
|
-s "Parsing extension 'Pre Shared Key/41'" \
|
2022-08-24 08:55:18 +02:00
|
|
|
-c "<= write client hello" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
2022-08-24 08:55:18 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->G: ephemeral_all/ephemeral_all, good" \
|
2022-10-25 17:35:29 +02:00
|
|
|
"$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK --pskpasswd=data_files/simplepass.psk" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \
|
2022-08-24 08:55:18 +02:00
|
|
|
0 \
|
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Parsing extension 'PSK Key Exchange Modes/45'" \
|
|
|
|
-s "Parsing extension 'Pre Shared Key/41'" \
|
|
|
|
-c "<= write client hello" \
|
2022-09-28 04:07:54 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-24 08:55:18 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
|
|
|
|
2022-08-30 11:18:59 +02:00
|
|
|
#GNUTLS-SERVER all mode
|
2022-08-24 08:55:18 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->G: all/all, good" \
|
2022-10-25 17:35:29 +02:00
|
|
|
"$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK --pskpasswd=data_files/simplepass.psk" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-08-30 11:18:59 +02:00
|
|
|
0 \
|
2022-08-24 08:55:18 +02:00
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Parsing extension 'PSK Key Exchange Modes/45'" \
|
|
|
|
-s "Parsing extension 'Pre Shared Key/41'" \
|
|
|
|
-c "<= write client hello" \
|
2022-09-27 16:46:11 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-30 11:18:59 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|
2022-08-24 08:55:18 +02:00
|
|
|
|
|
|
|
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
requires_gnutls_tls1_3
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
|
|
|
requires_config_enabled MBEDTLS_DEBUG_C
|
|
|
|
requires_config_enabled MBEDTLS_SSL_CLI_C
|
2022-10-17 10:36:34 +02:00
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
|
|
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
2022-09-07 12:10:16 +02:00
|
|
|
run_test "TLS 1.3: m->G: all/ephemeral_all, good" \
|
2022-10-25 17:35:29 +02:00
|
|
|
"$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK --pskpasswd=data_files/simplepass.psk" \
|
2023-03-14 08:59:56 +01:00
|
|
|
"$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \
|
2022-08-24 08:55:18 +02:00
|
|
|
0 \
|
|
|
|
-c "=> write client hello" \
|
|
|
|
-c "client hello, adding pre_shared_key extension, omitting PSK binder list" \
|
|
|
|
-c "client hello, adding psk_key_exchange_modes extension" \
|
|
|
|
-c "client hello, adding PSK binder list" \
|
|
|
|
-s "Parsing extension 'PSK Key Exchange Modes/45'" \
|
|
|
|
-s "Parsing extension 'Pre Shared Key/41'" \
|
|
|
|
-c "<= write client hello" \
|
2022-09-27 16:46:11 +02:00
|
|
|
-c "Selected key exchange mode: psk_ephemeral" \
|
2022-08-24 08:55:18 +02:00
|
|
|
-c "HTTP/1.0 200 OK"
|