Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    freeRadius / Unifi AP / EAP-TTLS ?

    Scheduled Pinned Locked Moved pfSense Packages
    97 Posts 3 Posters 28.4k Views
    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.
    • F
      furom @johnpoz
      last edited by

      @johnpoz said in freeRadius / Unifi AP / EAP-TTLS ?:

      Why do you have raduser in local db? you understand the users in freerad don't have to match up to local users.

      Hrm... No, I actually didn't. That is why I was nagging about diag/auth. Now I understand why you didn't care about that then.
      But on the positive side, I got a reaction from radserver when trying auth from the tablet. I now need to copy over the cert and retry :)

      johnpozJ 2 Replies Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @furom
        last edited by

        @furom guess its time I update all my stuff as well - create like certname that matches my iphone13.. And get my wifes new phone and new ipad - and my cheap android tablet all using eap-tls.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        F 1 Reply Last reply Reply Quote 1
        • F
          furom @johnpoz
          last edited by

          @johnpoz Got stuck on some extraction password for the p12 cert, but found an old post from you (2017) where you said to add a password wi openssl, so will try that now...
          link text

          Also got a firmware update for the well over 10 yr old tablet... I will verify with the vendor before applying that at least... Seems more than unlikely they should update so many years after eol... lol

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @furom
            last edited by

            @furom ok... I created a new CA for my freerad server cert.. So using new ECDSA for both CA and Cert... Created new user cert from for my phone off new CA.. And all connected without any issues.

            Since iphone will not install a new profile without a password.. And something to do with iphone and openssl version 3 I think I had to add the -legacy flag in my command to create the .p12 to load on my phone

            openssl pkcs12 -legacy -export -certfile NewFreeRad-CA.crt -in JohnsIphone.crt -inkey JohnsIphone.key -out johnsiphone.p12
            

            So I download the new CA cert, and my new user cert and key... Joined them up into a p12 with password "test" and imported just fine into my iphone.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            F 1 Reply Last reply Reply Quote 1
            • F
              furom @johnpoz
              last edited by

              @johnpoz said in freeRadius / Unifi AP / EAP-TTLS ?:

              @furom ok... I created a new CA for my freerad server cert.. So using new ECDSA for both CA and Cert... Created new user cert from for my phone off new CA.. And all connected without any issues.

              Since iphone will not install a new profile without a password.. And something to do with iphone and openssl version 3 I think I had to add the -legacy flag in my command to create the .p12 to load on my phone

              openssl pkcs12 -legacy -export -certfile NewFreeRad-CA.crt -in JohnsIphone.crt -inkey JohnsIphone.key -out johnsiphone.p12
              

              So I download the new CA cert, and my new user cert and key... Joined them up into a p12 with password "test" and imported just fine into my iphone.

              Nice, I am about to test, but unfortunately did the RSA, so will redo if working, but at least things are lighting up a bit! Thanks for all your patience! 👍

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @furom
                last edited by

                @furom also - keep in mind unlike browsers there isn't any issue with making this stuff good for long time. I set 10 years on my CA and certs ;)

                Got my ssid changed to something a bit better than eaptest, and phone connecting to it without any problems. Now just to create certs and my other trusted devices...

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                F 1 Reply Last reply Reply Quote 1
                • F
                  furom @johnpoz
                  last edited by

                  @johnpoz said in freeRadius / Unifi AP / EAP-TTLS ?:

                  @furom also - keep in mind unlike browsers there isn't any issue with making this stuff good for long time. I set 10 years on my CA and certs ;)

                  Got my ssid changed to something a bit better than eaptest, and phone connecting to it without any problems. Now just to create certs and my other trusted devices...

                  So true. But something very strange just happened... Network just died and my client were offline. Unifi server died too.. So had to restart and got some weird websocket error, then Unifi didn't load, showed 404 for a while, but then came too... :/ Seems to work now, but don't like when it just locks up for no apparent reason...

                  F 1 Reply Last reply Reply Quote 0
                  • F
                    furom @furom
                    last edited by

                    @furom Weird. Shouldn't I get a password prompt too? I installed CA and the tablet cert I made... says password may be wrong so still something funny here... But at least it responds, so there is hope :)

                    johnpozJ 1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator @furom
                      last edited by

                      @furom said in freeRadius / Unifi AP / EAP-TTLS ?:

                      Shouldn't I get a password prompt too?

                      For why? But yeah you can add that if you want.. I think its completely pointless in such an auth setup... Your sending a cert signed by your own CA.. And this cert is only installed on your trusted devices.. Why would you want to have to put in a password as well?

                      How would anyone get these certs? How would they create their own cert that also matches up with a freerad user you created..

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                      F 1 Reply Last reply Reply Quote 1
                      • F
                        furom @johnpoz
                        last edited by

                        @johnpoz said in freeRadius / Unifi AP / EAP-TTLS ?:

                        @furom said in freeRadius / Unifi AP / EAP-TTLS ?:

                        Shouldn't I get a password prompt too?

                        For why? But yeah you can add that if you want.. I think its completely pointless in such an auth setup... Your sending a cert signed by your own CA.. And this cert is only installed on your trusted devices.. Why would you want to have to put in a password as well?

                        How would anyone get these certs? How would they create their own cert that also matches up with a freerad user you created..

                        I don't want it surely, but as it says "Password may be incorrect"...? I'm googling this not, or trying... Found out my nice ISP just revoked my old IP and gave me a new one... Strange...

                        johnpozJ 1 Reply Last reply Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator @furom
                          last edited by

                          @furom where is it saying that - and what are you putting the certs on exactly.. I do have a android tablet, just haven't gotten around to connecting it to this eap-tls network yet..

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                          F 1 Reply Last reply Reply Quote 0
                          • F
                            furom @johnpoz
                            last edited by

                            @johnpoz said in freeRadius / Unifi AP / EAP-TTLS ?:

                            @furom where is it saying that - and what are you putting the certs on exactly.. I do have a android tablet, just haven't gotten around to connecting it to this eap-tls network yet..

                            Correct, it is an old Android tablet running 7.1.1
                            I am using the "Install certificates" in "Advanced WLAN" menu. I then see them fine when connecting, or hm, trying

                            F 1 Reply Last reply Reply Quote 0
                            • F
                              furom @furom
                              last edited by

                              @furom Found the issue. I made a mistake when creating the cert... So will redo it with ed25519 and hope it will go just a little better :)

                              johnpozJ 1 Reply Last reply Reply Quote 0
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator @furom
                                last edited by

                                @furom my android which is a lenovo P11 plus running Android 12 is bitching about connecting. It forces uses of a domain, I didn't setup a domain for these certs.. Guess going to have to redo for the android... maybe I will play with this this weekend.. But I only ever use this tablet for watching movies on the train to and from work.. So not going to put in much effort getting it to use eap-tls ;) I normally just connect it to my guest wifi anyway.

                                An intelligent man is sometimes forced to be drunk to spend time with his fools
                                If you get confused: Listen to the Music Play
                                Please don't Chat/PM me for help, unless mod related
                                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                F 1 Reply Last reply Reply Quote 1
                                • F
                                  furom @johnpoz
                                  last edited by

                                  @johnpoz said in freeRadius / Unifi AP / EAP-TTLS ?:

                                  @furom my android which is a lenovo P11 plus running Android 12 is bitching about connecting. It forces uses of a domain, I didn't setup a domain for these certs.. Guess going to have to redo for the android... maybe I will play with this this weekend.. But I only ever use this tablet for watching movies on the train to and from work.. So not going to put in much effort getting it to use eap-tls ;) I normally just connect it to my guest wifi anyway.

                                  Got it. I read somewhere that for Android 11/12 you also need the chain/intermediate cert now. I'm far from havit that issue, perhaps I should upgrade, but my use-case is probably worse than yours...which sounded reasonable :) I'll take a break as well. If I do get it to work I'll post what I did. I found the radius.log in /var/log/ useful, it spits out some info at least

                                  johnpozJ 1 Reply Last reply Reply Quote 0
                                  • johnpozJ
                                    johnpoz LAYER 8 Global Moderator @furom
                                    last edited by johnpoz

                                    @furom do you have an iphone or ipad to test with.. Those work without any issue.. Also seems you can export the .p12 right from the cert manager - if using 23.01, or 23.05, not sure about CE versions. You can pick the encryption used, seems ios 16.5 will take the low setting, not the high or legacy setting.

                                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                                    If you get confused: Listen to the Music Play
                                    Please don't Chat/PM me for help, unless mod related
                                    SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                    F 1 Reply Last reply Reply Quote 1
                                    • F
                                      furom @johnpoz
                                      last edited by furom

                                      @johnpoz said in freeRadius / Unifi AP / EAP-TTLS ?:

                                      @furom do you have an iphone or ipad to test with.. Those work without any issue.. Also seems you can export the .p12 right from the cert manager - if using 23.05, not sure about CE versions. You can pick the encryption used, seems ios 16.5 will take the low setting, not the high or legacy setting.

                                      Unfortunately I only have this tablet... But I do export .p12, bit get no option to set anything on it.. Right now battling "ERROR: (29) eap_tls: ERROR: (TLS) Alert read:fatal:certificate unknown", not sure why I get that, but will keep trying. I set CN to my username, and Altenative to FQDN, but guess that made it barf... Will try to read more what it expect

                                      F 1 Reply Last reply Reply Quote 0
                                      • F
                                        furom @furom
                                        last edited by

                                        @furom Ugh. I have to take a break for tonight... When I do what I find most logical, and selects the CA, it hides the user cert, so something is seriously not right. Will have another go tomorrow - it will work, it has before... :) Till then, have a good one!

                                        johnpozJ 1 Reply Last reply Reply Quote 0
                                        • johnpozJ
                                          johnpoz LAYER 8 Global Moderator @furom
                                          last edited by johnpoz

                                          @furom well got mine connected finally.. stupid case sensitive.. I setup a new cert for it using tablet.home.arpa, and had Tablet.home.arpa vs tablet.home.arpa

                                          Now that everything exactly machines my tablet is connected..

                                          Just use the cert manager to export the p12 using the high setting..

                                          May 19 14:06:56 	radiusd 	84994 	(15) Login OK: [tablet.home.arpa/<via Auth-Type = eap>] (from client uap-pro port 0 cli 9A-48-F6-57-CE-BB) 192.168.2.2 Auth-Type: eap 
                                          

                                          connected.png

                                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                                          If you get confused: Listen to the Music Play
                                          Please don't Chat/PM me for help, unless mod related
                                          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                          F 1 Reply Last reply Reply Quote 1
                                          • F
                                            furom @johnpoz
                                            last edited by furom

                                            @johnpoz Nice job! I'm still not that lucky. I set bothe CN and Alt Name to FQDN, then export;fabbdfd0-8e51-469a-afac-f0eb3cbeb6ad-image.png
                                            But for unknown reason my stupid tablet wants a password I don't know when installing the cert... I thought that was what I was setting in "Export Password", but isn't accepted. New try... Glad you succeeded after all the hassle!
                                            Will try adding one with openssl this time

                                            johnpozJ 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.