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


Groups > linux.debian.bugs.dist > #1242610 > unrolled thread

Bug#645426: gpg --homedir /nonexistent --gen-key goes through the entire key generation process, then errors out

Started byAndreas Metzler <ametzler@bebt.de>
First post2025-04-18 18:50 +0200
Last post2025-04-19 07:40 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.debian.bugs.dist

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#645426: gpg --homedir /nonexistent --gen-key goes through the entire key generation process, then errors out Andreas Metzler <ametzler@bebt.de> - 2025-04-18 18:50 +0200
    Bug#645426: gpg --homedir /nonexistent --gen-key goes through the entire key generation process, then errors out Andreas Metzler <ametzler@bebt.de> - 2025-04-19 07:40 +0200

#1242610 — Bug#645426: gpg --homedir /nonexistent --gen-key goes through the entire key generation process, then errors out

FromAndreas Metzler <ametzler@bebt.de>
Date2025-04-18 18:50 +0200
SubjectBug#645426: gpg --homedir /nonexistent --gen-key goes through the entire key generation process, then errors out
Message-ID<KCX4B-etsR-3@gated-at.bofh.it>
Control: tags -1 wontfix
Control: found -1 2.4.7-1

On 2011-10-15 Josh Triplett <josh@joshtriplett.org> wrote:
> Package: gnupg
> Version: 1.4.11-3
> Severity: normal

> For a quick test, I needed to generate a temporary GPG key.  I started
> with "gpg --homedir /tmp/gpg-temp --gen-key".  This walked me all the
> way through the key generation process, including lengthy entropy
> collection, before erroring out because the directory didn't exist (I'd
> expected gpg to create it):
[...]

This was marked wontfix and closed upstream:

| Werner said:
| > GnuPG tries to create its _default_ home directory because this is the
| > common case. Creating a home directory in every case would clutter the
| > disk with gnupg related data which may even be sensitive.
| 
| Closing as wontfix.

[toc] | [next] | [standalone]


#1242666

FromAndreas Metzler <ametzler@bebt.de>
Date2025-04-19 07:40 +0200
Message-ID<KD95L-eCUG-7@gated-at.bofh.it>
In reply to#1242610
On 2025-04-18 Josh Triplett <josh@joshtriplett.org> wrote:
> On Fri, Apr 18, 2025 at 06:41:34PM +0200, Andreas Metzler wrote:
>> On 2011-10-15 Josh Triplett <josh@joshtriplett.org> wrote:
>>> Package: gnupg
>>> Version: 1.4.11-3
>>> Severity: normal

>>> For a quick test, I needed to generate a temporary GPG key.  I started
>>> with "gpg --homedir /tmp/gpg-temp --gen-key".  This walked me all the
>>> way through the key generation process, including lengthy entropy
>>> collection, before erroring out because the directory didn't exist (I'd
>>> expected gpg to create it):
>> [...]
 
>> This was marked wontfix and closed upstream:
[...]
> Clarifying something here: while I would love to have seen gpg *create*
> the directory, the most important part of the bug here is "detect early
> that it doesn't exist, and error out before going through the whole
> interactive process".

Yes, that is how I read your report, it really is not nice.

I have added a comment on the upstream bts to emphasize this, perhaps it
helps.

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web