From c37b02fcc4e740dc86cdbd9e4fb81ca0db16615c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 20 Mar 2014 00:16:00 +0200 Subject: [PATCH] tests: Authentication server using PKCS#12 file Signed-off-by: Jouni Malinen --- tests/hwsim/auth_serv/server.pkcs12 | Bin 0 -> 2426 bytes tests/hwsim/test_ap_eap.py | 11 +++++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/hwsim/auth_serv/server.pkcs12 diff --git a/tests/hwsim/auth_serv/server.pkcs12 b/tests/hwsim/auth_serv/server.pkcs12 new file mode 100644 index 0000000000000000000000000000000000000000..0f5aa553af2bb819e9bed02c2dd0cf3073f1d70f GIT binary patch literal 2426 zcmY+Fc{CIZ7sh8ZX0pAuk!Hq{rR+0g7u8s@WY1W#B}+mfB4rr{Stfh7WQ}ZvWX;&J z#Sj`x2))+CNXE`r=X~Gye%~MW-gBPkocqT;&$&Mg0qze1f-wZR8Wb)bc{Or}1;_}@ zCBUU11i095Sp-9XGX7&ha|sN)7y`pD5D@Tt{P@QKVo=ai|K7k1gko4BuqD@O*)1h( z6bJ+Zgc2B9)l2v_Wyxd~EB_hcuUyVFxAg7S3WTDDUi2Qfs?PB81gWE?s^OLQ(D2mr z*+IbV6MN59X8wcevn#X%y2r}e`tIh9ze)uYE1PDAGMzpJ#5VxYx$GiQDK1s>##+yI z_K!8PJf3I|KB&#QcFWCaXXP>zn_$h!72tgS> zefy(w>DdDT_Ieq4XXT1ne-s}L-OK>!j_)S=tc^ug{(@OGP&p;td(N;pIVQTqus(cn z7)ZW^$6YhDsu~zdbWBle(u1qT0)hNlc!t!XIv=-m*9H94N*V|Li%j~jhtz5JeVs>0 z$%d6c;Ifs?U6ZHn*>?dKoXS%i14vUZiaFzZG-a#0N?DVY$gcbsVB+7G9stIL^;s5NMuytVwB#Vs7ia5nfE8(X*LarMmeUj zP2{Bb-Bffh=X?UwCJm(d=VK>i5CBINjHL2L6yoUNR$#Xo}(^ zd~|4Utr1e_6n&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Ecm5==si=z}gVqQ7yNu%=a30UahK#3Q}zMwvS5 z)@UNf89Gdn-=sx=8#;i%PWQjJYxuG>0!fNtwT{-N=^PjA^;&wUW*KGMDXCoQuPtL` zE<$=a5?oWu!0llBeXl?}d1k?K7p$qNa-6LT3IBYnysJ2~U|%rQ!hcD<@7AIuWmEb5 zrdG$v`MQc@d|$o5Q_2C(tSq+w2Go+JyeoUpydU-hu>#zS2kRFS=TzD@n)T1~Ps$ZC z8snDu@Xa5?38mr#)tfV;#jL~j3sYfC-6GJ+EKe936?ywjOHXd6!!PLQc&D#hrxKio zvI@j1G?%P07tib?w$vghjqm1%zPnYVa?erbYkV#1j*1MWp4p)ce+vAy&jaHEftCN~M^5fM`RMSvd!=Enb)DN?$T@;4YLlDTj=h3G{x{WdE-Wh_ zGr$+%4DbQ?|LGW^e@t#H0>Xs_H28g%IZe#=GXu=Fh`$%xx20gP7(omi${@iC2AyF5 nK)5p7(#;}H$P~Z6`)Vh*&n=U9>_Q;01wI?~(iZKlKhggeZ8&(U literal 0 HcmV?d00001 diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index 49376902c..414c4ec2f 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -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")