I've been asked to distribute electronic certificates (they were originally paper), in a PDF format, but I'd like to sign them with gpg or something similar so users can upload them to my site to check that they've not been handed a fake copy.
So, I'd like to sign a PDF file (transparently, the user doesn't need to know about anything) and check if its valid.