LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2008, 01:28 AM   #1
nordinyasin
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Rep: Reputation: 0
Angry unable generate server.key using openssl /dev/urandom on Redhat 4 AS


Guys. Need your help to resolve my problems. I'am now trying to register verisign ssl cert. My problems is i was unable to generate server.key on my Redhat 4 AS update 6 64bit. below are the command i type given by verisign

/usr/bin/openssl genrsa -rand /dev/urandom -out /etc/httpd/conf/server.key 1024

nothing was created and the process seems taking too long. I'd to kill the process to stop it. Anyone please help me. When I do Top, the openssl procss running at 90-98% of cpu load.
 
Old 09-09-2008, 02:06 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Should only take a second or two to run. What exactly is your screen telling you when you run it?
 
Old 09-10-2008, 12:55 AM   #3
nordinyasin
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Unhappy

Nothing, no error message or warning. See below :

[root@localhost conf]# /usr/bin/openssl genrsa -rand /dev/urandom -out /etc/httpd/conf/server.key 1024


and my Top result :

Cpu(s): 26.7% us, 72.7% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.7% hi, 0.0% si
Mem: 254732k total, 235532k used, 19200k free, 20992k buffers
Swap: 524280k total, 224k used, 524056k free, 105148k cached

PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
11918 root 25 0 89.2 1:35.48 0.4 3804 1088 896 R openssl
6135 root 15 0 6.7 2:18.63 7.0 40812 17m 5456 S X


I'm using Red Hat Enterprise Linux AS release 4 (Nahant Update 6). I can generate the key using 'openssl genrsa -out file.key' but i'm not sure if the key is strong or not.
 
Old 09-10-2008, 12:58 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Can you create the key in any other location (ie change the -out destination)?

What version openssl do you have?

Last edited by billymayday; 09-10-2008 at 12:59 AM.
 
Old 09-10-2008, 03:19 AM   #5
nordinyasin
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Original Poster
Rep: Reputation: 0
I'd tried to change to other directory but still no outcome. My openssl version is OpenSSL 0.9.7a. Below are the rpm package that were installed.

xmlsec1-openssl-1.2.6-3
openssl-0.9.7a-43.17.el4_6.1
openssl-devel-0.9.7a-43.17.el4_6.1
openssl096b-0.9.6b-22.46
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dd if=/dev/urandom of=/dev/hda2 bs=1M doesn't work Melsync Linux - General 16 05-19-2014 06:36 PM
/dev/urandom not that random NoobieDoobieDo Linux - Security 10 02-26-2007 06:18 AM
/dev/random and /dev/urandom pool(s)? kpeirce Linux - Software 2 01-31-2006 06:54 AM
reading from /dev/urandom in c djgerbavore Programming 5 10-04-2005 12:54 PM
/dev/urandom Moszer Slackware 3 09-09-2003 09:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration