-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signing file and include signature #251
Comments
Cleartext signatures are a mechanism that applies to text files (see https://openpgp.dev/book/signing_data.html#cleartext-signatures for some details). I don't think they can be used with a pdf? Maybe a detached signature is what you want? (A detached signature is a small file that can be stored separately of the pdf file, and be used to verify the integrity of the pdf) |
They might have been thinking about inline signatures (gpg --sign) that have the signed data and the signature in the same output file. As you've said clearsigned binary files are not really a thing (although I guess technically it's possible to create them). |
you can use either |
Hello,
I want to sign a PDF file with rpgp as I would do it via
gpg --clearsign --output signed.pdf test.pdf
. I looked into the tests and tried it already but only came up with concatenating the required parts (signed message header, pdf content, signature) and writing them to the file. Unfortunately the result is not valid.Thanks for your help.
The text was updated successfully, but these errors were encountered: