Hey all,
Native RadSec in RouterOS has a gap that blocks it w/ most real RadSec providers, so posting here in case others hit the same wall.
/radius only takes an IP address for the server, and w/ protocol=radsec RouterOS checks the server certificate against that IP. Most RadSec servers have certificates that list DNS names only, no IPs, which is normal for public certs. So the TLS handshake fails w/ "ssl: name verification failed".
My use case: I run Passpoint carrier offload for Helium on a hAP be lite. Helium's RadSec server is radius-bf.wifi.hellohelium.com and its cert only lists DNS names, so native RadSec can't connect. Helium's network has over 50K devices serving over 1.5M people phone connectivity every day (https://world.helium.com/en/network), and right now every MikroTik AP on it needs a separate box running radsecproxy as a relay. The AP sends plain RADIUS to the relay over the LAN and the relay does RadSec w/ a proper hostname check. It works, but it's one more box at every site.
RFC 6614 (section 2.3) has the client check the server cert against the configured server name, and dynamic discovery (RFC 7585, used by eduroam and OpenRoaming) finds servers through DNS. Hostnames are how RadSec is meant to work. Other vendors let you set the expected name (Cisco IOS XE has tls match-server-identity, Juniper has tls-peer-name).
What would fix it:
- Allow a hostname as the RadSec server address, resolved via DNS
- Or a separate setting for the expected server name, used for the cert check and SNI
Others have hit this too: Radsec issues after 7.15 upgrade and Problem with Radius Radsec with SNI
I've filed this w/ support as well. If you run native RadSec against eduroam, OpenRoaming or another Passpoint provider and hit the same thing, please reply here so MikroTik sees it's not a one off.
RouterOS already does this elsewhere. The OVPN and SSTP clients take a hostname in connect-to (the 7.26 reference lists it as address flags=D46v, vs flags=46v for /radius address), check the server cert's CN or SAN against it, and the SSTP client can send SNI (add-sni, since 7.15). The RADIUS client just needs the same.