This process uses jsignpdf.
Download Java JRE or JDK (Java 8 or newer)
https://www.oracle.com/java/technologies/downloads/
Install using defaults. Log out and log back in to Windows (or restart).
Open Command Prompt (press Win+R, type cmd.exe and press Enter).
Type this command to test thata Java was installed correctly:
java -version
Go to:
Go to https://sourceforge.net/projects/jsignpdf/ and download the latest jSignPdf-x.y.z.jar.
Save it to someplace convenient, e.g. C:\jsignpdf\.
Test it by running it in the command prompt:
java -jar C:\jsignpdf\jSignPdf-2.2.1.jar
Note: file will be replaced
- replace
C:\jsignpdf\jSignPdf-2.2.1.jarwith the path to jSignPdf - replace
C:\certpath\certn.p12with path to your certificate - replace
YourCertPasswordwith your certificate password - replace
C:\pdfs\file.pdfwith the path to the file to sign
Run the following in Command Prompt, with values replaced
java -jar C:\jsignpdf\jSignPdf-2.2.1.jar ^
-kst PKCS12 ^
-ksf C:\certpath\cert.p12 ^
-ksp YourCertPassword ^
-i C:\pdfs\file.pdf ^
-o C:\pdfs\file.pdf
Run the following, with replacements as above:
for %f in ("C:\pdfs\*.pdf") do (
java -jar C:\jsignpdf\jSignPdf-2.2.1.jar ^
-kst PKCS12 ^
-ksf C:\certpath\cert.p12 ^
-ksp YourCertPassword ^
-i "%f" ^
-o "%f"
)