Hi All,
I am trying to call PGP command line encryption from Java but unable to execute the command.
Change in command gives different error:
pgp -es <filenname> --output <outputfile> -r <RecipientKey> --signer <Signer> --passphrase <Passphrase>
This is throwing error 162
However, when I tried to use similar command for Decryption, it worked. (Initially throwing same error- Then I added output file name in command)
pgp --decrypt <filename> --output
<outputfile> --passphrase <Passphrase>
Can someone please help me get correct command - used below two commands till now:
1. pgp -es <filenname> --output <outputfile> -r <RecipientKey> --signer <Signer> --passphrase <Passphrase>
2. pgp -es <filenname> -r <RecipientKey> --signer <Signer> --passphrase <Passphrase>
3. pgp -encrypt <filenname> --output <outputfile> -recipient <RecipientKey> --signer <Signer> --passphrase <Passphrase>
Thanks !!