LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 07-30-2007, 10:23 AM   #1
misconfiguration
Member
 
Registered: Apr 2007
Location: Indianapolis, Indiana
Distribution: RHEL, Fedora, AIX, HP-UX, FreeBSD, Slackware
Posts: 62

Rep: Reputation: 19
Apache 2.0/SSL issues RHEL4.


Hello everyone;

I'm currently deploying two new Citrix NFUSE web-interface servers, I have recently made my SSL key on the first server, on the second I'm getting an SSL error while trying to create the key.

First Server:
When I try to start HTTPD I get the following,

[root@oailxnfw1 conf]# /sbin/service httpd start
[FAILED]
When I check the error_log here is what I see.
[Sun Jul 29 23:14:04 2007] [error] Unable to configure RSA server private key
[Sun Jul 29 23:14:04 2007] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
~
What does this mean? I've created my key, and self-signed it for testing purposes before I send the cert out to Thawte.

The second Server:
HTTPD fails as well but when I tried to generate my key and csr I get this..
[root@oailxnfw2 httpd]# openssl req -new -key server.key -out server.csr
Error opening Private Key server.key
29150:error:02001002:system library:fopen:No such file or directory:bss_file.c:259:fopen('server.key','r')
29150:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:261:
unable to load Private Key

If anyone can add some sort of insight as to what is going on; I've gotten this far with setting up servlets with mod_jk Apache and Tomcat; I'm pretty close to wrapping this project up, just figures I have such errors.

Thanks again for taking the time to look at my post!
 
Old 07-31-2007, 07:42 AM   #2
satnam888
LQ Newbie
 
Registered: Jul 2007
Location: Coventry, UK
Distribution: Red Hat AS 2.1
Posts: 11

Rep: Reputation: 0
try (substitue XXXXXXXXXXXXX with a password of your choice known to more than just you!)
$ genrsa -des3 -out server.key
Generating RSA private key, 512 bit long modulus
.............++++++++++++
..............++++++++++++
e is 65537 (0x10001)
Enter PEM pass phrase: XXXXXXXXXXXXX
Verifying password - Enter PEM pass phrase: XXXXXXXXXXXXX

This should generate a "server.key" file for you to use in the command that is failing...
 
Old 07-31-2007, 08:32 AM   #3
misconfiguration
Member
 
Registered: Apr 2007
Location: Indianapolis, Indiana
Distribution: RHEL, Fedora, AIX, HP-UX, FreeBSD, Slackware
Posts: 62

Original Poster
Rep: Reputation: 19
That worked a treat, thanks for helping me solve that issue! I'm still having problems with the first machine but now apache won't start on either server. It's pretty strange, I get no verbose messages telling me what's wrong; I see nothing out of the norm in the log files. I've ran into issues before that Apache would fail if there were no log files albeit everything is pointing to the proper log, permissions seem to be set properly as well.

This is a pain in the rear! Thanks again for your help!
 
Old 08-01-2007, 11:20 PM   #4
misconfiguration
Member
 
Registered: Apr 2007
Location: Indianapolis, Indiana
Distribution: RHEL, Fedora, AIX, HP-UX, FreeBSD, Slackware
Posts: 62

Original Poster
Rep: Reputation: 19
I have completely solved my issue, moderators please feel free to close this thread.

/close
 
  


Reply

Tags
apache, rhel4, ssl


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache With Ssl On Rhel4 rajaniyer123 Linux - Server 4 10-22-2006 07:15 PM
PS/2 Keyboard and Mouse Issues with RHEL4 rjcarr Red Hat 3 08-13-2006 10:02 AM
oracle 9i with php,apache, on RHEL4 LinuxLover Linux - Software 1 07-26-2006 01:23 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
ssl issues dannyk1 Linux - Newbie 5 09-24-2004 07:50 PM


All times are GMT -5. The time now is 02:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration