intoolswetrust / jsignpdf

PDF signing software written in Java. It supports visible signatures, timestamping, certificate verification and many other cool features
https://intoolswetrust.github.io/jsignpdf/
Other
310 stars 120 forks source link

List certificates #108

Closed krefects closed 2 years ago

krefects commented 2 years ago

How can I list certificate names and keys via command. example:

java -jar ./Jsigner/JSignPdf.jar -kst WINDOWS-MY -list-keys

krefects commented 2 years ago

Another question is how to use a specific key.

example: java -jar ./Jsigner/JSignPdf.jar ./arquivo.pdf -kst WINDOWS-MY -ka ELTON OLIVEIRA 09028327

krefects commented 2 years ago

Solved. For certificate listing: java -jar ./Jsigner/JSignPdf.jar -kst WINDOWS-MY --list-keys

To sign with a specific key:

(The key name must be in quotes)

java -jar ./Jsigner/JSignPdf.jar ./archive.pdf -kst WINDOWS-MY -ka "KeyName"'