Mersel.DssSigner
0.1.0
See the version list below for details.
dotnet add package Mersel.DssSigner --version 0.1.0
NuGet\Install-Package Mersel.DssSigner -Version 0.1.0
<PackageReference Include="Mersel.DssSigner" Version="0.1.0" />
<PackageVersion Include="Mersel.DssSigner" Version="0.1.0" />
<PackageReference Include="Mersel.DssSigner" />
paket add Mersel.DssSigner --version 0.1.0
#r "nuget: Mersel.DssSigner, 0.1.0"
#:package Mersel.DssSigner@0.1.0
#addin nuget:?package=Mersel.DssSigner&version=0.1.0
#tool nuget:?package=Mersel.DssSigner&version=0.1.0
Mersel.DssSigner
EU DSS tabanlı XAdES ve WS-Security imzalama servislerini C#'tan native API olarak kullanmanı sağlar. Köprü olarak IKVM kullanılır — ek bir JRE kurulumu gerekmez.
USB token / akıllı kart / HSM kullanımı için ek olarak Mersel.DssSigner.Pkcs11 paketini ekle.
Hedef Çerçeveler
- .NET Framework 4.8 (
net48) - .NET 8 (
net8.0)
Hızlı kullanım
using Mersel.DssSigner;
byte[] xml = File.ReadAllBytes("invoice.xml");
// Kendi imzaıcın (HSM, uzak servis, vs.)
public sealed class MyHsmSigner : IExternalSigner
{
public byte[] Sign(byte[] dataToSign, string signatureAlgorithm) => /* ... */;
}
SignResult result = XadesSigner.Sign(
xml,
signingCertificate,
certificateChain,
SignXadesOptions.UblInvoice(),
new MyHsmSigner());
File.WriteAllBytes("signed.xml", result.SignedDocument);
WS-Security için WsSecuritySigner.Sign(...) aynı pattern.
Mimari
Private key Java tarafına hiç geçmez — caller bir IExternalSigner callback sağlar. Java sadece XAdES/WS-Security yapısını kurar, ham byte'ları imza için caller'a verir, dönen imzayı belgeye yerleştirir.
Dokümantasyon
Detaylı kullanım, USB token örnekleri ve mimari için: https://github.com/burak-attila/emincancorejar
| 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. |
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Mersel.DssSigner:
| Package | Downloads |
|---|---|
|
Mersel.DssSigner.Pkcs11
Mersel.DssSigner için USB token / akıllı kart / HSM desteği. Pkcs11Interop tabanlı; Akis, AKiA, SafeSign gibi yaygın Türkiye tokenlarıyla uyumlu. |
GitHub repositories
This package is not used by any popular GitHub repositories.
İlk sürüm. XAdES (UBL/HrXml/EArsiv/EBilet) + WS-Security (SOAP 1.1/1.2). External signer pattern (USB token/HSM) ile birlikte.