Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 157062 - Apache:mod_ssl:Error: Private key not found
Summary: Apache:mod_ssl:Error: Private key not found
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: mod_ssl
Version: 4.0
Hardware: i386
OS: Linux
Target Milestone: ---
: ---
Assignee: Joe Orton
QA Contact:
: 157068 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2005-05-06 15:49 UTC by Bill Blackford
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-05-07 18:35:21 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Bill Blackford 2005-05-06 15:49:31 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

Description of problem:
Same error as Bug 144274.
After generating a new private key and new testcert, restarting httpd returns and error stating that the private key cannot be found.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. rm /etc/httpd/conf/ssl.key/server.key
2. rm /etc/httpd/conf/ssl.crt/server.crt
3. cd /usr/share/ssl/certs
4. make genkey
5. make testcert
6. /sbin/service httpd restart
7. Observe error.


Actual Results:  Starting httpd: Apache/2.0.52 mod_ssl/2.0.52 (Pass
Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.

Server (RSA)
Enter pass phrase:Apache:mod_ssl:Error: Private key not found.

Expected Results:  Normal behavior. Apache should start properly and serve https following the pass phase input. This has been verified with rhel3, update 4 and FC1.

Additional info:

This error renders the use of https insecure if the only way it works is via the temporary key and cert.

Comment 1 Joe Orton 2005-05-06 15:56:35 UTC
This is a problem with the password input; httpd is not given access to the
terminal to be able to prompt for the password. Use:

# setsebool httpd_tty_comm=1

to enable, or

# setsebool -P httpd_tty_comm=1

to enable permanently.

Comment 4 Joe Orton 2005-05-09 14:59:33 UTC
*** Bug 157068 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.