Slovak eID Sign Tool is tool for listing certificates from Slovak eID card, signing PDF documents with PAdES signature or signing file (.txt, .pdf, .png,...) to eIDAS CAdES-BASELINE-B ASiC-E container (.asice file).
This project aim to education PKCS#11 standard and document signing using Slovak eID.
SlovakEidSignTool is example project for signing documents using Slovak eID (eID with EP / KEP), designed for education.
Used:
dotnet SlovakEidSignTool.dll list
.dotnet SlovakEidSignTool.dll list --listEp
.dotnet SlovakEidSignTool.dll signPDF Example.pdf -o SignedPdf.pdf
.Type KEP PIN.
dotnet SlovakEidSignTool.dll signCades example.txt -o SignedExample.asice
(signing file, output signature file).Type KEP PIN.
dotnet SlovakEidSignTool.dll addSignCades SignedExample.asice -o SignedExample_2s.asice
Type KEP PIN.
dotnet SlovakEidSignTool.dll addSignCades SignedExample.asice additional.txt -o SignedExample_2s.asice
Example on Windows 10 x64 with self-contained build:
Example on Windows 10 x64 with self-contained build and application PINs:
Validation result in zep.disig.sk of CAdES signature:
cd src/SlovakEidSignTool
dotnet publish -c Release
Or self-contained for Windows 7 (8,10..):
cd src/SlovakEidSignTool
dotnet publish -c Release -r win7-x86
Or self-contained for Ubuntu:
cd src/SlovakEidSignTool
dotnet publish -c Release -r ubuntu.16.10-x64
For more see .NET Core RID Catalog.