On Mon, Jul 18, 2016 at 9:40 PM, d...@mielko.com <d...@mielko.com> wrote:

> I am struggling with GPG command line that will encrypt file with key A
> and sign it with key B.
>

Usually it does it automatically, if you have subkeys for signing and
encryption.


> Also, is there a way to provide the password for the signing key in the
> command line?
>

Try appending this to the command: `--passphrase-fd=0 <<< thepassphrase`


> I am trying to automate encrypting files.
>

Consider also using and customizing `egpg`:
 - http://dashohoxha.github.io/egpg/gnupg-2.0/man/#CUSTOMIZATION
 - https://github.com/dashohoxha/egpg/wiki/gnupg-2.0-Customization
_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to