You are not logged in.
Pages: 1
I am trying to create a gpg key using the command
gpg2 --full-gen-key
The procedure always hangs indefinitely at the following point:
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.
What I tried:
Checked the available entropy: Running
cat /proc/sys/kernel/random/entropy_avail
gives me as a result 3652. It's more than enough.
Try a couple of pseudorandom number generators. I tried both Haveged and rng-tools, to no avail. I think I did things well (i.e., I installed started and enabled the services, checked they were running, and then retried to create a gpg key).
So I am at a complete loss here. Anyone has good suggestions?
Thanks in advance,
bigoten
Last edited by bigoten (2018-01-17 22:44:35)
Offline
Were you doing anything to actually generate entropy, like cat'ing files or something?
Offline
Humm, I was working (using Anki) and browsing the internet. So mouse and keyboard were regularly used, disk only on occasion I suppose.
What would you suggest, specifically?
Last edited by bigoten (2018-01-17 23:52:55)
Offline
I run the haveged daemon. It is in the Arch repositories.
Tim
Offline
As I said in my OP, I already tried that. It did not work.
Offline
Sorry. I have never had a problem with entropy since I started running it.
Tim
Offline
Humm, I was working (using Anki) and browsing the internet. So mouse and keyboard were regularly used, disk only on occasion I suppose.
What would you suggest, specifically?
Do some IO heavy things, and also move the mouse around madly.
By the way, what are the options that you are selecting for the key generation?
Offline
I used all default options (RSA, 2048, key does not expire).
I tried for over 10 min, moving the mouse and transferring files in the disk like crazy. Nothing at all, always stuck.
What am I still missing?
Offline
It might be a bug or something very peculiar with your system. Just to clarify, the process always hangs right? If there's not enough entropy, gpg should whine about the lack of it.
Edit: Have you tried checking the entropy levels when the key generation hangs?
Last edited by x33a (2018-01-19 14:22:49)
Offline
Yes, the process always hanged in spite of the fact that I had entropy (apparently).
At the end I had to give up. I formatted my disk (after 7 years!). After reinstalling Arch it worked as advertised.
Thank you all for trying to help.
Last edited by bigoten (2018-01-23 23:47:43)
Offline
Pages: 1