Endpoint Encryption

 View Only
  • 1.  Can pgp verify write to output file?

    Posted Jan 28, 2013 03:42 AM

    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?

    Thanks

     



  • 2.  RE: Can pgp verify write to output file?

    Posted Jan 28, 2013 04:15 AM

    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?



  • 3.  RE: Can pgp verify write to output file?

    Posted Jan 28, 2013 05:35 AM

    Hello Alex,

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

     

    pgp:verify (3041:output not applicable)
     
     


  • 4.  RE: Can pgp verify write to output file?
    Best Answer

    Posted Jan 28, 2013 04:28 PM

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

    Regards,

     



  • 5.  RE: Can pgp verify write to output file?

    Posted Jan 28, 2013 09:41 PM

    Hi there,

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



  • 6.  RE: Can pgp verify write to output file?

    Posted Jan 28, 2013 09:44 PM

    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

    Cheers!