From 31dd31538268406084cf04c1fbdefbc37301e45c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 6 Feb 2016 01:09:42 +0200 Subject: [PATCH] tests: PKCS#12 with extra certs on the server Signed-off-by: Jouni Malinen --- tests/hwsim/auth_serv/server-extra.pkcs12 | Bin 0 -> 2426 bytes tests/hwsim/test_ap_eap.py | 13 +++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/hwsim/auth_serv/server-extra.pkcs12 diff --git a/tests/hwsim/auth_serv/server-extra.pkcs12 b/tests/hwsim/auth_serv/server-extra.pkcs12 new file mode 100644 index 0000000000000000000000000000000000000000..c172cb32a3c9526dcf8a15f0f24751737c37792f GIT binary patch literal 2426 zcmY+Fc{CIX8^&j4NKEd?U@Y0kQZvTQF6%V5Tx*xgmVLPPv6g8DrL1KJMWG2Hk$o#$ zj4aoZJzGO=#vY-hug>|tukZWgecyAQ=bZPi=R7|Qg^L6Nf-w{>Z4NGl1VX~zaUdr! zkHV!4p>Uyp$TAoT2j?$~BaZ^z$55ar_d6KT$T&Dy z3;9cz>FKwBpg8oD&7a(pB)hHpM%?c6rt5)eJuNeqV_mHb+4N*MedWF*tv^S-*~tz? z>b&S!F=5ZY)MNJH>aw-hIq>82aAZG0&g`*o4ZL&q`&6-RTQlel8 zE1R^wcg8)>#!|&x=hb?;+2ykvM5|<3(Yc14vFiSp5$IQT|NOO3ND)kaBoHA%7hHI& zVQ3lh{6eKcTSfrPOOL%1`d6_|Lx8yvXDWGDM?c?5n_3*}758npqPN5{&5-nNadv{R z=#wk3f#yw9kaMW^uaVHmVrB+)$e*`^34vPj6Q3vFp9&$I8`IDze0t{-$|<}*Wt4OL z6vh%8Lq?mVfmFs+-k;J<%=jB#IB`XP8z=N~xBAGe9C};nvg_nsE4{{xbslDK*+I=u z`x>jHk|rnAL)P7p1%WuxOS_}Zm~~D%4?1+iE9o_%E9cOtwhTTWP(@0};7Tt#}+{h?=c#CE7`bxnreC-KTVhy(P;cj7$p9}6i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001 diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index adabaff7f..6a3282904 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -3996,6 +3996,19 @@ def test_ap_wpa2_eap_ttls_server_pkcs12(dev, apdev): ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAP", scan_freq="2412") +def test_ap_wpa2_eap_ttls_server_pkcs12_extra(dev, apdev): + """EAP-TTLS and server PKCS#12 file with extra certs""" + skip_with_fips(dev[0]) + params = int_eap_server_params() + del params["server_cert"] + params["private_key"] = "auth_serv/server-extra.pkcs12" + params["private_key_passwd"] = "whatever" + 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")