1

Topic: [Hyperbola GNU/Linux-libre 0.4] Problems with key-generation?

So I have heard now messages about problems with generation of PGP-keys? To everybody having that problem: Please create a clear and detailed message with all the commands you have done and what errors occurred therefore. I'm doing this now as a thread within respect for all the work done until now for 0.4. In case we would be onto stable for that I won't do that: Make an issue with your errors and your test-case, so the community can look onto that and all developers also have a clear plan how to reproduce the problem. Only than this can be solved.

Please share your report here!

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

2

Re: [Hyperbola GNU/Linux-libre 0.4] Problems with key-generation?

$ gpg --full-gen-key
gpg (GnuPG) 2.2.20; Copyright (C) 2020 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Please select what kind of key you want:
   (1) RSA and RSA (default)
   (2) DSA and Elgamal
   (3) DSA (sign only)
   (4) RSA (sign only)
  (14) Existing key from card
Your selection?
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (3072) 4096
Requested keysize is 4096 bits
Please specify how long the key should be valid.
         0 = key does not expire
      <n>  = key expires in n days
      <n>w = key expires in n weeks
      <n>m = key expires in n months
      <n>y = key expires in n years
Key is valid for? (0)
Key does not expire at all
Is this correct? (y/N) Y

GnuPG needs to construct a user ID to identify your key.

Real name: Test_1
Email address: test@example.com
Comment:
You selected this USER-ID:
    "Test_1 <test@example.com>"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: agent_genkey failed: No pinentry
Key generation failed: No pinentry
$

3

Re: [Hyperbola GNU/Linux-libre 0.4] Problems with key-generation?

Hello guys.

I'm fix with script https://git.hyperbola.info:50100/~team/ … a1484b491b

set your pinentry interface:

$ pinentry-default --curses

Example:

[ root | 2021-07-17 | 06:07PM ]
[/home] [0]
# pinentry-default --curses
'/usr/bin/pinentry' -> 'pinentry-curses'

[ root | 2021-07-17 | 06:08PM ]
[/home] [0]
# gpg --full-gen-key
gpg (GnuPG) 2.2.20; Copyright (C) 2020 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Please select what kind of key you want:
   (1) RSA and RSA (default)
   (2) DSA and Elgamal
   (3) DSA (sign only)
   (4) RSA (sign only)
  (14) Existing key from card
Your selection? 
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (3072) 4096
Requested keysize is 4096 bits
Please specify how long the key should be valid.
         0 = key does not expire
      <n>  = key expires in n days
      <n>w = key expires in n weeks
      <n>m = key expires in n months
      <n>y = key expires in n years
Key is valid for? (0) 
Key does not expire at all
Is this correct? (y/N) y

GnuPG needs to construct a user ID to identify your key.

Real name: scorpionman
Email address: scorpionman@scorpionman.lol
Comment: 
You selected this USER-ID:
    "scorpionman <scorpionman@scorpionman.lol>"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 65407F6E71039E0E marked as ultimately trusted
gpg: directory '/root/.gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/root/.gnupg/openpgp-revocs.d/4948B0F54820A3C0392613F665407F6E71039E0E.rev'
public and secret key created and signed.

pub   rsa4096 2021-07-17 [SC]
      4948B0F54820A3C0392613F665407F6E71039E0E
uid                      scorpionman <scorpionman@scorpionman.lol>
sub   rsa4096 2021-07-17 [E]
~ Jesús E.

4

Re: [Hyperbola GNU/Linux-libre 0.4] Problems with key-generation?

Thanks Heckyel, that did it! big_smile