Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to create a prng_seed file? Post 25150 by penguin-friend on Thursday 25th of July 2002 12:02:42 PM
Old 07-25-2002
How to create a prng_seed file?

Hi all,

I've just installed egd ssh zlib and ssl on a server:
$ uname -a
SunOS su214tos 5.8 Generic_108528-11 sun4d sparc SUNW,SPARCserver-1000

When i want to execute the /usr/local/sbin/sshd, i get the following:
PRNG is not seeded...

How do i seed the PRNG?

Thanx

Jason
penguin-friend
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

SSH and file prng_seed

I need some help... What use is there to the file prng_seed under Solaris? (2 Replies)
Discussion started by: penguin-friend
2 Replies

2. UNIX for Advanced & Expert Users

file //.ssh/prng_seed is not a regular file

Hi all... On all of my solaris servers (5.5.1,5.6,5.7,5.8 and one 5.9) i get this error message: sshd: fatal: PRNG seedfile //.ssh/prng_seed is not a regular file... Knowing that i have no way to recompile correctly the sources, how can i fix this problem? I'm using openssh, openssl, and... (3 Replies)
Discussion started by: penguin-friend
3 Replies

3. Shell Programming and Scripting

Read a file and search a value in another file create third file using AWK

Hi, I have two files with the format shown below. I need to read first field(value before comma) from file 1 and search for a record in file 2 that has the same value in the field "KEY=" and write the complete record of file 2 with corresponding field 2 of the first file in to result file. ... (11 Replies)
Discussion started by: King Kalyan
11 Replies

4. Shell Programming and Scripting

Newbie.. Find if a file exists and open, if not create the desired file..

Hey all, I'm brand new to script writing, I'm wanting to make a script that will ask for a file and then retrieve that file if it exists, and if it doesn't exist, create the file with the desired name, and I'm completely stuck.. so far.. #! bin/bash echo "Enter desired file" read "$file" if ... (5 Replies)
Discussion started by: Byrang
5 Replies

5. Shell Programming and Scripting

Create shell script to extract unique information from one file to a new file.

Hi to all, I got this content/pattern from file http.log.20110808.gz mail1 httpd: Account Notice: close igchung@abc.com 2011/8/7 7:37:36 0:00:03 0 0 1 mail1 httpd: Account Information: login sastria9@abc.com proxy sid=gFp4DLm5HnU mail1 httpd: Account Notice: close sastria9@abc.com... (16 Replies)
Discussion started by: Mr_47
16 Replies

6. Shell Programming and Scripting

How to create a log file that simply shows the name of a file and what directory it was moved to.

Newbie...Thank you for your help. I am creating my first script that simply generates subdirectories to organize video, music, and text files within those subdirectories from my current working directory. PROBLEM: I am trying to write a log file that contains, for each file, the original file... (0 Replies)
Discussion started by: BartleDoo
0 Replies

7. Shell Programming and Scripting

Is it possible to create 10GB file in Linux and transferring the file to other remote server

Hi folks, Is it possible to create 10GB file in linux and transferring the file to other remote server? Regards, J (3 Replies)
Discussion started by: scriptscript
3 Replies

8. Shell Programming and Scripting

Splitting a text file into smaller files with awk, how to create a different name for each new file

Hello, I have some large text files that look like, putrescine Mrv1583 01041713302D 6 5 0 0 0 0 999 V2000 2.0928 -0.2063 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0 5.6650 0.2063 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0 3.5217 ... (3 Replies)
Discussion started by: LMHmedchem
3 Replies

9. Shell Programming and Scripting

Create a text file and a pdf file from Linux command results.

Hello. The task : Using multiple commands like : gdisk -l $SOME_DISK >> $SOME_FILEI generate some text file. For readiness I must insert page break. When the program is finished I want to convert the final text file to a pdf file. When finished, I got two files : One text file and One pdf... (1 Reply)
Discussion started by: jcdole
1 Replies
RAND_egd(3)							      OpenSSL							       RAND_egd(3)

NAME
RAND_egd - query entropy gathering daemon LIBRARY
libcrypto, -lcrypto SYNOPSIS
#include <openssl/rand.h> int RAND_egd(const char *path); int RAND_egd_bytes(const char *path, int bytes); int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes); DESCRIPTION
RAND_egd() queries the entropy gathering daemon EGD on socket path. It queries 255 bytes and uses RAND_add(3) to seed the OpenSSL built-in PRNG. RAND_egd(path) is a wrapper for RAND_egd_bytes(path, 255); RAND_egd_bytes() queries the entropy gathering daemon EGD on socket path. It queries bytes bytes and uses RAND_add(3) to seed the OpenSSL built-in PRNG. This function is more flexible than RAND_egd(). When only one secret key must be generated, it is not necessary to request the full amount 255 bytes from the EGD socket. This can be advantageous, since the amount of entropy that can be retrieved from EGD over time is limited. RAND_query_egd_bytes() performs the actual query of the EGD daemon on socket path. If buf is given, bytes bytes are queried and written into buf. If buf is NULL, bytes bytes are queried and used to seed the OpenSSL built-in PRNG using RAND_add(3). NOTES
On systems without /dev/*random devices providing entropy from the kernel, the EGD entropy gathering daemon can be used to collect entropy. It provides a socket interface through which entropy can be gathered in chunks up to 255 bytes. Several chunks can be queried during one connection. EGD is available from http://www.lothar.com/tech/crypto/ ("perl Makefile.PL; make; make install" to install). It is run as egd path, where path is an absolute path designating a socket. When RAND_egd() is called with that path as an argument, it tries to read random bytes that EGD has collected. RAND_egd() retrieves entropy from the daemon using the daemon's "non-blocking read" command which shall be answered immediately by the daemon without waiting for additional entropy to be collected. The write and read socket operations in the communication are blocking. Alternatively, the EGD-interface compatible daemon PRNGD can be used. It is available from http://prngd.sourceforge.net/ . PRNGD does employ an internal PRNG itself and can therefore never run out of entropy. OpenSSL automatically queries EGD when entropy is requested via RAND_bytes() or the status is checked via RAND_status() for the first time, if the socket is located at /var/run/egd-pool, /dev/egd-pool or /etc/egd-pool. RETURN VALUE
RAND_egd() and RAND_egd_bytes() return the number of bytes read from the daemon on success, and -1 if the connection failed or the daemon did not return enough data to fully seed the PRNG. RAND_query_egd_bytes() returns the number of bytes read from the daemon on success, and -1 if the connection failed. The PRNG state is not considered. SEE ALSO
openssl_rand(3), RAND_add(3), RAND_cleanup(3) HISTORY
RAND_egd() is available since OpenSSL 0.9.5. RAND_egd_bytes() is available since OpenSSL 0.9.6. RAND_query_egd_bytes() is available since OpenSSL 0.9.7. The automatic query of /var/run/egd-pool et al was added in OpenSSL 0.9.7. 1.0.1i 2009-07-20 RAND_egd(3)
All times are GMT -4. The time now is 11:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy