Create an invisible digital signature on a PDF file using Python CLI script.
Supports KIR SZAFIR Qualified Signature. Should work with any PKCS#11 card with up to few minor modifications.
Note about Windows: You need to install Build Tools for Visual Studio, which may be obtained from the Download Visual Studio Tools page -> Tools for Visual Studio -> Build Tools for Visual Studio 2022 -> Download
- Clone the repository.
- Create an virtualenv and install the requirements from the
requirements.txt. - Copy
config.dist.pytoconfig.pyand set the PKCS#11 library path correctly. - (Only required to verify documents) Copy
trust_roots.dist.pemtotrust_roots.pemand add the necessary qualified roots if needed.
Run: python3 signcli.py <input_file>
This should produce a signature that is accepted by the 3rd party qualified signature validation software.
Run: python3 validatecli.py <input_file>
Note that this validation script would barely validate any documents that were not signed using this tool.