Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot sign a message if primaryKey missing and using subkey: key not decrypted #583

Closed
tomholub opened this issue Mar 8, 2017 · 16 comments
Assignees
Milestone

Comments

@tomholub
Copy link
Collaborator

tomholub commented Mar 8, 2017

Regarding signing of messages, I get an error saying "Private key is not decrypted". Is this maybe a problem because of a missing primary key and a extra subkey for signing messages.

@tomholub tomholub added this to the Ideas L2 milestone Mar 8, 2017
@tomholub tomholub self-assigned this Mar 8, 2017
@tomholub
Copy link
Collaborator Author

another case: support https://mail.google.com/mail/u/1/#inbox/15b4a0e2fbf06dee

cannot sign atttest + cannot sign emails / encrypted key / accepts pass phrase but says "Private key is not decrypted"

@arsham
Copy link

arsham commented Oct 17, 2017

I'm using gnupg 2.2.1 on linux. I have a sub key pairs (SE: RSA2048) and I get this error when I click the sign key. I have tried generating a few keys (with fresh master key), I still receive this error.
Extra info: I have tried this with mailvelope and it cannot be decrypted with that extension too.
Signing and decrypting files in terminal is fine.

Edit: decryption is fine.

@tomholub
Copy link
Collaborator Author

looks like something we need to fix in OpenPGP.js. Can you please create a bogus private key for me that is showing this behavior. If you could paste:

  1. misbehaving private key (and pass phrase if any or keep without pass phrase)
  2. a message signed with the key in terminal

That will help me debug it.

@arsham
Copy link

arsham commented Oct 18, 2017

Hi,
I have made the keys and put the steps taken in the message.txt file. The pass phrase is 1. The gnupg folder is included in case you need to dig into the keyring.

BTW, I love your plugin. It has been improved since last time I tried it about a year ago. Well done!

@tomholub
Copy link
Collaborator Author

keys.tar.gz

I'm saving them here so that I can still find it when I get time to debug it. Thanks!

@arsham
Copy link

arsham commented Nov 16, 2017

Just a quick feedback: I just imported my keys into firefox and it signs the message just fine. The problem seems to be related to google chrome.

@tomholub
Copy link
Collaborator Author

That's weird. It still doesn't work in Chrome, but does in Firefox?

@arsham
Copy link

arsham commented Nov 17, 2017

Correct. I just tried with chromium (Arch Linux OS), got the same issue.

@dpnova
Copy link

dpnova commented Nov 28, 2017

I'm seeing this too. Ubuntu 17.10 and chrome. Just a subkey in my flowcrypt config.

@tomholub
Copy link
Collaborator Author

Subkey-only key exported from GPG, is that correct @dpnova ?

@tomholub tomholub modified the milestones: Ideas L2, Ideas L1 Nov 28, 2017
@ppmotskula
Copy link

Same behaviour here. Ubuntu 17.10, Chromium, separate signing subkey. Decryption works, signing doesn't.

@tomholub
Copy link
Collaborator Author

@ppmotskula Is that also a subkey-only key or some other structure?

@ppmotskula
Copy link

It's a subkey-only key.

@tomholub
Copy link
Collaborator Author

ref openpgpjs/openpgpjs#251

@tomholub
Copy link
Collaborator Author

@tomholub tomholub modified the milestones: Ideas L1, openpgpjs v3 Jul 27, 2018
@tomholub
Copy link
Collaborator Author

This should now be solved. Please try and report success or failure back, thanks!

@tomholub tomholub modified the milestones: First priority, discussion Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants