Mersel.DssSigner.Pkcs11 0.5.10

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" />
                    
Directory.Packages.props
<PackageReference Include="Mersel.DssSigner.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 Mersel.DssSigner.Pkcs11 --version 0.5.10
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Mersel.DssSigner.Pkcs11&version=0.5.10
                    
Install as a Cake Tool

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_ECDSA mekanizması

Detaylar: https://github.com/burak-attila/emincancorejar

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 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.10 120 6/4/2026
0.5.9 116 6/3/2026
0.5.7 115 6/2/2026
0.5.5 110 6/2/2026
0.5.4 121 6/1/2026
0.5.2 111 5/22/2026
0.5.1 115 5/12/2026
0.5.0 109 5/12/2026
0.4.0 121 5/12/2026
0.3.0 123 5/12/2026
0.1.0 112 5/7/2026

İlk sürüm. Pkcs11TokenSigner — RSA/ECDSA, hash + DigestInfo wrap C# tarafında, universal token uyumu için CKM_RSA_PKCS.