Gentoo Archives: gentoo-user

From: "Bryan Ãstergaard" <kloeri@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Apache2 "generating secret" takes a long time
Date: Fri, 16 Jun 2006 17:37:41
Message-Id: 20060616172650.GZ4092@woodpecker.gentoo.org
In Reply to: [gentoo-user] Apache2 "generating secret" takes a long time by Grant
1 On Fri, Jun 16, 2006 at 10:02:09AM -0700, Grant wrote:
2 > Apache2 used to stop and start for me very quickly, but in the last
3 > few days I've noticed it takes a very long time to start. It seems to
4 > be hanging on:
5 >
6 > Digest: generating secret for digest authentication ...
7 >
8 > although it does eventually move on and everything works fine. Does
9 > anyone know why this might have changed? I update all packages on my
10 > system daily so there may have been a package change that did it.
11
12 You're running out of entropy so apache is waiting on /dev/random to
13 gain more entropy.
14
15 There's several different ways to fix this including:
16
17 1. Use a hardware RNG (random number generator), some chipsets provide
18 that but you need to enable support in the kernel.
19 2. emerge apr with USE=urandom. This makes apr use /dev/urandom instead
20 of /dev/random. urandom isn't as strong cryptographically speaking as
21 random but might be good enough for your use.
22 3. Disable digest authentication in the apache configuration.
23 4. Use some entropy gathering daemon like sys-apps/clrngd,
24 media-sound/sound-entropyd or media-video/video-entropyd.
25
26 Hope this helps.
27
28 Regards,
29 Bryan Østergaard
30 --
31 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Apache2 "generating secret" takes a long time Grant <emailgrant@×××××.com>