<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi all,<br><br>I'm trying to test several EAP methods, including PEAPv0 &amp; PEAPv1. PEAPv0 works fine, but PEAPv1.<br>All other methods (e.g. EAP-TTLS, EAP-AKA, etc) work Ok.<br>I've done some Google search but I couldn't find any pointers.<br><br>I'm using eapol_test (v2.1) to test EAP methods.<br><br>This is my .conf file:<br><br>network={<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ssid="test"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; key_mgmt=WPA-EAP<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eap=PEAP<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; identity="user"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; password="password"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; anonymous_identity="not anonymous"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ca_cert="ca.pem"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; phase1="peaplabel=1"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; phase2="auth=MD5"<br>}<br><br>And this is eapol_test output:<br><br>...<br>...<br>...<br>RADIUS packet matching with station<br>MS-MPPE-Send-Key (sign) - hexdump(len=32): 0b 56 d2 59 a3 7d 06 86 21 25 3c b0 7<br>d e3 52 50 3e 67 a5 f9 d4 e4 16 6c e0 cd e2 91 8d 11 17 84<br>MS-MPPE-Recv-Key (crypt) - hexdump(len=32): 3b 5a 51 96 0a 77 9b 32 1c 50 6c 4b<br>a8 95 fa 1e bc a8 ba 7a c6 f8 76 cc 3b 09 f4 35 64 8b 26 b1<br>decapsulated EAP packet (code=3 id=7 len=4) from RADIUS server: EAP Success<br>EAPOL: Received EAP-Packet frame<br>EAPOL: SUPP_BE entering state REQUEST<br>EAPOL: getSuppRsp<br>EAP: EAP entering state RECEIVED<br>EAP: Received EAP-Success<br>EAP: Status notification: completion (param=success)<br>EAP: EAP entering state SUCCESS<br>CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully<br>EAPOL: IEEE 802.1X for plaintext connection; no EAPOL-Key frames required<br>WPA: EAPOL processing complete<br>EAPOL: SUPP_PAE entering state AUTHENTICATED<br>EAPOL: SUPP_BE entering state RECEIVE<br>EAPOL: SUPP_BE entering state SUCCESS<br>EAPOL: SUPP_BE entering state IDLE<br>eapol_sm_cb: result=1<br>EAPOL: Successfully fetched key (len=32)<br>PMK from EAPOL - hexdump(len=32): b1 61 62 66 33 67 f8 2f 1e d8 6a e8 1e 39 d8 d<br>5 34 d8 98 35 36 a8 08 14 9a f1 58 9d 6e 6d 5e ef<br>WARNING: PMK mismatch<br>PMK from AS - hexdump(len=32): 3b 5a 51 96 0a 77 9b 32 1c 50 6c 4b a8 95 fa 1e b<br>c a8 ba 7a c6 f8 76 cc 3b 09 f4 35 64 8b 26 b1<br>EAP: deinitialize previously used EAP method (25, PEAP) at EAP deinit<br>ENGINE: engine deinit<br>MPPE keys OK: 0&nbsp; mismatch: 1<br>FAILURE<br><br>This is part of hostapd output:<br><br>...<br>...<br>...<br>RADIUS SRV: Request for session 0x0<br>RADIUS SRV: Received EAP data - hexdump(len=6): 02 07 00 06 19 01<br>EAP: EAP entering state RECEIVED<br>EAP: parseEapResp: rxResp=1 respId=7 respMethod=25 respVendor=0 respVendorMethod<br>=0<br>EAP: EAP entering state INTEGRITY_CHECK<br>EAP: EAP entering state METHOD_RESPONSE<br>SSL: Received packet(len=6) - Flags 0x01<br>SSL: Received packet: Flags 0x1 Message Length 0<br>EAP-PEAP: SUCCESS_REQ -&gt; SUCCESS<br>OpenSSL: Using internal PRF<br>EAP-PEAP: Derived key - hexdump(len=64): 3b 5a 51 96 0a 77 9b 32 1c 50 6c 4b a8<br>95 fa 1e bc a8 ba 7a c6 f8 76 cc 3b 09 f4 35 64 8b 26 b1 0b 56 d2 59 a3 7d 06 86<br>&nbsp;21 25 3c b0 7d e3 52 50 3e 67 a5 f9 d4 e4 16 6c e0 cd e2 91 8d 11 17 84<br>EAP: EAP entering state SELECT_ACTION<br>EAP: getDecision: method succeeded -&gt; SUCCESS<br>EAP: EAP entering state SUCCESS<br>EAP: Building EAP-Success (id=7)<br>eth0: CTRL-EVENT-EAP-SUCCESS 00:00:00:00:00:00<br>RADIUS SRV: EAP data from the state machine - hexdump(len=4): 03 07 00 04<br>RADIUS SRV: Reply to 127.0.0.1:53035<br>RADIUS message: code=2 (Access-Accept) identifier=7 length=160<br>&nbsp;&nbsp; Attribute 79 (EAP-Message) length=6<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Value: 03 07 00 04<br>&nbsp;&nbsp; Attribute 26 (Vendor-Specific) length=58<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Value: 00 00 01 37 10 34 c9 03 67 98 8d d4 08 2e 3a 8c 82 00 d2 e6 20 e2 9<br>7 a0 fd e6 f8 dd e6 b4 76 1b 77 61 51 f3 c2 52 88 80 68 54 f4 ce 0c 18 c6 31 0e<br>f4 10 02 96 eb ee ba<br>&nbsp;&nbsp; Attribute 26 (Vendor-Specific) length=58<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Value: 00 00 01 37 11 34 c9 02 79 4f 83 ba 16 8a ac 6b 17 17 c4 46 f5 e2 e<br>8 98 12 9a 2f ba 41 fd 5c 15 3a fd 1c 30 41 fa 13 b6 6f bc 78 c4 1f 1e 76 21 19<br>77 19 ff 17 a6 70 b1<br>&nbsp;&nbsp; Attribute 80 (Message-Authenticator) length=18<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Value: c7 17 84 d4 57 54 c7 5f 35 15 a3 ef 2b 7f f3 d5<br>&nbsp;&nbsp;&nbsp; &nbsp; <br><br>Any pointers/examples/etc will be greatly appreciated.<br><br>Thanks in advance.<br><br>Sergio.<br>                                               </div></body>
</html>