You are not logged in.

#1 2024-06-20 10:57:56

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,146

[SOLVED] iwd fails to load network file

Hi, iwd does not want to load this file. It used to work (before my disk was wiped), but I didn't backup the file.

The relevant line in the iwd output:

Jun 20 12:49:54 yoga iwd[550]: Error loading /var/lib/iwd//SCHULEN_KTZH.8021x

journal: http://0x0.st/XTvw.txt

/var/lib/iwd/SCHULEN_KTZH.8021x

[Security]
EAP-Method=TTLS
#EAP-Identity=open@identity.com
EAP-TTLS-CACert=embed:swisssign
EAP-TTLS-Phase2-Method=Tunneled-PAP
EAP-TTLS-Phase2-Identity=my-username-its-correct
EAP-TTLS-Phase2-Password=noneyabussiness
EAP-TTLS-ServerDomainMask=*.ktzh.ch

[@pem@swisssign]
-----BEGIN CERTIFICATE-----
MIIFujCCA6KgAwIBAgIJALtAHEP1Xk+wMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV
BAYTAkNIMRUwEwYDVQQKEwxTd2lzc1NpZ24gQUcxHzAdBgNVBAMTFlN3aXNzU2ln
biBHb2xkIENBIC0gRzIwHhcNMDYxMDI1MDgzMDM1WhcNMzYxMDI1MDgzMDM1WjBF
MQswCQYDVQQGEwJDSDEVMBMGA1UEChMMU3dpc3NTaWduIEFHMR8wHQYDVQQDExZT
d2lzc1NpZ24gR29sZCBDQSAtIEcyMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIIC
CgKCAgEAr+TufoskDhJuqVAtFkQ7kpJcyrhdhJJCEyq8ZVeCQD5XJM1QiyUqt2/8
76LQwB8CJEoTlo8jE+YoWACjR8cGp4QjK7u9lit/VcyLwVcfDmJlD909Vopz2q5+
bbqBHH5CjCA12UNNhPqE21Is8w4ndwtrvxEvcnifLtg+5hg3Wipy+dpikJKVyh+c
6bM8K8vzARO/Ws/BtQpgvd21mWRTuKCWs2/iJneRjOBiEAKfNA+k1ZIzUd6+jbqE
emA8atufK+ze3gE/bk3lUIbLtK/tREDFylqM2t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DyyJkvC24JdVUorgG6q2SpCSgwYa1ShNqR88uC1aVVMvOmttqtKay20EIhid3
92qgQmwLOM7XdVAyksLfKzAiSNDVQTglXaTpXZ/GlHXQRf0wl0OPkKsKx4ZzYEpp
Ld6leNcG2mqeSz53OiATIgHQv2ieY2BrNU0LbbqhPcCT4H8js1WtciVORvnSFu+w
ZMEBnunKoGqYDs/YYPIvSbjkQuE4NRb0yG5P94FW6LqjviOvrv1vA+ACOzB2+htt
Qc8Bsem4yWb02ybzOqR08kkkW8mw0FfB+j564ZfJ
-----END CERTIFICATE-----

For those of you who can read german, these are the setup instructions: https://www.kwi.ch/fileadmin/Content/03 … ndroid.pdf
here's the relevant part, translated:

EAP-Method: TTLS
Phase 2-authentication:PAP
Zertifikat: WLAN_SCHULEN_KTZH (certificate is here: https://help.mba.zh.ch/images/swisssign.cer)
Identity: first.last.school-name (that's correct)
Passwort: my password
Domain: ktzh.ch

Last edited by jl2 (2024-06-21 15:41:15)


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#2 2024-06-20 16:10:06

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,681

Re: [SOLVED] iwd fails to load network file

Why do you "sudo cat /var/lib/iwd/SCHULEN_KTZH.8021x"? Is it not world readable?
The iwd service has all sorts of Protect* restrictions…

Offline

#3 2024-06-21 09:54:32

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,146

Re: [SOLVED] iwd fails to load network file

Too bad that doesn't seem to be the case - the whole directory is root.

/var/lib/iwd has the permissions drwx------ and its contents/all other files network files are -rw------- and iwd can correctly read those.
all of them are owned by root.


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#4 2024-06-21 14:55:05

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,681

Re: [SOLVED] iwd fails to load network file

So format error?
Wild speclation:
- add a newline
- are there stray CRLF's in the file (or other non-printable characters)?
- bisect the file  - remove stuff (eg. commented line or the embedded pem) until iwd is happy loading it
- you username is plain ascii, not chäääseefoandüü?

Offline

#5 2024-06-21 15:37:08

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,146

Re: [SOLVED] iwd fails to load network file

SCHULEN_KTZH.8021x: ASCII text, with CRLF line terminators

neutral

That did the trick, it now loads. Can't test it quite yet, ain't at school for the weekend smile

chäääseefoandüü

of course!


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

Board footer

Powered by FluxBB