SimpleSign.Signers.Pkcs11
0.15.0
dotnet add package SimpleSign.Signers.Pkcs11 --version 0.15.0
NuGet\Install-Package SimpleSign.Signers.Pkcs11 -Version 0.15.0
<PackageReference Include="SimpleSign.Signers.Pkcs11" Version="0.15.0" />
<PackageVersion Include="SimpleSign.Signers.Pkcs11" Version="0.15.0" />
<PackageReference Include="SimpleSign.Signers.Pkcs11" />
paket add SimpleSign.Signers.Pkcs11 --version 0.15.0
#r "nuget: SimpleSign.Signers.Pkcs11, 0.15.0"
#:package SimpleSign.Signers.Pkcs11@0.15.0
#addin nuget:?package=SimpleSign.Signers.Pkcs11&version=0.15.0
#tool nuget:?package=SimpleSign.Signers.Pkcs11&version=0.15.0
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 | Versions 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. |
-
net10.0
- SimpleSign.Core (>= 0.15.0)
-
net8.0
- SimpleSign.Core (>= 0.15.0)
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.