Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #256363 > unrolled thread

thunderbird can not import gpg-key

Started byHans <hans.ullrich@loop.de>
First post2023-03-25 11:30 +0100
Last post2023-03-25 16:20 +0100
Articles 8 — 5 participants

Back to article view | Back to linux.debian.user


Contents

  thunderbird can not import gpg-key Hans <hans.ullrich@loop.de> - 2023-03-25 11:30 +0100
    Re: thunderbird can not import gpg-key Geert Stappers <stappers@stappers.nl> - 2023-03-25 14:00 +0100
      Re: thunderbird can not import gpg-key Hans <hans.ullrich@loop.de> - 2023-03-25 14:40 +0100
        Re: thunderbird can not import gpg-key Tom Furie <tom@furie.org.uk> - 2023-03-25 15:20 +0100
          Re: thunderbird can not import gpg-key Hans <hans.ullrich@loop.de> - 2023-03-25 16:00 +0100
            [SOLVED] Re: thunderbird can not import gpg-key Hans <hans.ullrich@loop.de> - 2023-03-25 16:20 +0100
              Re: [SOLVED] Re: thunderbird can not import gpg-key Probably like <stappers@stappers.nl> - 2023-03-25 17:20 +0100
        Re: thunderbird can not import gpg-key Teemu Likonen <tlikonen@iki.fi> - 2023-03-25 16:20 +0100

#256363 — thunderbird can not import gpg-key

FromHans <hans.ullrich@loop.de>
Date2023-03-25 11:30 +0100
Subjectthunderbird can not import gpg-key
Message-ID<Gd9jP-eY0E-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi folks, 

I wanted to import my secret key into thunderbird, but thunderbird can not read the directory. 

What an I doing wrong?

I do (my thunderbird is in German, so my English translation might not be quite accurate): 

- starting thunderbird
- chose  in "Open PGP" the option "add key"
- click "add existing key"
- click "files for import"
- now chose in my /home the folder .gnupg/private-keys-v1.d

and then I get

Error opening /home/myusername/.gnupg/private-keys-v1.d
Access not granted

---

the settings for these are set:

drwxr-xr-x   6 myusername myusername     20480 24. Mär 17:51 .gnupg
drwxr-xr-x   6 myusername myusername     20480 24. Mär 17:51 .gnupg/private-keys-v1.d/

The keys themselves are set "rw" and owner is "myusername:myusername"

The only explanation I have, that thunderbird is calling a plugin with another owner than me, as 
thunderbird itself is started with ownership "myusername".

However, even if I set the rights to "everybody can read it" (what is of course only set for testing 
purposes!) it does not work.

Anything else, where I should take a look?

Thanks for any hints.

Best regards

Hans

[toc] | [next] | [standalone]


#256364

FromGeert Stappers <stappers@stappers.nl>
Date2023-03-25 14:00 +0100
Message-ID<GdbEZ-eZne-1@gated-at.bofh.it>
In reply to#256363
On Sat, Mar 25, 2023 at 11:21:25AM +0100, Hans wrote:
> Hi folks, 
> 
> I wanted to import my secret key into thunderbird, but thunderbird
> can not read the directory.
> 
> What an I doing wrong?
> 
> I do (my thunderbird is in German, so my English translation might
> not be quite accurate):
> 
> - starting thunderbird
> - chose  in "Open PGP" the option "add key"
> - click "add existing key"
> - click "files for import"
> - now chose in my /home the folder .gnupg/private-keys-v1.d
> 
> and then I get
> 
> Error opening /home/myusername/.gnupg/private-keys-v1.d
> Access not granted
> 
> ---
> 
> the settings for these are set:
> 
> drwxr-xr-x   6 myusername myusername     20480 24. Mär 17:51 .gnupg
> drwxr-xr-x   6 myusername myusername     20480 24. Mär 17:51 .gnupg/private-keys-v1.d/
> 
> The keys themselves are set "rw" and owner is "myusername:myusername"
> 
> The only explanation I have, that thunderbird is calling a plugin with
> another owner than me, as thunderbird itself is started with ownership
> "myusername".
> 
> However, even if I set the rights to "everybody can read it" (what is
> of course only set for testing purposes!) it does not work.
> 
> Anything else, where I should take a look?

If I recall correct,  I did something like

  gpg --export-secret-key  0x123456  >   sleutel


at the command line and then the TB import.

 
> Thanks for any hints.

Thanks for reporting back.

 
> Best regards
> Hans

Groeten
Geert Stappers
-- 
Silence is hard to parse

[toc] | [prev] | [next] | [standalone]


#256365

FromHans <hans.ullrich@loop.de>
Date2023-03-25 14:40 +0100
Message-ID<GdchH-eZQo-3@gated-at.bofh.it>
In reply to#256364

[Multipart message — attachments visible in raw view] — view raw

Hi Geert,

I tried, but ran into the same issue:

LANG=C gpg --export-secret-key /home/ullhan63/.gnupg/private-keys-v1.d/123456789.key  > 
testkey 
gpg: WARNING: unsafe permissions on homedir '/home/myusername/.gnupg' 
gpg: WARNING: nothing exported

Strange.....

Best regards

Hans


 
> If I recall correct,  I did something like
> 
>   gpg --export-secret-key  0x123456  >   sleutel
> 
> 
> at the command line and then the TB import.
> 
> > Thanks for any hints.
> 
> Thanks for reporting back.
> 
> > Best regards
> > Hans
> 
> Groeten
> Geert Stappers


[toc] | [prev] | [next] | [standalone]


#256366

FromTom Furie <tom@furie.org.uk>
Date2023-03-25 15:20 +0100
Message-ID<GdcUp-f0kx-5@gated-at.bofh.it>
In reply to#256365

[Multipart message — attachments visible in raw view] — view raw

On Sat, Mar 25, 2023 at 02:37:10PM +0100, Hans wrote:

> LANG=C gpg --export-secret-key /home/ullhan63/.gnupg/private-keys-v1.d/123456789.key  > 
> testkey 
> gpg: WARNING: unsafe permissions on homedir '/home/myusername/.gnupg' 
> gpg: WARNING: nothing exported
> 
> Strange.....

Did you read the output of the command? You have unsafe permissions on your
.gnupg directory, therefore nothing was exported.

Not strange at all...

Cheers,
Tom

-- 
I'm a soldier, not a diplomat.  I can only tell the truth.
		-- Kirk, "Errand of Mercy", stardate 3198.9

[toc] | [prev] | [next] | [standalone]


#256367

FromHans <hans.ullrich@loop.de>
Date2023-03-25 16:00 +0100
Message-ID<Gddx8-f0za-3@gated-at.bofh.it>
In reply to#256366
Hmm, maybe it is because I changed the permissions during my testing purposes. 

I reset them to original and tried again. 

The error is gone, but nothing is exported.

Ok, thanks guys, I will try some more. Maybe kleopatra is interfeering with my 
keys.

If I know more, I will let you know.

Best regards

Hans



> Did you read the output of the command? You have unsafe permissions on your
> .gnupg directory, therefore nothing was exported.
> 
> Not strange at all...
> 
> Cheers,
> Tom

[toc] | [prev] | [next] | [standalone]


#256369 — [SOLVED] Re: thunderbird can not import gpg-key

FromHans <hans.ullrich@loop.de>
Date2023-03-25 16:20 +0100
Subject[SOLVED] Re: thunderbird can not import gpg-key
Message-ID<GddQt-f0VG-7@gated-at.bofh.it>
In reply to#256367
Am Samstag, 25. März 2023, 15:52:03 CET schrieb Hans:
I am answering myself.

It is now working. Problem was, that I first tried to use the 
"lkhjpoqwrpoqfjiah.key" files below ".gnupg/private-keys--v1.d/, which did not 
work.

Then, during testings, I changed permissions of .gnupg, which led to a new 
error.

Reverting this, I tried "gpg -K" and then saw the keys with its name.

Then I could export the keys using the correct syntax (name of the key, not 
some filename). Such I got a new file, which could be imported into 
thunderbird.

So, one mistake led to another, however, now its working and I learnt 
something.

Thanks for all the help.

Best regards

Hans

> Hmm, maybe it is because I changed the permissions during my testing
> purposes.
> 
> I reset them to original and tried again.
> 
> The error is gone, but nothing is exported.
> 
> Ok, thanks guys, I will try some more. Maybe kleopatra is interfeering with
> my keys.
> 
> If I know more, I will let you know.
> 
> Best regards
> 
> Hans
> 
> > Did you read the output of the command? You have unsafe permissions on
> > your
> > .gnupg directory, therefore nothing was exported.
> > 
> > Not strange at all...
> > 
> > Cheers,
> > Tom

[toc] | [prev] | [next] | [standalone]


#256370 — Re: [SOLVED] Re: thunderbird can not import gpg-key

FromProbably like <stappers@stappers.nl>
Date2023-03-25 17:20 +0100
SubjectRe: [SOLVED] Re: thunderbird can not import gpg-key
Message-ID<GdeMx-f1vw-3@gated-at.bofh.it>
In reply to#256369
On Sat, Mar 25, 2023 at 04:18:28PM +0100, Hans wrote:
> I am answering myself.
>    ...
> Then I could export the keys using the correct syntax (name of the key, not 
> some filename).

Probably like

  gpg --export-secret-key 8A7F208C6D9E73291657414D2135D123D8C19BEC > precious


> Such I got a new file, which could be imported into thunderbird.
> 
> So, one mistake led to another, however, now its working and I learnt 
> something.

Challenge for next time:

     Share the actual (and exact) command.

[toc] | [prev] | [next] | [standalone]


#256368

FromTeemu Likonen <tlikonen@iki.fi>
Date2023-03-25 16:20 +0100
Message-ID<GddQt-f0VG-3@gated-at.bofh.it>
In reply to#256365

[Multipart message — attachments visible in raw view] — view raw

* 2023-03-25 14:37:10+0100, Hans wrote:

> I tried, but ran into the same issue:
>
> LANG=C gpg --export-secret-key /home/ullhan63/.gnupg/private-keys-v1.d/123456789.key  > testkey 

Wrong argument. "gpg --export-secret-key" does not want filename
argument. It wants key id, key fingerprint or user id argument(s).

I suggest that you check your key's fingerprint with "gpg -K" command
and then use the fingerprint the select the key for export.

    gpg --output key.gpg --export-secret-key F514B7B57C2960FA7D6FF4E15BA322F72BEF564B

-- 
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web