Sign multiple files with jsignpdf

1,848 views
Skip to first unread message

Erbert est

unread,
Feb 8, 2015, 6:05:15 PM2/8/15
to jsig...@googlegroups.com
How I can sign multiple files with the java command line, so do not ask me for a password each time I close the command?

>java -jar "C:\Program Files\JSignPdf\JSignPdf.jar" c:\factura.pdf , c:\factura1.pdf.......
>java -jar "C:\Program Files\JSignPdf\JSignPdf.jar" c:\factura.pdf   c:\factura1.pdf.......

I find the way...

Thanks


pendol...@hotmail.com

unread,
Feb 9, 2015, 1:59:04 PM2/9/15
to jsig...@googlegroups.com


On Sunday, February 8, 2015 at 8:05:15 PM UTC-3, Erbert est wrote:

  
My English is not good, have to sign five pdfs , 
so don't ask me password for each signature, with sentences java , how can I do?.

How I can sign multiple files with the java command line, so don't ask me for a password each time I close the command.

  Examples..

>java -jar "C:\Program Files\JSignPdf\JSignPdf.jar" c:\factura.pdf , c:\factura1.pdf.......
>java -jar "C:\Program Files\JSignPdf\JSignPdf.jar" c:\factura.pdf   c:\factura1.pdf.......

I don't find the way...

Thanks


Josef Cacek

unread,
Feb 9, 2015, 2:40:08 PM2/9/15
to JSignPdf forum
It may depend on keystore type, but for most of them should work following:

java -jar JSignPdf.jar -kst PKCS12 -ksf my_certificate.pfx -ksp
myPrivateKeystorePassword -d C:\output C:\Documents\*.pdf

Used options:
-kst keystore type
-ksf path to a keystore
-ksp password
-d output folder

The WINDOWS-MY keystore type probably doesn't support the keystore
password provided on command line - we know about issues when
WINDOWS-MY asks for PIN to a smartcard. It's not a JSignPdf issue, but
a java one (SunMSCAPI implementation).

-- jc
> --
> You received this message because you are subscribed to the Google Groups
> "JSignPdf" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jsignpdf+u...@googlegroups.com.
> To post to this group, send email to jsig...@googlegroups.com.
> Visit this group at http://groups.google.com/group/jsignpdf.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages