-
Notifications
You must be signed in to change notification settings - Fork 13.3k
WPA2-enterprise + PEAP #1032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There is a longer discussion of this topic on the esp8266 forum http://www.esp8266.com/viewtopic.php?f=6&t=1243&start=15. |
WPA2-enterprise is supported in SDK 1.5, so linking this to #1102. |
I suspect only eap-tls is supported. See http://bbs.espressif.com/download/file.php?id=988. The only reference to wpa2-enterprise is in Also: $ ar -t esp_iot_sdk_v1/esp_iot_sdk_v1.5.0/lib/libwpa2.a |
HI guys. Finally WPA2 Enterprise is supported. But I cannot find any example. Actually I saw that only 1 person got it working. |
I have not yet added |
@igrr shouldn't that be line 33? Either way that doesn't work for me, I included #include <user_interface.h>
...
wifi_station_clear_cert_key(); ... in my code to see if that would build, but it doesn't: sketch_dec20a.ino:5: undefined reference to `wifi_station_clear_cert_key()' But I'm not sure this is the right way to call those functions. |
You need to wrap that include with extern "C" {
#include "user_interface.h"
} Regarding line number: after I wrote that comment a few lines got added, so now |
@igrr extern "C" does get me further, except for this:
I hope you know what's missing :-) |
I also added the -lwpa2 parameter. |
Should be fixed by 70cf3c3 |
Yes, now it compiles. Thanks Igrr, Back to my first question. Where to put the username (Identity)? |
@igrr Great, that compiles and I've actually got it to authenticate. But: with the wrong User-Name, that seems to be set to "tianhao" and not taken from the certificate CN. Maybe it uses the Microsoft UPN attribute or a subjectAltName; I'll try to experiment with that, but suggestions are welcome. |
I also need to connect to a WPA2 Enterprise secured network, it requirers user authentication that is Username + Password, no certificate. Did anyone got this to work? And if so is there a guide + example |
So far only EAP-TLS is supported; so client-certificate based and not username/password. This works fine for me, but if you have no client-certificate and no control over the RADIUS server, I don't think you can do a lot (but wait for a series of other EAP-mechanisms to be supported). |
I have full control over the RADIUS server just never configured anything else than user name based. |
You can use something like https://github.com/joostd/esp8266-eduroam/blob/master/Arduino/eduroam/eduroam.ino. At the moment, it needs a patched esp8266 Arduino core (#1633) |
FYI Espressif just released 1.5.3 which adds username/password support. |
Alas, all that 1.5.3 adds are the missing prototypes in It does mean that PR #1633 is no longer necessary once the SDK is upgraded to 1.5.3. |
@joostd Yeah I didn't notice that at first.. got a bit excited. I haven't been able to get PEAP going at my workplace. |
I'm very interested. Can someone give a quick run down of the step by step for what almost "works" as of right now so I could give it a try? I take it it's only certificate based and not identity/password based that works (would be nice, but ok). Edit: Are we waiting on Espressif for the identity/password bit? |
I'm interested in seeing the arduino implementation for username/password on 801.2x |
What's the current status of this? |
With the switch to V2.0 of the espressif sdk, EAP-TTLS and PEAP should now work as well. |
Hi @ all, |
I tried 2.4.0-rc but It looks, that WPA2 enterprise doesnt work. Did I mistake? |
@svatos-jirka WPA2 enterprise doesn't work is a very broad statement. Which authentication method are you trying to use (PEAP, TLS, etc.)? What code are you using and types of errors are you getting? Also, do note the previous comment by @victorclaessen where we were talking about a bug in the firmware with WPA2 auth selection which I hope they fix soon. |
@ninjabe86 and @victorclaessen As the code you mentioned, you directly upload programs to ESP8266 and treat it like Arduino. Is there a way to talk to ESP8266 via Arduino? (Arduino controls ESP8266 to connect to eduroam?) |
Hi,
I am not sure, if my answer is correct. It is wpa2-enterprise AES, network
authentication Microsoft: smart card or other certificates ... so I should
Ilso somehow download certifiacte from PKI card? or ask for certificate or
It department. But, How should I upload certificate to esp8266?
wit best regards, jiri
2017-11-10 13:06 GMT+01:00 gofex <[email protected]>:
… @svatos-jirka <https://github.com/svatos-jirka> WPA2 enterprise doesn't
work is a very broad statement. Which authentication method are you trying
to use (PEAP, TLS, etc.)? What code are you using and types of errors are
you getting? Also, do note the previous comment by @victorclaessen
<https://github.com/victorclaessen> where we were talking about a bug in
the firmware with WPA2 auth selection which I hope they fix soon.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1032 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIYG0pzG-P5F7ID50Dmq6wfv-EAalGqHks5s1Dw8gaJpZM4Gj1mQ>
.
|
Hey, I'm watching this topic for a long time now... I also want to use WPA2 Enterprise, but in my case, I want to use EAP-PWD. Problem with MSCHAPv2 is, that it is actually very unsecure if not used right. And as far as I can tell from the conversations above, noone is using it correctly. |
@xsrf that is a question best asked directectly to Espressif. |
I'm afraid ExpressIf may not have any interest left in this topic, since
they have stopped responding completely to any of my contact attempts.
…On Dec 21, 2017 23:44, "Develo" ***@***.***> wrote:
@xsrf <https://github.com/xsrf> that is a question best asked directectly
to Espressif.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1032 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKqUHA7IQcGhesEE-FNs5sFK1hY8J1sAks5tCt9pgaJpZM4Gj1mQ>
.
|
To reiterate what others have stated, the ESP8266 has an authentication type selection bug. In my case, using a freeradius server, the mode set as default_eap_type is the only type that ESP8266 will try to communicate with. I was able to authenticate with default_eap_type set to ttls, peap, or tls, and not able to authenticate with the nominal default_eap_type of md5. Totally different from the eapol_test program that exists in the Linux wpa_supplicant source package. Although tls worked well enough to authenticate, I found that my ESP8266 software crashed always about one minute after authentication succeeded. ttls and peap had no problems. |
Is there a github issue which tracks this Bug? This Issue here is closed. I dont think they will respond here |
I don't think so. Might be worth a shot. Feel free to link to this post on their own message board: |
@fti7 no, since it's an issue with the underlying sdk of espressif, not with ESP8266 core for Arduino. There's also a post on espressifs forum for EAP+PWD: https://bbs.espressif.com/viewtopic.php?f=7&t=8802 |
@xsrf. That is, of course, very true and a really good point. But at this stage, what other options do we have to get this issue some more attention? |
I don't know :( But I lost all hope espressif will ever address this issue. Maybe someone is actually implementing WPA2-Enterprise without the help of the SDK... I don't see other options. |
Hello there, some working sketch for WPA2 EAP OR PEAP? |
Hi there, is there any working sketch for Arduino for WPA2 EAP for the current version : SDK:2.2.1(cfd48f3)/Core:2.4.1/lwIP:2.0.3(STABLE-2_0_3_RELEASE/glue:arduino-2.4.1) |
It seems some people were able to make it work, does anyone have a working sketch yet? I'm trying to connect my NodeMCU to a WPA2-Enterprise hotspot and it doesn't work using wifi_station_set_config etc. |
It seems to depend on authentication protocol. It may work when using MSCHAPv2 but not PAP. |
Do not forget my January result above with the free radius server; unfortunately the default eap type was the only one the ESP8266 would authenticate with. So it helps to be able to change that setting in your server when you are testing things out. |
Hello together, |
I tried it, it doesn’t work for me and just kicks my board into a boot loop.
On Mon 17. Dec 2018 at 21:06, bospre ***@***.***> wrote:
Hello together,
good news.
I found a working sketch for wpa2 enterprise with username and password
(PAP)
Look here:
https://github.com/jtuttas/ESP8266-WPA2-Enterprise/blob/master/ino/webserver/webserver.ino
I think the difference is resetting (or initialise) the certificate.
2 years of waiting are now ending....
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1032 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATp8pGiCv2lE8EK3Ljynq7nbU2yTcdiks5u5_lHgaJpZM4Gj1mQ>
.
--
Mit freundlichen Grüßen
Tobias Timpe
|
almost nobody is using PAP... |
I think i had a typo and the authentication PEAP. |
Most eduroam / enterprise networks also support EAP-PWD which should be easier to implement than EAP-PEAP-MSCHAPV2 or EAP-TTLS-MSCHAPV2. EAP-TTLS-PAP shouldn't be used anyways because it leaks your password quite easily if not configured 100% right. |
Okay it was a typo (PAP =>PEAP) |
Huh, the server hides some part of the line. |
Still missing the part: via Auth-Type = EAP |
Can ESP connect to WPA2-enterprise + PEAP networks ? If yes, how to do that ?
The text was updated successfully, but these errors were encountered: