Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How do you achieve enough entropy for GPG key generation

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
jaytelford
Posts: 36
Joined: 2018-05-09 10:56
Location: United KIngdom

How do you achieve enough entropy for GPG key generation

#1 Post by jaytelford »

Hi guys,

I am having some problems here. I am trying to generate a gpg key so that I can sign my GitHub commits but I am struggling to get high enough entropy for the key to be created. How can I increase entropy in a low entropy system, so that my gpg keys are created.

thanks
jay

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: How do you achieve enough entropy for GPG key generation

#2 Post by Head_on_a_Stick »

Try

Code: Select all

# apt install haveged
Or get a hardware random number generator.
deadbang

jaytelford
Posts: 36
Joined: 2018-05-09 10:56
Location: United KIngdom

Re: How do you achieve enough entropy for GPG key generation

#3 Post by jaytelford »

Head_on_a_Stick wrote:Try

Code: Select all

# apt install haveged
I read about installing that on several websites that I found while Google searching but I was a little bit concerned about installing something that would be generating a whole lot of random stuff in the background. Would haveged cause my server to operate at higher rate of entropy when haveged itself was notin use? Also; having looked, it seems that haveged installs several init scripts and requires changes to configuration files in order to work - potentially opening up security vulnerabilities?

I could be mistaken of course, so feel free to tell me so if I am. I am just concerned about installing something that I hadn't heard of until today.

Cheers
jay

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: How do you achieve enough entropy for GPG key generation

#4 Post by Head_on_a_Stick »

Disclaimer: I have no formal training in IT and I am not an IT professional, nor am I an expert on entropy or gpg keys.

That being said, I would strongly advise purchasing a hardware random number generator if true entropy is required, haveged does not provide a source of truly random numbers.

EDIT: haveged requires no configuration and operates automagically in Debian.
deadbang

Post Reply