Mersel.DssSigner.Pkcs11
0.5.10
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
dotnet add package Mersel.DssSigner.Pkcs11 --version 0.5.10
NuGet\Install-Package Mersel.DssSigner.Pkcs11 -Version 0.5.10
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="Mersel.DssSigner.Pkcs11" Version="0.5.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mersel.DssSigner.Pkcs11" Version="0.5.10" />
<PackageReference Include="Mersel.DssSigner.Pkcs11" />
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 Mersel.DssSigner.Pkcs11 --version 0.5.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Mersel.DssSigner.Pkcs11, 0.5.10"
#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 Mersel.DssSigner.Pkcs11@0.5.10
#: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=Mersel.DssSigner.Pkcs11&version=0.5.10
#tool nuget:?package=Mersel.DssSigner.Pkcs11&version=0.5.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Mersel.DssSigner.Pkcs11
Mersel.DssSigner için USB token / akıllı kart / HSM desteği. PKCS#11 wrapper olarak Pkcs11Interop kullanır. Akis, AKiA, SafeSign gibi yaygın Türkiye tokenlarıyla uyumlu.
Hedef çerçeveler: .NET Framework 4.8 (net48) + .NET 8 (net8.0).
Hızlı kullanım
using Mersel.DssSigner;
using Mersel.DssSigner.Pkcs11;
// Token'ı aç (PKCS#11 .dll, slot id, PIN)
using var token = new Pkcs11TokenSigner(
libraryPath: @"C:\Windows\System32\akisp11.dll",
slotId: 1,
pin: "123456");
// XAdES imzala
SignResult xades = XadesSigner.Sign(
File.ReadAllBytes("invoice.xml"),
token.Certificate,
token.Chain,
SignXadesOptions.UblInvoice(),
token);
// Veya WS-Security ile SOAP imzala
SignResult soap = WsSecuritySigner.Sign(
File.ReadAllBytes("request.xml"),
token.Certificate,
token.Chain,
SignWsSecurityOptions.Soap12(),
token);
Slot listeleme
foreach (var (id, label) in Pkcs11TokenSigner.ListSlots(@"C:\Windows\System32\akisp11.dll"))
Console.WriteLine($"slot {id}: {label}");
Türkiye yaygın PKCS#11 modülleri
| Token | DLL |
|---|---|
| Akis (TÜBİTAK) | akisp11.dll |
| AKiA (E-Tugra) | akia_pkcs11.dll |
| SafeSign | aetpkss1.dll |
| Gemalto / Thales | gclib.dll |
Notlar
- Default
AppType.SingleThreaded(Akis ve çoğu Türkiye tokenı OS_LOCKING_OK desteklemiyor) - Hash + PKCS#1 DigestInfo wrap C# tarafında yapılır, token'a
CKM_RSA_PKCS(raw RSA) gönderilir — universal token uyumu - ECDSA tokenları için
CKM_ECDSAmekanizması
| 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 was computed. 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. |
| .NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- Mersel.DssSigner (>= 0.5.10)
- Pkcs11Interop (>= 5.2.0)
-
net8.0
- Mersel.DssSigner (>= 0.5.10)
- Pkcs11Interop (>= 5.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
İlk sürüm. Pkcs11TokenSigner — RSA/ECDSA, hash + DigestInfo wrap C# tarafında, universal token uyumu için CKM_RSA_PKCS.