question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Encrypting mail to mail not in address book fails

See original GitHub issue

More general example below: https://github.com/k9mail/k-9/issues/2055#issuecomment-274272755


Expected behavior

Encrypt & send mail to giorgio@maone.net.

Actual behavior

“Private key could not be found” is displayed.

Steps to reproduce

  1. Add giorgio@maone.net (3359 0391 70A3 CD9B 25CF 5A46 231A 83AF DA9C 2434) to OpenKeychain.
  2. Create a mail. As you can see, the “To” indicator sees the PGP key for the mail, but the encryption indicator at the top right indicates that the mail cannot be encrypted (security slider is set to “always encrypt” here): encryptionerror

I suspect this is an issue with the key (as also other PGP clients failed), but depending on what this is, you might improve the UI/UX of K9 mail as the current claim (in the error message) is proven to be wrong: There is a key for this mail.

Environment

K-9 Mail version: v5.202

Android version: CM 13/Android 6

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ar-commented, Jan 16, 2017

Hi. I put the two keys from above into 2 text files and ran gpg --with-fingerprint and gpg --list-packets on them. I attach the outputs of both files here. a_key.txt b_key.txt

You can view them in a diff viewer too see what is different.

As far as I see it: the first key was created on 2011-02-26 and the second one on 2014-07-05. The newer one (the one he emailed to you) removes an expiry date in one of the sub keys. In the older one the subkey expired on 2016-02-25. That might be the reason why it doesn’t work anymore right now?!

On the public key server http://pgp.mit.edu/pks/lookup?op=vindex&search=0x231A83AFDA9C2434 you can also see (in the last 2 lines) the removed expiry date.

And yes, both of them show the same fingerprint, since the same private key was used to sign these subkeys.

0reactions
dschuermanncommented, Feb 7, 2017

@rugk Yup, I think you are right. This should be the same as #1655

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to send encrypted email. - TechNet - Microsoft
I have a colleague who sends me email from address of ... “The e-mail address in the certificate is not found in the...
Read more >
Email encryption in Outlook - how to encrypt messages with ...
To be able to exchange encrypted messages with certain contacts, you need to share your public keys first. You start by exchanging digitally ......
Read more >
Unable to send message securely when sending encrypted mail
The error message occurs due to any of the following reasons: The status of Email Encryption Client (TMEEC) email address registration was not...
Read more >
Cannot send encrypted message to others using Outlook 2010
When I made the email I filled the "To:" field using the exact contact from the Contacts list. If I right click on...
Read more >
Three Ways to Encrypt Email in Outlook: Comparison and ...
If the certificate is lost, then you will not be able to open your previously sent or received encrypted email. Also, if you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found