Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    802.1X questions

    Scheduled Pinned Locked Moved LoPy
    wifieaptlspeap
    2 Posts 2 Posters 973 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      agallo
      last edited by

      Greetings:
      I'm having problems with getting 802.1X working. I'm trying both EAP-TLS and EAP-PEAP.

      For certificate (TLS) based security, the example (we're not doing server cert validation)

      wlan.connect(ssid='mywifi', auth=(WLAN.WPA2_ENT,), identity='myidentity',  keyfile='/flash/cert/client.key', certfile='/flash/cert/client.crt')
      

      Question- the private key and client cert in the example point to the same file. Is this expected? I have known working certs and either combining them into a single file or separating them into two different files, the RADIUS server rejects with:
      "EAP-TLS: fatal alert by client - bad_certificate. eap-tls: Error in establishing TLS session"

      For password based 802.1X (EPA-PEAP), I'm using a statement like:

      wlan.connect(ssid='myssid', auth=(WLAN.WPA2_ENT, 'myusername', 'passwd'), identity='myident')
      

      This is failing for a different reason. RADIUS server says:
      "EAP: Client doesn't support configured EAP methods"

      And debugging on the wireless controller, I see this log message:
      *Dot1x_NW_MsgTask_4: Nov 17 14:25:00.173: 24:0a:c4:02:48:f4 Received EAP Response from mobile 24:0a:c4:02:48:f4 (EAP Id 6, EAP Type 13)

      EAP Type 13 is TLS, not PEAP

      When the auth tuple has three elements (sec, username, password), the EAP type should change to 25, correct?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • G Offline
        gfavalessa
        last edited by

        Hello, I'm having a similar problem when trying to connect using EAP-PEAP. Has anyone gotten any results?
        Thank you.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post

        Pycom on Twitter

        Pycom