Replies: 2 comments
-
Hi 👋 Could you post the public key, or at least a similar one with which the issue can be reproduced? |
Beta Was this translation helpful? Give feedback.
-
I don't see the public key attached here, even though I got it in my email. For the record this is the output of
There is no key flags subpacket in either of the self-sigs, which is interpreted inconsistently by different implementations. gnupg takes the absence of the flags to mean "all capabilities", while gopenpgp interprets it as "no capabilities". You can fix this by editing your key and specifically setting the key flags on the subkey to be "E" only. See this guide: https://security.stackexchange.com/questions/31614/how-to-change-subkey-usage-of-a-pgp-key |
Beta Was this translation helpful? Give feedback.
-
I encountered an issue when trying to encrypt a message using gopenpgp. The following error message is displayed:
When I checked the key details using the gpg --list-keys command, here is the output:
Steps to Reproduce:
I loaded my public key using gopenpgp.
When trying to encrypt a message with the public key, the error above was triggered.
Observations:
Based on the gpg --list-keys output, the key capabilities are SCEAR:
S: Sign
C: Certify
E: Encrypt
A: Authenticate
R: Subkey
However, gopenpgp considers this key invalid for encryption.
Questions:
Is there an issue with my PGP key configuration?
Does gopenpgp require specific key attributes to allow encryption?
How can I verify that my key is valid for encryption when using gopenpgp?
Beta Was this translation helpful? Give feedback.
All reactions