PKCS#11 support in NetworkManager

Hello! I use openSUSE Slowroll and need to setup OpenVPN connection in NetworkManager with certificates on my token. I can establish connection by cli with following command: “sudo openvpn connection.ovpn”, when connection.ovpn contain

pkcs11-providers /usr/lib64/librtpkcs11ecp.so
pkcs11-id ‘Aktiv\x20Co\x2E/Rutoken\xxxxxxxxxxxxxxxxxxxxxxxxxxxxx’

In my corporate notebook with Ubuntu 22.04 I can connect by NetworkManager, it have “Certificates (TLS), PKCS#11” authentication type for openVPN in nm-conection-editor:


But I can’t find this option in OpenSUSE…

May be I need to install any extra packages?

What NetworkManager GUI frontend are you using?

NetworkManager-connection-editor-1.36.0-4.1.x86_64

I tried nm-connection-editor on Ubuntu 24.04 and it does not offer PKCS#11 for OpenVPN. Maybe you can find out what enables it on your Ubuntu installation.

I do not even see the string “providers” (or “PKCS#11”) in the NetworkManager-openvpn sources. You say it is corporate image - maybe your company is using custom build?

Looking around, there are several open PR for PKCS#11 support. It does look like you are using a customized package with additional patches.

Yes it is. I will contact tech support. Thank you!