I am trying to set up my httpd on CentOs 5.5 I did some searches and found this link...
http://wiki.centos.org/HowTos/Https
rpm -qa |grep -i httpd
httpd-2.2.3-43.el5.centos.3
I created the ssl files as they described but still it wont start.
ervice httpd start
Starting httpd: [Wed Sep 01 09:25:57 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
[FAILED]
cat ssl_error_log
[Wed Sep 01 09:25:57 2010] [error] Unable to configure RSA server private key
[Wed Sep 01 09:25:57 2010] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
Anyone have this issue?
I gooled it and some older releases said it was a bug but nothing for 5.5
[SOLVED] httpd will not start
Re: httpd will not start
I should mention I am trying to make a private key for my own www test site.
found these commands in a few searches
openssl rsa -noout -modulus -in localhost.key | openssl md5
90b92a7d4f71bd988e009f065abf1c24
openssl x509 -noout -modulus -in localhost.crt | openssl md5
90b92a7d4f71bd988e009f065abf1c24
looks the same to me.
I think I figured it out...
the directions say to edit the /etc/httpd/conf.d/ssl.conf file and add
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
SSLCertificateFile /etc/pki/tls/csers/ca.crt
I changed them to be localhost.key and localhost.crt.
It now works. Well it started Ill have to try the www page later when I can get on my home network.
Can I change the file to be servername.crt or servername.key.
I'll try that and see if it works.
answer: yes i can. I renamed the files to the servername and changed the path and it still works. Life is good.
found these commands in a few searches
openssl rsa -noout -modulus -in localhost.key | openssl md5
90b92a7d4f71bd988e009f065abf1c24
openssl x509 -noout -modulus -in localhost.crt | openssl md5
90b92a7d4f71bd988e009f065abf1c24
looks the same to me.
I think I figured it out...
the directions say to edit the /etc/httpd/conf.d/ssl.conf file and add
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
SSLCertificateFile /etc/pki/tls/csers/ca.crt
I changed them to be localhost.key and localhost.crt.
It now works. Well it started Ill have to try the www page later when I can get on my home network.
Can I change the file to be servername.crt or servername.key.
I'll try that and see if it works.
answer: yes i can. I renamed the files to the servername and changed the path and it still works. Life is good.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
[SOLVED] httpd will not start
Standing by... Please let us know if you have solved your own problem.
Re: httpd will not start
Phil,
SOLVED.
On to virtual hosts and other fun stuff.
CJ
SOLVED.
On to virtual hosts and other fun stuff.
CJ
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: [SOLVED] httpd will not start
OK - marking the thread appropriately for posterity - thanks for reporting back.