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

Failed to import secret key #6350

Open
Wurzelkoch opened this issue Dec 19, 2024 · 3 comments · May be fixed by rpgp/rpgp#448
Open

Failed to import secret key #6350

Wurzelkoch opened this issue Dec 19, 2024 · 3 comments · May be fixed by rpgp/rpgp#448

Comments

@Wurzelkoch
Copy link

Wurzelkoch commented Dec 19, 2024

I am using deltachat as a secondary device for an email account where I have a long established key with multiple aliases. Until now, I've never written an email using deltachat with this account, because I'd prefer to keep the established key over a new key that only applies to one alias of this mail account. Now, I've tried to import that secret key into deltachat, so I can also write emails from my phone without worrying about a key mixup, and so I can actually read encrypted mails on the phone, and not only the unencrypted ones, however, key import failed.

  • Operating System (Linux/Mac/Windows/iOS/Android): Android 15.10.228
  • Delta Chat Version: both 1.46 and 1.50.2-foss
  • Expected behavior: should import and use key
  • Actual behavior: prints the attached error message and doesn't import key
  • Screenshots: omitted as it only prints the same error message as is visible in the below logs
  • Logs:
12-19 20:20:05.537 29917 30011 🔵 DeltaChat: [accId=2] src/imex.rs:208: Import path: /data/user/0/com.b44t.messenger/cache/tmp-keys-file8247660042905729016.tmp
12-19 20:20:05.537 29917 30011 🔵 DeltaChat: [accId=2] src/imex.rs:636: Importing secret key from /data/user/0/com.b44t.messenger/cache/tmp-keys-file8247660042905729016.tmp as the default key.
12-19 20:20:05.540 29917 30011 🔴 DeltaChat: [accId=2] IMEX failed to complete: "verify_certification: No matching issuer or issuer_fingerprint for Key ID: KeyId(395703ec0472e467)"
12-19 20:20:05.540 29917 30011 🔴 DeltaChat: IMEX failed to complete: "verify_certification: No matching issuer or issuer_fingerprint for Key ID: KeyId(395703ec0472e467)"
12-19 20:20:05.540 29917 30011 🟠 DeltaChat: [accId=2] deltachat-ffi/src/lib.rs:2314: IMEX failed: "verify_certification: No matching issuer or issuer_fingerprint for Key ID: KeyId(395703ec0472e467)"
@hpk42
Copy link
Contributor

hpk42 commented Dec 19, 2024 via email

@link2xt
Copy link
Collaborator

link2xt commented Dec 19, 2024

1.50.3 is fixing a different issue with existing keys that were successfully imported by old C core.

This problem is unrelated, it complains about importing some key that does not have a signature.

@hko-s
Copy link

hko-s commented Dec 19, 2024

@Wurzelkoch could you provide some more information about the key? e.g. what algorithms does it use?

It looks like rPGP considers one (or more) of the User IDs in it not correctly self-signed. Would be very interesting to get to the bottom of why that is (it might be that something about the key's internal structure is problematic, or it could be that some edge case is not handled correctly in rPGP).

If you could provide a public key (!) copy of the key in question, that might help debug this.

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

Successfully merging a pull request may close this issue.

4 participants