]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Authentication server using PKCS#12 file
authorJouni Malinen <j@w1.fi>
Wed, 19 Mar 2014 22:16:00 +0000 (00:16 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 19 Mar 2014 22:16:00 +0000 (00:16 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/auth_serv/server.pkcs12 [new file with mode: 0644]
tests/hwsim/test_ap_eap.py

diff --git a/tests/hwsim/auth_serv/server.pkcs12 b/tests/hwsim/auth_serv/server.pkcs12
new file mode 100644 (file)
index 0000000..0f5aa55
Binary files /dev/null and b/tests/hwsim/auth_serv/server.pkcs12 differ
index 49376902c9d70b6a98407f412e11647ebf6f9da5..414c4ec2f294ec4eca4cad55f2fe57f9adcd5d69 100644 (file)
@@ -1064,6 +1064,17 @@ def test_ap_wpa2_eap_ttls_server_cert_eku_client_server(dev, apdev):
                    ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAP",
                    scan_freq="2412")
 
+def test_ap_wpa2_eap_ttls_server_pkcs12(dev, apdev):
+    """WPA2-Enterprise using EAP-TTLS and server PKCS#12 file"""
+    params = int_eap_server_params()
+    del params["server_cert"]
+    params["private_key"] = "auth_serv/server.pkcs12"
+    hostapd.add_ap(apdev[0]['ifname'], params)
+    dev[0].connect("test-wpa2-eap", key_mgmt="WPA-EAP", eap="TTLS",
+                   identity="mschap user", password="password",
+                   ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAP",
+                   scan_freq="2412")
+
 def test_ap_wpa2_eap_ttls_dh_params(dev, apdev):
     """WPA2-Enterprise connection using EAP-TTLS/CHAP and setting DH params"""
     params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")