Thursday, May 31, 2012

How to digitally sign a pdf file using free software in GNU/Linux

I recently needed to sign a pdf document for legal purposes. The other party was willing to accept a digital signature. That does not mean copying an picture onto a pdf document. It's using public key crypto to sign the pdf document. Acrobat can do it, but I use free software, so, after about 30 minutes I figured out how to do it.

  1. I extracted my csail certificate from my browser. In firefox
    • edit->preferences->advanced->encryption->view certificates
    • select the certificate
    • then hit backup
    • save it as a pkcs12 file
    • you'll be asked for a password for the backup. You'll use this later.
  2. I got jsignpdf-1.3.0 and installed it
    • $ unzip JSignPdf-1.3.0.zip
    • $ cd jsignpdf-1.3.0
  3. I ran it: $ java -jar JSignPdf.jar
    • A simple window popped up with some forms to fill in.
      • keystore type: PKCS12
      • keystore file: choose the backup made of the certificate
      • keystore password: the password you used
      • input file: the pdf file to sign
      • output file: I chose another name to avoid overwriting something useful
      • I clicked the checkbox on "visible signature"
      • Went to the "settings" box next to 'visible signature"
      • I chose the page where the signature needed to be placed, and I chose coordinates. I found the coordinates by running gv input.pdf since ghostview shows the coordinates in the upper left corner. For example, I put my signature on page 7 and put signature at coordinates
        • 147
        • 482
        • 369
        • 519
      • I chose Display: "Signature name and decsription"
      • Hit "close"
    • Then "sign it" on the original jpdfsign window.

22 comments:

Natalia said...

What is the advantage of using a different software to sign a PDF file if Acrobat is having the functionality to perform this task ? Anyways thanks for sharing the way you have used to sign a pdf using this free tool.
digital signature PDF

Unknown said...

Actually Adobe Reader has problem signing many PDF files, as it shows "Signing not allowed", while this tool is simple and allows you to sign such PDF quickly...

ICS Cyber Security said...

It is very useful to me. Everything is very open and represents very clear explanation of issues. Really blogging is spreading its wings quickly. Your write up is a good example of it.

eSignature

AdeleB said...

How to digitally sign a pdf file multi-times using free trial of PDF signer software

DSM said...

This blog post really help me to understand so many things and it's full of information. We provide Digital Signature Certificate
at all states of India

Make My Digital Signature said...

Your way to describe this blog is really amazing. Keep writing. It really helps to understand so many things. Thanks. we are the legal provider of Digital Signature certificates

Make My Digital Signature said...

Really interesting blog. Thanks. I am a regular reader keep posting. We are the supreme Digital signature provider in Delhi

DSC7 said...

Thanks for the wonderfull blog it's full of knowledge. We are the supreme provider of Digital signature certificate

DSM said...

Very informative blog and i will definitely read all your future post, and also i recommend you to others.

Digital Signature provider in Delhi

DSM said...

This blog post is really very amazing nicely explained every point. Thanks for this interesting blog.

Digital Signature provider in Delhi

esigndsc said...

Thanks for publishing the informative blog. Really a helpful blog.



Online Digital Signature Certificate

Buydscdelhi said...

Nice Blog, Very interesting blog and very informative.


digital signature certificate provider in Delhi

Make My Digital Signature said...


That really great information.....


Digital signature for income Tax

Make My Digital Signature said...

Thanks for posting such an informative article.



Digital signature provider in Delhi

Make My Digital Signature said...

I will wait for the next amazing blog with creativity and unique content.



Digilai signature procvide in Delhi

esigndsc said...

That really great information.....



digital signature certificate

Dsc Signer said...

Dsc Signer is india's most using pdf signer software in which you can sign PDF, Docs file, invoices, puchase order, contract, agreement etc in bulk and auto mode with DSC token.It can be integrated with your existing ERP,SAP,Oracle etc.
PDF Signer

Dsc Signer said...

Thanks for this useful article. keep it up. we are dealing in Digital Signature Software at minimum prices if anyone wants pls contact.

Dsc Signer said...

Great Info, Your blog is very informative and interesting, your all post are amazing, keep sharing more interesting topics.
thanks for the blog. it really helps me alot.
Bulk PDF Signer
Auto digital signature

Dsc Signer said...

Great Info, Your blog is very informative and interesting, your all post are amazing, keep sharing more interesting topics.
thanks for the blog. it really helps me alot.
Digital Signature Integration

Digital Signature Dot Digital said...
This comment has been removed by the author.
Anu Sinha said...

Superb and really very good informative post. Contact for Class 3 Digital Signature Certificate.