I have multiple secret keys in my GPG keyring.
I'd like to do a gpg -e -s -a
to encrypt, sign, and ascii armor the output. However, I also need to specify which secret key to use for the signature, by key id.
You can encrypt messages using the “–encrypt” flag for GPG. The basic syntax would be: gpg --encrypt --sign --armor -r [email protected] name_of_file.
The GPG key pair comprises two types of keys: Private and Public keys. The private GPG keys are encrypted and stored in the secret keyring, and public keys are maintained with certificates attesting to their trustworthiness in the public keyring.
I needed the --local-user option.
gpg -e -s -a --local-user 0xDEADBEEF -r 0x01234567
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With