- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- random generator
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 09:43 AM
06-15-2004 09:43 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 09:46 AM
06-15-2004 09:46 AM
Re: random generator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 09:49 AM
06-15-2004 09:49 AM
Re: random generator
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=KRNG11I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 09:50 AM
06-15-2004 09:50 AM
Re: random generator
Yep. It's already there with 11i. You can get it from
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=KRNG11I
It needs a reboot of the system.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 09:56 AM
06-15-2004 09:56 AM
Re: random generator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 10:14 AM
06-15-2004 10:14 AM
Re: random generator
Look at PRNGD. I by mistake posted the response in one of bookmarked threads :-).
http://hpux.cs.utah.edu/hppd/hpux/Maths/Misc/prngd-0.9.26/
This doesn't have a device file associated with it but can feed the random data to programs like Openssl etc.,
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 10:17 AM
06-15-2004 10:17 AM
Re: random generator
checking whether OpenSSL's PRNG is internally seeded...
any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 10:20 AM
06-15-2004 10:20 AM
Re: random generator
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 10:28 AM
06-15-2004 10:28 AM
Re: random generator
Try this if it works. I did it to generate ssl self-signed certificates when it was complaining about PRNG seeding.
Copy and compress any file like swagent.log as say randfile.Z and run the command
openssl genrsa -des3 -rand randfile.Z -out my.key 1024
This should create a file called .rnd in the home directory.
That should help ssl to seed.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 10:37 AM
06-15-2004 10:37 AM
Re: random generator
Generating RSA private key, 1024 bit long modulus
2134:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:503:You need to read the OpenSSL FAQ, http://www.openssl.org/support/faq.html
2134:error:04069003:rsa routines:RSA_generate_key:BN lib:rsa_gen.c:182:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 10:44 AM
06-15-2004 10:44 AM
Re: random generator
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 10:55 AM
06-15-2004 10:55 AM
Re: random generator
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 02:19 AM
06-16-2004 02:19 AM
Re: random generator
still having problems with ssl seeding.
how large should the random.Z be? and
where should the key file land up so the ssl know where to find it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 02:25 AM
06-16-2004 02:25 AM
Re: random generator
#cp /var/adm/sw/swagent.log /tmp/randfile
#compress /tmp/randfile
#/wherever_openssl_is/bin/openssl -des3 -rand /tmp/randfile.Z -out my.key 1024
See if that works.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 02:45 AM
06-16-2004 02:45 AM
Re: random generator
openssl:Error: '-des3' is an invalid command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 02:50 AM
06-16-2004 02:50 AM
Re: random generator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 03:12 AM
06-16-2004 03:12 AM
Re: random generator
checking OpenSSL library version... 90704f (OpenSSL 0.9.7d 17 Mar 2004)
checking whether OpenSSL's headers match the library... yes
checking whether OpenSSL's PRNG is internally seeded...
this is where it stops, no luck with all the work arounds in place.
I compiled EGD random number generator - this is in place and running.
was able to generate my.key file with openssl
still compiling ssh tries to see if ssl can seed itself and get stuck
# tusc 10828
( Attached to process 10828 ("./conftest") [32-bit] )
In user-mode ................................................................ [running]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 03:43 AM
06-16-2004 03:43 AM
Re: random generator
With the following options, I could be able to run 'configure' successfully.
./configure --prefix=/opt/openssh2 --with-zlib=/opt/zlib --with-ssl-dir=/opt/openssl --with-pam --with-tcp-wrappers=../tcp_wrappers_7.6 --with-privsep-path=/opt/openssh2/var/empty --with-pid-dir=/opt/openssh2/var
It basically compiles a small C program and runs it to find the capability of openssl seeding.
You should be able to find where it is hanging once you put the 'set -x' flag in the configure script.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 04:27 AM
06-16-2004 04:27 AM
Re: random generator
sigsetreturn(0x7f7d0d4e, 0x6211988, 1392) ................................... = 0
getpid() .................................................................... = 7677 (7676)
getpid() .................................................................... = 7677 (7676)
open("/dev/urandom", O_RDONLY|O_NONBLOCK|O_NOCTTY, 02277) ................... ERR#2 ENOENT
open("/dev/random", O_RDONLY|O_NONBLOCK|O_NOCTTY, 0134000) .................. ERR#2 ENOENT
open("/dev/srandom", O_RDONLY|O_NONBLOCK|O_NOCTTY, 0134000) ................. ERR#2 ENOENT
socket2(1, 1, 0) ............................................................ = 3
connect(3, 0x7f7f0cf0, 19) .................................................. = 0
write(3, "01 ", 2) ......................................................... = 2
read(3, " ", 1) ............................................................ = 1
read(3, "ceQ N ) 7 a4caceb019\f< b303d8 ".., 32) ........................... = 32
close(3) .................................................................... = 0
In user-mode ................................................................ [running]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 04:58 AM
06-16-2004 04:58 AM
Re: random generator
works furrrrfect :)
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 04:59 AM
06-16-2004 04:59 AM
Re: random generator
works purrrrfect :)
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 05:52 AM
06-16-2004 05:52 AM
Re: random generator
I wonder if you could be able to successfully compile openssl. It works just fine for me on 11.0 box without any random generators. It says no and configures it. Another idea is to supply --with-rand-helper as the configure option.
You could try replacing the entire C-program testing area (lines 9624 - 9667)with the two lines, because we know that the ssl is not internally seeded for 11.0.
echo "$as_me:9659: result: no" >&5
USE_RAND_HELPER=yes
Take a copy of your configure script before you do so.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 06:49 AM
06-16-2004 06:49 AM
Re: random generator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 06:51 AM
06-16-2004 06:51 AM
Re: random generator
I am going to try the c file editing after i test the device file from freshmeat.
keep you posted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 07:26 AM
06-16-2004 07:26 AM
SolutionThe link I posted is for 11.00 only, and as said, works as a charm
You asked for 11.00 and 10.20 too. I never was able to find this for 10.20, but on 10.20 I use egd.pl instead. Works OK, but needs restarting after reboot, whereas the 11.00 solution is builtin module.
Enjoy, Have FUN! H.Merijn