Adobe Reader, which I use on MS Windows, has the ability to validate the digital signature (created with an X.509 certificate) in a PDF file.
I'd like to do such verification on Linux desktops. I've tried Evince and Okular, the most recommended PDF readers, but they can't do that.
On the other hand, Adobe Reader is not available for Linux (see https://get.adobe.com/reader/otherversions/). PDF readers that are built-in in current versions of Firefox and Chrome neither can verify the signatures.
I'm fine with using a gui, command line tool or a firefox/chrome extension to do this.
Enter the code from the SMS to download and save the file. I assume you saved it as “aadhaar-unverified.pdf”.
Open the file with acroread, the password is the ZIP of the city.
Click on the question mark, a window with title “Signature Validation Status” opens.
Click “Signature Properties” to open the window with the same title.
Click “Show Certificate” to open the certificate window.
Choose the “Trust” tab.
Click “Add to Trusted Identities”.
Click “OK” to close the certificate window.
Click “Validate Signature”.
Click “Close” to close the Signature Properties window.
Print the page into the file “aadhaar-verified.ps”.
Convert the postscript file to pdf. The following command is one line. The “sed” removes a stupid “copy protection” from the postscript file and ps2pdf then creates the PDF file.
sed "/mark currentfile eexec/,/cleartomark/ d" aadhaar-verified.ps | ps2pdf - aadhaar-verified.pdf
Now print the copy of your E-Aadhaar Card on paper and make backups of your PDF file.
Now you have a nice verified PDF which you can print without any problems. Wasn’t that simple, eh?