SimpleSign.Signers.Pkcs11 0.11.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SimpleSign.Signers.Pkcs11 --version 0.11.0
                    
NuGet\Install-Package SimpleSign.Signers.Pkcs11 -Version 0.11.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SimpleSign.Signers.Pkcs11" Version="0.11.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleSign.Signers.Pkcs11" Version="0.11.0" />
                    
Directory.Packages.props
<PackageReference Include="SimpleSign.Signers.Pkcs11" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SimpleSign.Signers.Pkcs11 --version 0.11.0
                    
#r "nuget: SimpleSign.Signers.Pkcs11, 0.11.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SimpleSign.Signers.Pkcs11@0.11.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SimpleSign.Signers.Pkcs11&version=0.11.0
                    
Install as a Cake Addin
#tool nuget:?package=SimpleSign.Signers.Pkcs11&version=0.11.0
                    
Install as a Cake Tool

SimpleSign.Signers.Pkcs11

Sign PAdES, CAdES and XAdES documents with a private key that stays on an A3 token, smartcard or HSM, through the device's PKCS#11 driver — on Windows, Linux and macOS. Own minimal interop: no third-party dependencies, no unsafe code. Native AOT compatible.

Quickstart

using SimpleSign.PAdES;
using SimpleSign.Signers.Pkcs11;

using var token = Pkcs11Signer.Open(new Pkcs11SignerOptions
{
    LibraryPath = "/usr/lib/libeToken.so",   // the token vendor's PKCS#11 driver
    KeyLabel = "My signing key",             // optional when the token has one key
    Pin = pin,                               // null for readers with a PIN pad
});

byte[] signed = await PadesSigner.Document(pdfBytes)
    .WithExternalSigner(token.Certificate, token, token.Chain)
    .SignAsync();

Pkcs11Signer.ListTokens(libraryPath) lists the connected tokens and their certificates without a PIN. Pkcs11Drivers.FindLibraryAsync() finds the driver of the connected token among the middlewares used in Brazil (SafeNet, SafeSign, Watchdata, Gemalto, Oberthur, OpenSC…), so the path is optional.

More at github.com/eupassarin/SimpleSign and the PKCS#11 guide. MIT licensed.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SimpleSign.Signers.Pkcs11:

Package Downloads
SimpleSign.Peru.Iofe.Accredited

The configuration of SimpleSign that INDECOPI's accreditation guide for signature software (v4.0, sections 4.2 to 4.4) asks for, with nothing to relax: signing by an automated agent with the key in a PKCS#11 module or a declared remote signing service, verification by an automated agent with a notice to the sender, the checks of each time-stamp, the viewer and the audit trails.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.15.0 182 11/19/2026
0.14.0 80 11/19/2026
0.13.0 49 11/18/2026
0.12.0 91 11/16/2026
0.11.1 114 11/16/2026
0.11.0 86 11/16/2026