Video Screencast Help

Can pgp verify write to output file?

Created: 28 Jan 2013 • Updated: 28 Jan 2013 | 5 comments
This issue has been solved. See solution.

Hello all,

If I intend to use the pgp --sign only, at the recipient end, how do I make pgp --verify output the original file when the signature is good?


Comments 5 CommentsJump to latest comment

Alex_CST's picture

Any pgp cli command can output to a text file.

So it would be pgp --verify file.sig --output-file filename.txt

This will only output the result of the command, its no cleverer than that.

This will only tell you what has been verified, rather than outputting the file it was verifying, I'm not entirely sure if that answers your question - if it doesn't can you explain your scenario a bit more?

Please mark posts as solutions if they solve your problem!

passivity's picture

Hello Alex,

pgp --verify does not allow the "output" switch.

pgp:verify (3041:output not applicable)
dfinkelstein's picture

You can use "--decrypt" to extract the original file.



David Finkelstein

Symantec R&D

passivity's picture

Hi there,

This works!! I didn't know "decrypt" works with a signed-only file. 

passivity's picture

And I also found out that --verify and --decrypt can be on the same command!

e.g. # pgp --verify file.signed --decrypt --output file.original