Managed .NET wrapper for unmanaged PKCS#11 libraries

Quick facts

Pkcs11Interop is managed library that:


PKCS#11 is cryptography standard originally published by RSA Laboratories that defines ANSI C API to access smart cards and other types of cryptographic hardware. Standard is currently being maintained and developed by the OASIS PKCS 11 Technical Committee.

Pkcs11Interop is managed library written in C# that brings full power of PKCS#11 API to the .NET environment. It uses System.Runtime.InteropServices to define platform invoke methods for accessing unmanaged PKCS#11 API and specifies how data is marshaled between managed and unmanaged memory. More detailed information about library architecture can be found in Pkcs11Interop API documentation.

Supported hardware

Pkcs11Interop has been confirmed to be working with the following devices:


Pkcs11Interop API is fully documented with inline XML documentation that can be displayed by your IDE while you develop your application. Detailed Pkcs11Interop API documentation is also available online.

Code samples

Pkcs11Interop source code contains NUnit tests covering all methods of PKCS#11 API. Tests are well documented and they also serve as official code samples.


Current stable version of Pkcs11Interop is 2.0.2:

Archives with source code are signed with GnuPG key of Jaroslav Imrich.
Assemblies in NuGet package are signed with code-signing certificate of Jaroslav Imrich.


Pkcs11Interop uses dual-licensing model:


Pkcs11Interop is supported via following channels:

Related projects

There are following official extensions and related projects available:


Pkcs11Interop has been written by Jaroslav Imrich.
Commercial license and support are provided by Slovakia (EU) based company JWC s.r.o.