8000 GitHub - jmarxuach/BatchPDFSign at v.1.0.5.3
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CLI Command line tool to digital signature of PDF files with PKCS12 certificate. You can find the executable in the releases.

License

Notifications You must be signed in to change notification settings

jmarxuach/BatchPDFSign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BatchPDFSign

Maven Package Java CI with Maven

Command line tool for digital signature of PDF files, useful for example in Batch processes, from non Java programming languages like Php, Shell scripts, etc...

BatchPDFSign is a command line to sign PDF file with a PKCS12 certificate.

To use it you need:

  • a PKCS12 certificate. It should be a .pfx file.
  • a password for the .pfx
  • and a PDF file to sign.

self signed certificate creation

You can create your own self signed certificate with this following 4 commands in Ubuntu.

openssl genrsa -aes128 -out myself.key 2048
openssl req -new -days 365 -key myself.key -out myself.csr
openssl x509 -in myself.csr -out myself.crt -req -signkey myself.key -days 365
openssl pkcs12 -export -out myself.pfx -inkey myself.key -in myself.crt

Signing

Synopsis

required options: i, k, p
usage: BatchPDFSign
-i,--input input file path
-k,--key key file path
-o,--output output file
-p,--password keyfile password

key file path

This parameter is the certificate you want to sign the pdf with. It can be generated with the code documented in the chapter self signed certificate creation.

password

This parameter is the password for the certificate. The password is set during the creation of the certificate file.

input file path

The file you want to sign.

output file

If this parameter is set, a new file with this name will be created and signed. The original file will remain untouched.

Development

You'll need:

  • Maven
  • Java 8 JDK

That's all folks.

About

CLI Command line tool to digital signature of PDF files with PKCS12 certificate. You can find the executable in the releases.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 5

Languages

0