Can the Network-Manager use certificates stored on smartcards (e.g. YubiKey) for wired 802.1X authentication?

Posted by this-is-robin@reddit | linuxadmin | View on Reddit | 5 comments

So I am implementing 802.1X authentication (EAP-TLS) for the wired connection on my Ubuntu 24.04 laptop. If I just store the client certificate + private key in form of a .p12 file and select it when configuring the 802.1X setting via the graphical Network Manager, everything works without a problem.
But to make things more secure, I want to store the .p12 file on a YubiKey. So far, importing that file onto the YubiKey is no problem. But how do I tell the Network-Manager to look for the client certificate + private key on the YubiKey? I have edited the connection using nmcli and for the fields 802-1x.client-cert and 802-1x.private-key I am using the URL value of the certificate provided by the p11tool --list-all-certs command. Is that correct?
Or is it simply not possible to use smartcards for 802.1X authentication?