cat-users AT lists.geant.org
Subject: The mailing list for users of the eduroam Configuration Assistant Tool (CAT)
List archive
- From: Stefan Winter <stefan.winter AT restena.lu>
- To: Per Mejdal Rasmussen <pmr AT its.aau.dk>, cat-users AT lists.geant.org
- Subject: Re: [[cat-users]] Ubuntu Linux fails to verify server certificate
- Date: Mon, 2 Sep 2019 09:45:16 +0200
- Autocrypt: addr=stefan.winter AT restena.lu; prefer-encrypt=mutual; keydata= mQINBFIplEwBEADTSz+DS8nio+RSvfSLLfaOnCGi1nqpn8Pb1laVUyEvnAAzZ5jemiS88Gxf iDH6hUGlWzcaW0hCfUHGiohr485adbjxRksPngWgAt/1bRxpifsW3zObFjgog01WWQV5Sihl wc4zr8zvYbFA5BJZ6YdkR9C5J015riv5OS30WTjA65SSXgYrb7zJWPwmegTFwE093uBFvC39 waz3xYpVu5j87nO6w2MVQt/8sY2/2BFPEq+xfOajl18UEwc7w8SCgnZdlVNcmEK4UBvJuwS/ 1lsR2JeQa8Gu1EDxC7PRgMgNXsDSWnnBe9aVmfG54+6ILe1QH2dwk9sPBQT5w2+vjijrb3Dv 9ur+1kN+TNU2XE436jVpnnY/3OsLdix30STQn4Q/XOm7YoVMeDwwviefilRxzK0dXA+wKj92 T68Od82CFxuZqPAgBCVmWfQM91iK9piqFK+QP+R3vF6+NGDBdwbe68iVKs0v5L8XmbxBQndj pmo+lo2asmBR2TAIfZHaKdgtBw13u3GPVVKlg/Mpko8ki9JOSem2aFyi3kQEVKptWgXT3POl 97DWJzsR5VyKz6GOx9kJAEISRyLZwm0wqh8+9LCza5oeIKW381lzq1b9x30vOh8CBSQQJ+cG 9ko0yPHAj7Suw2TmPXx1qMctmE6Ahq82ZW30SljdZby8WQuR2wARAQABtDxTdGVmYW4gV2lu dGVyIChSRVNURU5BIGtleSAyMDEzKykgPHN0ZWZhbi53aW50ZXJAcmVzdGVuYS5sdT6JAjkE EwECACMFAlIplEwCGwMHCwkIBwMCAQYVCAIJCgsEFgIDAQIeAQIXgAAKCRD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id=AD3091F3AB24E05F4F722C03C0DE6A358A39DC66; url=http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC0DE6A358A39DC66
Hello,
> I would like to report a problem with the installer for Ubuntu.
>
> Ubuntu Linux fails to verify the authentication server's certificate.
> Because it is altsubject, not CN that is validated.
Yes, it validates the subjectAltName:DNS, not the CN. That is intentional.
> This not only an issue if the certificate does not have altsubject.
You meant to write "This *is* only an issue ..."?
That would be true.
> The problem is that when /etc/NetworkManager/system-connections/eduroam
> is generated this line is added:
>
> altsubject-matches=DNS:wifi.aau.dk;
>
> It should have been:
>
> domain_match=wifi.aau.dk
>
> However the version of wpa_supplicant that comes with Ubuntu does not
> support that, and will ignore the line.
Well if your Linux distribution does not support that parameter, then it
is actually good that our installers don't try to set it, right?
You may want to file a bug report to Ubuntu to include a new version of
wpa_supplicant this new parameter recognised (at least
wpa_supplicant-2.8 supports it). You would also need to lobby
NetworkManager folks to create a new API method for it. The most recent
version supports domain-suffix-match but not domain-match
(https://developer.gnome.org/NetworkManager/stable/settings-802-1x.html)
[alternatively, one could settle for using domain-suffix-match]
Only when that supporting lower-layer infrastructure is available, our
installers can make use of that.
There is a reason why eduroam has a page with EAP server certificate
recommendations. They state that for maxmimum compatibility,
certificates should have CN and at least one sAN:DNS and that the value
in CN should also also be one of those sAN:DNS values.
We don't recommend this only for Linux reasons. The EAP method
specifications are not at all clear which field has precedence over
which other, and which need to be present. So the safest thing to do is
to make sure that the correct string is present in both variants.
Don't get me wrong: I do see that domain_match is superior to
altsubject_match because it provides a fallback. And both of these two
are superior to the subject_match we were forced to use years ago when
nothing else was available.
But we can't move on to this newest and more compatible way of
configuring unless all the distributions we care about actually ship
with code supporting it.
And until then I'm afraid the solution is to have a certificate with a
CN=subjectAltName.DNS .
Greetings,
Stefan Winter
> You can see below why I came to this conclusion:
>
>
> Ubuntu 19.04
> ------------
> When I fist run the installation I get this error in my FreeRadius log:
>
> Login incorrect (eap_peap: TLS Alert read:fatal:internal error)
>
> It then works if I in Ubuntu go to "Wi-Fi > Visible networks > eduroam",
> change nothing, and click apply.
>
> After further investigation I found that 4 lines get removed from
> /etc/NetworkManager/system-connections/eduroam.nmconnection when I click
> apply.
>
> The line that caused the problem was altsubject-matches=DNS:wifi.aau.dk;
>
> The CN of the radius server certificate is wifi.aau.dk. Both iOS, MacOS
> and Windows performs this check without problems.
>
>
> Ubuntu 18.04
> ------------
> Radius log is slightly different:
>
> Login incorrect (eap_peap: TLS Alert read:fatal:certificate unknown)
>
> Context of syslog
> TLS: altSubjectName match 'DNS:wifi.aau.dk' not found
> wlp2s0: CTRL-EVENT-EAP-TLS-CERT-ERROR reason=6 depth=0
> subject='/C=DK/ST=Denmark/O=Aalborg Universitet/OU=IT
> Services/CN=wifi.aau.dk' err='AltSubject mismatch'
>
--
Stefan WINTER
Ingenieur de Recherche
Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et
de la Recherche
2, avenue de l'Université
L-4365 Esch-sur-Alzette
Tel: +352 424409 1
Fax: +352 422473
PGP key updated to 4096 Bit RSA - I will encrypt all mails if the
recipient's key is known to me
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC0DE6A358A39DC66
Attachment:
0xC0DE6A358A39DC66.asc
Description: application/pgp-keys
Attachment:
signature.asc
Description: OpenPGP digital signature
- Re: [[cat-users]] Ubuntu Linux fails to verify server certificate, Stefan Winter, 09/02/2019
Archive powered by MHonArc 2.6.19.