This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Thunderbird cannot find my Key ID when trying to sign a message with external GnuPG

  • 9 پاسخ
  • 0 have this problem
  • 1 view
  • آخرین پاسخ توسّط christ1

more options

Hello.

I'm trying to set up Thunderbird to use GnuPG installed on my laptop.

Here are relevant settings I changed: ``` mail.identity.default.openpgp_key_id = "goose-new <wbg@angouri.org>" mail.openpgp.allow_external_gnupg = true ```

Then I create a new email, press OpenPGP -> Digitally sign.

Then I press Send.

However, it says ``` Unable to send the message, because there is a problem with your personal key. The configured key ID ‘goose-new <wbg@angouri.org>’ cannot be found on your keyring ```

It is correctly configured in gpg (and I can sign files with it).

Any idea?

(versions: gpg: 2.3.7, thunderbird 102.6.0, OS: NixOS 23.05)

Hello. I'm trying to set up Thunderbird to use GnuPG installed on my laptop. Here are relevant settings I changed: ``` mail.identity.default.openpgp_key_id = "goose-new <wbg@angouri.org>" mail.openpgp.allow_external_gnupg = true ``` Then I create a new email, press OpenPGP -> Digitally sign. Then I press Send. However, it says ``` Unable to send the message, because there is a problem with your personal key. The configured key ID ‘goose-new <wbg@angouri.org>’ cannot be found on your keyring ``` It is correctly configured in gpg (and I can sign files with it). Any idea? (versions: gpg: 2.3.7, thunderbird 102.6.0, OS: NixOS 23.05)

Modified by WhiteBlackGoose

All Replies (9)

more options

I've seen that page, but I may be not entirely understanding. I don't want a smartcard auth, I only need thunderbird to request signing using my gpg instead of its own, is it possible?

more options
I don't want a smartcard auth, I only need thunderbird to request signing using my gpg instead of its own

Yes, that's why I did suggest you read the article - all of it. You can follow the suggestion or not, up to you.

more options

I read the whole article, every paragraph. However, I keep hitting the issue.

I do have gpgme installed. I went to account settings -> end-to-end encryption -> add key -> from external -> pasted there last 16 characters of my key's fingerprint. Still same problem. (I also tried first 16 characters, the whole fingerprint, and key ID).

more options

Check the Thunderbird Error Console (Ctrl-Shift-J). There should be a message like this: Successfully loaded optional OpenPGP library libgpgme.so.11 from system's standard library locations

Do you see that?

You'll also need a working Pinentry for entering your private key's passphrase.

more options

I have

> Successfully loaded optional OpenPGP library libgpgme.so from system's standard library locations

I do have pinentry

Here's full logs from Ctrl+Shift+j (attached the screenshot too since it is probably more readable)

``` 1674338016947 addons.xpi WARN Checking /nix/store/995d7b91g74y4smyapi3lkp4nsb2mw68-thunderbird-102.6.0/lib/thunderbird/distribution/extensions for addons Successfully loaded OpenPGP library librnp.so version 0.16+git20220124.f06439f7.MZLA from /nix/store/995d7b91g74y4smyapi3lkp4nsb2mw68-thunderbird-102.6.0/lib/thunderbird/librnp.so RNPLib.jsm:100:15 Found 0 public keys and 0 secret keys (0 protected, 0 unprotected) RNPLib.jsm:301:15 Successfully loaded optional OpenPGP library libgpgme.so from system's standard library locations GPGMELib.jsm:69:13 gpgme version: 1.18.0-unknown GPGMELib.jsm:241:15 services.settings: Failed to load last_modified.json: TypeError: NetworkError when attempting to fetch resource. Utils.jsm:330 Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. aboutconfig.js:470:9 Trying to load /nix/store/995d7b91g74y4smyapi3lkp4nsb2mw68-thunderbird-102.6.0/lib/thunderbird/libotr.so OTRLib.jsm:64:11 Trying to load libotr.so from system's standard library locations OTRLib.jsm:64:11 Trying to load libotr.so.5 from system's standard library locations OTRLib.jsm:64:11 Trying to load libotr.so from system's standard library locations OTRLib.jsm:64:11 Error: Cannot load required OTR library

   loadExternalOTRLib resource:///modules/OTRLib.jsm:109
   init resource:///modules/OTRLib.jsm:115
   once resource:///modules/OTR.jsm:118
   init resource:///modules/OTR.jsm:139
   init resource:///modules/OTRUI.jsm:256

OTR.jsm:127:15 tb.account.size_on_disk - Truncating float/double number. ```

Could it be the problem with OTR?

more options
Found 0 public keys and 0 secret keys

Did you import the corresponding public key into Thunderbird as described in the article?

Could it be the problem with OTR?

No.

more options

Ok so, apparently, when I import the **public** key through openpgp key manager, I should press Not accept when it prompts. Now it works. Thank you so much for the help!

more options
apparently, when I import the **public** key through openpgp key manager, I should press Not accept when it prompts.

I somehow doubt you can send encrypted messages properly when not accepting your own public key.