You are not logged in.

#1 2023-10-19 09:45:32

traceelement
Member
Registered: 2023-10-19
Posts: 7

[SOLVED] Iwd Failed to load ca.pem

Hi,

the eduroam certificate got updated recently and iwd shows me the message failed to laod ca.pem.

Original Message:

Failed to load "/var/lib/iwd/ca.pem"

Unfortunately I have overwritten the old certificate so I do not know how it looked like. But here is the current one:

-----BEGIN CERTIFICATE-----
MIIF3jCCA8agAwIBAgIQAf1tMPyjylGoG7xkDjUDLTANBgkqhkiG9w0BAQwFADCB
iDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0pl
cnNleSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNV
BAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTAw
MjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UEBhMCVVMxEzARBgNV
BAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU
aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2Vy
dGlmaWNhdGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK
AoICAQCAEmUXNg7D2wiz0KxXDXbtzSfTTK1Qg2HiqiBNCS1kCdzOiZ/MPans9s/B
3PHTsdZ7NygRK0faOca8Ohm0X6a9fZ2jY0K2dvKpOyuR+OJv0OwWIJAJPuLodMkY
tJHUYmTbf6MG8YgYapAiPLz+E/CHFHv25B+O1ORRxhFnRghRy4YUVD+8M/5+bJz/
Fp0YvVGONaanZshyZ9shZrHUm3gDwFA66Mzw3LyeTP6vBZY1H1dat//O+T23LLb2
VN3I5xI6Ta5MirdcmrS3ID3KfyI0rn47aGYBROcBTkZTmzNg95S+UzeQc0PzMsNT
79uq/nROacdrjGCT3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XnW0OMGuf1pGg+pRyrbxmRE1a6Vqe8YAsOf4vmSyrcjC8azjUeqkk+B5
yOGBQMkKW+ESPMFgKuOXwIlCypTPRpgSabuY0MLTDXJLR27lk8QyKGOHQ+SwMj4K
00u/I5sUKUErmgQfky3xxzlIPK1aEn8=
-----END CERTIFICATE-----

The file is at the specified location and if it is not there I get a different error message.

Maybe someone has some ideas.
Thanks in advance.

Last edited by traceelement (2023-11-03 15:18:58)

Offline

#2 2023-10-19 12:25:52

seth
Member
Registered: 2012-09-03
Posts: 52,226

Re: [SOLVED] Iwd Failed to load ca.pem

Please use [code][/code] tags, not "quote" tags. Edit your post in this regard.

Problem is possibly https://bbs.archlinux.org/viewtopic.php?id=286417 ?
Otherwise we'll need more context than an isolated error message.

Offline

#3 2023-10-19 12:47:13

-thc
Member
Registered: 2017-03-15
Posts: 516

Re: [SOLVED] Iwd Failed to load ca.pem

This is not a single CA certificate but a chain of two certificates:

The first one is a root CA certificate

Issuer: C = US, ST = New Jersey, L = Jersey City, O = The USERTRUST Network, CN = USERTrust RSA Certification Authority
[...]
Subject: C = US, ST = New Jersey, L = Jersey City, O = The USERTRUST Network, CN = USERTrust RSA Certification Authority

The second one is for an intermediate CA issued by the root CA from the first certificate:

Issuer: C = US, ST = New Jersey, L = Jersey City, O = The USERTRUST Network, CN = USERTrust RSA Certification Authority
[...]
Subject: C = GB, ST = Greater Manchester, L = Salford, O = Sectigo Limited, CN = Sectigo RSA Domain Validation Secure Server CA

Are you sure those are the right ones? I only found information about a recent eduroam certificate exchange (September 25th 2023) with the new certificate validated by "AAA":

Issuer: C = GB, ST = Greater Manchester, L = Salford, O = Comodo CA Limited, CN = AAA Certificate Services

Offline

#4 2023-10-20 12:13:38

traceelement
Member
Registered: 2023-10-19
Posts: 7

Re: [SOLVED] Iwd Failed to load ca.pem

This ca.pem is downloaded by the tool provided to install eduroam on linux.
Here is the tool: https://cat.eduroam.org/.

I had iwd configured and i worked in August. The last time I configured iwd was in 2021 so there could be a lot of reasons why it does not work anymore. But the error message shows that it could not read the ca.pem which i replaced with the one downloaded from the cat tool.

Does iwd expect a specific format?

Offline

#5 2023-10-20 12:30:03

seth
Member
Registered: 2012-09-03
Posts: 52,226

Re: [SOLVED] Iwd Failed to load ca.pem

Code tags…

PEM is defined in https://www.rfc-editor.org/rfc/rfc1422 - iwd cannot expect something different here.
It might struggle w/  the chain, but google doesn't find anybody complaining about that hmm

Is this a mere file permisison problem?

stat /var/lib/iwd/ca.pem

Offline

#6 2023-10-20 13:06:34

traceelement
Member
Registered: 2023-10-19
Posts: 7

Re: [SOLVED] Iwd Failed to load ca.pem

I tried with multiple different access settings with no luck.

File: /var/lib/iwd/ca.pem
  Size: 4262          Blocks: 16         IO Block: 4096   regular file
Device: 8,3    Inode: 60031018    Links: 1
Access: (0600/-rw-------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-10-19 11:19:15.393291197 +0200
Modify: 2023-10-20 14:09:47.313846161 +0200
Change: 2023-10-20 14:59:34.592671369 +0200
Birth: 2023-10-19 11:19:15.393291197 +0200

Offline

#7 2023-10-20 13:09:24

seth
Member
Registered: 2012-09-03
Posts: 52,226

Re: [SOLVED] Iwd Failed to load ca.pem

Incl. the number of the beast? (666)
Semi-related, did you get the previous pem from the same surce (https://cat.eduroam.org/) or eg. your campus IT?

Offline

#8 2023-10-20 15:17:47

traceelement
Member
Registered: 2023-10-19
Posts: 7

Re: [SOLVED] Iwd Failed to load ca.pem

With this you meant to set the access to 666? If so I tried and unfortunately it did not help.

Incl. the number of the beast? (666)

Yes I used the same tool but back then it was a different version but I remember also copying the certificate.

Offline

#9 2023-10-20 19:39:44

seth
Member
Registered: 2012-09-03
Posts: 52,226

Re: [SOLVED] Iwd Failed to load ca.pem

Maybe you should provide an entire log covering the attempt to to load the ca.pem and connect to eudroam:
For the curent boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#10 2023-10-26 11:06:14

traceelement
Member
Registered: 2023-10-19
Posts: 7

Re: [SOLVED] Iwd Failed to load ca.pem

Sorry for the late response. Here is the journal:
http://0x0.st/Hyo_.txt

Offline

#11 2023-10-26 14:40:35

seth
Member
Registered: 2012-09-03
Posts: 52,226

Offline

#12 2023-10-27 14:56:02

traceelement
Member
Registered: 2023-10-19
Posts: 7

Re: [SOLVED] Iwd Failed to load ca.pem

Okay thanks fixed it. It was a weird mix from having the iwd enabled + somehow i put the certificate in parenthesis and thus could not be loaded. So a working config for me is this:

[Security]
EAP-Method=PEAP
EAP-Identity=anonymous@uni-domain
EAP-PEAP-CACert=/var/lib/iwd/ca.pem
EAP-PEAP-ServerDomainMask=uni_radius
EAP-PEAP-Phase2-Method=MSCHAPV2
EAP-PEAP-Phase2-Identity=username@uni-auth-domain
EAP-PEAP-Phase2-Password=password

[Settings]
AutoConnect=true

Offline

#13 2023-10-27 15:05:43

seth
Member
Registered: 2012-09-03
Posts: 52,226

Re: [SOLVED] Iwd Failed to load ca.pem

(parenthesis) or "quotes"?
Did the config say

EAP-PEAP-CACert=(/var/lib/iwd/ca.pem)

??

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#14 2023-11-03 15:16:49

traceelement
Member
Registered: 2023-10-19
Posts: 7

Re: [SOLVED] Iwd Failed to load ca.pem

Yeah i meant quotes sorry.

Offline

Board footer

Powered by FluxBB