tests: EAP-TLSv1.3 with OCSP stapling
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
1ba0043034
commit
7310995d87
1 changed files with 11 additions and 1 deletions
|
@ -5939,15 +5939,25 @@ def test_ap_wpa2_eap_tls_versions_server(dev, apdev):
|
||||||
|
|
||||||
def test_ap_wpa2_eap_tls_13(dev, apdev):
|
def test_ap_wpa2_eap_tls_13(dev, apdev):
|
||||||
"""EAP-TLS and TLS 1.3"""
|
"""EAP-TLS and TLS 1.3"""
|
||||||
|
run_ap_wpa2_eap_tls_13(dev, apdev)
|
||||||
|
|
||||||
|
def test_ap_wpa2_eap_tls_13_ocsp(dev, apdev):
|
||||||
|
"""EAP-TLS and TLS 1.3 with OCSP stapling"""
|
||||||
|
run_ap_wpa2_eap_tls_13(dev, apdev, ocsp=True)
|
||||||
|
|
||||||
|
def run_ap_wpa2_eap_tls_13(dev, apdev, ocsp=False):
|
||||||
params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
|
params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
|
||||||
hapd = hostapd.add_ap(apdev[0], params)
|
hapd = hostapd.add_ap(apdev[0], params)
|
||||||
|
|
||||||
check_tls13_support(dev[0])
|
check_tls13_support(dev[0])
|
||||||
|
if ocsp:
|
||||||
|
check_ocsp_support(dev[0])
|
||||||
id = eap_connect(dev[0], hapd, "TLS", "tls user",
|
id = eap_connect(dev[0], hapd, "TLS", "tls user",
|
||||||
ca_cert="auth_serv/ca.pem",
|
ca_cert="auth_serv/ca.pem",
|
||||||
client_cert="auth_serv/user.pem",
|
client_cert="auth_serv/user.pem",
|
||||||
private_key="auth_serv/user.key",
|
private_key="auth_serv/user.key",
|
||||||
phase1="tls_disable_tlsv1_0=1 tls_disable_tlsv1_1=1 tls_disable_tlsv1_2=1 tls_disable_tlsv1_3=0")
|
phase1="tls_disable_tlsv1_0=1 tls_disable_tlsv1_1=1 tls_disable_tlsv1_2=1 tls_disable_tlsv1_3=0",
|
||||||
|
ocsp=2 if ocsp else 0)
|
||||||
ver = dev[0].get_status_field("eap_tls_version")
|
ver = dev[0].get_status_field("eap_tls_version")
|
||||||
if ver != "TLSv1.3":
|
if ver != "TLSv1.3":
|
||||||
raise Exception("Unexpected TLS version")
|
raise Exception("Unexpected TLS version")
|
||||||
|
|
Loading…
Add table
Reference in a new issue