Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-22-2004, 01:27 PM
|
#1
|
Member
Registered: Oct 2003
Posts: 40
Rep:
|
mod_ssl cannot find a private key
Hi,
I just installed apache with mod-ssl and it was working fine, but then I moved everything to /chroot, and now my mod_ssl is reporting an Error: Private Key not found, even though I am pointing at the key in my httpd.conf
Does anybody know what could be a problem?
Nerita
|
|
|
03-22-2004, 01:55 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Is /chroot a directory you made? And what does it say in your httpd.conf file for location?
|
|
|
03-22-2004, 02:20 PM
|
#3
|
Member
Registered: Oct 2003
Posts: 40
Original Poster
Rep:
|
yes, /chroot is a directory, and I moved all apache files there, and all libraries, and the certificate and the private key, and in the httpd.conf the key location is:
SSLCertificateKeyFile /etc/ssl/private/server.key
and the certificate:
SSLCertificateFile /etc/ssl/certs/server.crt
|
|
|
03-22-2004, 04:37 PM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Is appache running in a jail. Are there /chroot/etc/ssl/private/server.key and a /chroot/etc/ssl/certs/server.crt files. I believe that appache is being run with /chroot as the new root. Therefore in the environment that apache is run, /chroot is the new root (/) partition, and files that apache needs to run that are outside this new root partition, need to be located inside the jail.
|
|
|
03-22-2004, 04:41 PM
|
#5
|
Member
Registered: Oct 2003
Posts: 40
Original Poster
Rep:
|
yes, I do have the certificate and the key copied to /chroot/etc/ssl/certs/server.crt and /chroot/etc/ssl/private/server.key and it still doesn't find it...
UPDATE: Yesterday I was playing around with the key, and found out, that as long as I use unencrypted key, it works just fine, but as soon as I encrypt it, it says it cannot find it... Could there be something wrong with my encryption program?
Last edited by ner; 03-23-2004 at 09:44 AM.
|
|
|
03-23-2004, 12:42 PM
|
#6
|
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467
Rep:
|
I suggest you make use of strace to locate the source of the problem. Also take a look at http://www.linux-corner.net/linux/papers/chrooting.html
|
|
|
All times are GMT -5. The time now is 05:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|