From: Jouni Malinen Date: Mon, 29 Jun 2015 19:25:43 +0000 (+0300) Subject: tests: EAP-TLS with PKCS12 that includes additional certificates X-Git-Tag: hostap_2_5~488 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c83ae04694ff7f973bc4dde4588665ba3e1c397;p=thirdparty%2Fhostap.git tests: EAP-TLS with PKCS12 that includes additional certificates Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/auth_serv/user2.pkcs12 b/tests/hwsim/auth_serv/user2.pkcs12 new file mode 100644 index 000000000..097006238 Binary files /dev/null and b/tests/hwsim/auth_serv/user2.pkcs12 differ diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index f6c8d26e6..ceb61787b 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -1293,6 +1293,8 @@ def test_ap_wpa2_eap_tls_pkcs12(dev, apdev): private_key="auth_serv/user.pkcs12", private_key_passwd="whatever") dev[0].request("REMOVE_NETWORK all") + dev[0].wait_disconnected() + dev[0].connect("test-wpa2-eap", key_mgmt="WPA-EAP", eap="TLS", identity="tls user", ca_cert="auth_serv/ca.pem", @@ -1304,6 +1306,14 @@ def test_ap_wpa2_eap_tls_pkcs12(dev, apdev): id = ev.split(':')[0].split('-')[-1] dev[0].request("CTRL-RSP-PASSPHRASE-" + id + ":whatever") dev[0].wait_connected(timeout=10) + dev[0].request("REMOVE_NETWORK all") + dev[0].wait_disconnected() + + eap_connect(dev[0], apdev[0], "TLS", "tls user", ca_cert="auth_serv/ca.pem", + private_key="auth_serv/user2.pkcs12", + private_key_passwd="whatever") + dev[0].request("REMOVE_NETWORK all") + dev[0].wait_disconnected() def test_ap_wpa2_eap_tls_pkcs12_blob(dev, apdev): """WPA2-Enterprise connection using EAP-TLS and PKCS#12 from configuration blob"""