How to select the correct Token using PKCS11 Interface?

When using opensc-pkcs11.dll from OpenSC, how can I select the NitroKey by Label?
I have two of them connected to my computer. The P11 Library (C#) I am using expects the path to the opensc-pkcs11.dll and the label name of the token as a parameter.
But passing the label name as string doesn’t seem to have any effect. It always selects the Token in the first slot.
Anyone else ever had this problem?


Hey @mzamponi

please check these docs: PKCS#11 URL Generation — Nitrokey Documentation
and for an example (using slot-id) these: TLS Setup with Apache2 — Nitrokey Documentation