Replies: 4 comments 8 replies
-
Hi, the message was encrypted with the primary key, which is marked as sign-only. The encryption library shouldn't have used that key to encrypt. To allow message decryption, you can set const decOpt = {
decryptionKeys: privateKey,
message: ...,
config: { allowInsecureDecryptionWithSigningKeys: true }
}; That configuration option was introduced to go around a very old OpenPGP.js bug (#1148). |
Beta Was this translation helpful? Give feedback.
-
Thank you
…On Mon, 20 Sep 2021, 16:06 larabr, ***@***.***> wrote:
You can get the keyID of the encryption key(s) with
message.getEncryptionKeyIDs()
Then the easiest way to check whether the corresponding key can be used
for encryption, is to call await key.getEncryptionKey(keyID) and see if
it succeeds.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1352 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVB2DNFM6UA3TFMLVI2X7N3UC4WVXANCNFSM5EKQUCWQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Good day! I would like to ask what are the security consequence of using Many Thanks, |
Beta Was this translation helpful? Give feedback.
-
I'm hung up on the same issue. So is my problem that I'm encrypting my message with a signing key? If so, how do I avoid that? This looked obvious to me:
But throws
The key in question is generated thus:
Thanks for reading and helping! |
Beta Was this translation helpful? Give feedback.
-
our client use the public key we generated from this tool and encrypted the message, but with this tool we can't decrypt it, it reported
Session key decryption failed
error, I have created a test case as below, you should be able to reproduce it:Beta Was this translation helpful? Give feedback.
All reactions