Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-10-2010, 08:23 AM   PM User | #1
Nirbhay
New Coder

 
Join Date: May 2009
Location: Bangalore
Posts: 75
Thanks: 5
Thanked 0 Times in 0 Posts
Nirbhay is an unknown quantity at this point
Question Problem in Installing the SSL certificate

Hi All,

I am not sure whether this is the right place to post the query related to SSL certificate installation problem but still hope to get some solution out of here.

The problem is that I have installed apache SSL certificate but after restarting the server it is showing some Error 1. After greping the errors from error_log I found that there were two errors as mentioned below:

1) Unable to configure RSA server private key

2) SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch

Now as is clear from the error that there is some mismatch in the private key and the certificate but this mismatch is far from understanding as I have followed each and every step which is there in the manual.

Can anyone help me out as this is some what urgent and due to the certificate the application is on hold.

Thanks in advance for any help in this regard.
Nirbhay is offline   Reply With Quote
Old 03-10-2010, 04:38 PM   PM User | #2
Silocan
New to the CF scene

 
Join Date: Mar 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Silocan is an unknown quantity at this point
Same problem

I have the same problem.

I regenerated at least 5 time certificate files but the error persist.

i'm very interested by the answer !

Code:
<VirtualHost *:443>
	ServerName www.domain.com
    SSLEngine On
    SSLCertificateFile E:/server/openssl/domain.cert
    #SSLCertificateFile E:/server/openssl/privkey.pem
    SSLCertificateKeyFile E:/server/openssl/domain.key
	DocumentRoot E:/www/
	ErrorLog E:/logs/ssl-domain.com_error.log
	TransferLog E:/logs/ssl-domain.com_access.log
</VirtualHost>
Silocan is offline   Reply With Quote
Old 03-11-2010, 05:34 PM   PM User | #3
120
Regular Coder

 
Join Date: Nov 2009
Location: UK
Posts: 105
Thanks: 6
Thanked 15 Times in 15 Posts
120 has a little shameless behaviour in the past
How did you generate the key/cert? There is a script (CA.pl) which produces a key with a passphrase and it appears in lots of 'how to's' on SSL/TLS. Apache (and Postfix + lots of other SSL/TLS programs) can't cope with a passphrase and you get all kinds of odd errors if you create it this way. If you've produced it with something else or the cli 'openssl req -new -nodes ...' this probably won't be your issue.

Review what you set the OU and CN to in the CERT/REQUEST and make sure it matches 'www.domain.com'. There is a subtle difference between www.domain.com and domain.com and that can break things too.
120 is offline   Reply With Quote
Old 03-17-2010, 06:22 AM   PM User | #4
Nirbhay
New Coder

 
Join Date: May 2009
Location: Bangalore
Posts: 75
Thanks: 5
Thanked 0 Times in 0 Posts
Nirbhay is an unknown quantity at this point
Issue Resolved.

The main problem was that there is one more conf file called SSL.conf and whatever path we use to specify for the key and certificate in the http.conf needs to be set in SSl.conf also. Since the path was not set in the SSL.conf that's why it was giving the specified error.

Still thank you all for your responses.
Nirbhay is offline   Reply With Quote
Old 03-17-2010, 09:39 AM   PM User | #5
james121
Banned

 
Join Date: Jan 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
james121 is an unknown quantity at this point
This error can be caused by an incorrect configuration. Please make sure that your Listen directives match your <VirtualHost> directives. If all else fails, please start afresh, using the default configuration provided by mod_ssl.
james121 is offline   Reply With Quote
Old 03-22-2010, 05:01 PM   PM User | #6
Techmafia.org
New to the CF scene

 
Join Date: Mar 2010
Location: www.techmafia.org
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Techmafia.org can only hope to improve
You trying it on localhost /On your machine?


coz with webservers i dont think

virtual host tag in htaccess will be allowed?
Techmafia.org is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:25 AM.


Advertisement
Log in to turn off these ads.