GPG: sign file, make detached signature, verify file
$ gpg -sb file.pdf
-s
signs the file, -b
produces a detached signature
This command should produce a signature file: file.pdf.sig
.
To verify:
$ gpg --verify-files file.pdf file.pdf.sig
personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki gpg