When I use option "sign and encrypt", my emails are signed with my default key instead of the one specified in config. Sign with no encryption works fine.
I managed to find the cause. Method encrypt expects symbol :signers instead of :signer in options hash. I got it working by adding the line options[:signers] = options[:signer] to my gpg-options hook.
I'm sure the solution requires only minor changes in code, but I'm not confident enough to do it myself.
When I use option "sign and encrypt", my emails are signed with my default key instead of the one specified in config. Sign with no encryption works fine.
I managed to find the cause. Method encrypt expects symbol
:signers
instead of:signer
inoptions
hash. I got it working by adding the lineoptions[:signers] = options[:signer]
to my gpg-options hook.I'm sure the solution requires only minor changes in code, but I'm not confident enough to do it myself.