I have a program that is encrypting some data in a file to a someone’s public key and afterwards I need to sign this data with another key. I have been trying within a program as well as the command prompt to do this with the gnupg line below:
echo “my-passphrase-in-these-quotes”|c:\gnupgt\gpg.exe --yes --passphrase-fd 0 -default-key firstname.lastname@example.org --output c:\gnupgt\signed.txt.gpg -s c:\gnupgt\encrypt.txt.gpg
It always gives a ‘conflicting commands’ error. Any insight? Thanks.