OpenSSL: key values mismatch

Problems with the Linux version of XAMPP, questions, comments, and anything related.

OpenSSL: key values mismatch

Postby alex94040 » 26. January 2009 02:24

I'm seeing a very strange issue with Apache through SSL.

I was able to use SSL Apache on Linux just fine with a self-signed certificate. I just got a real one, and I'm not able to make it work. The error message i get is:

SSL Library Error: 185073780 error:0B080074:x
509 certificate routines:X509_check_private_key:key values mismatch

I've already checked the modulus and the public exponent on the key-certificate pair - they match:
# openssl rsa -noout -modulus -in server.key | openssl md5
51e303a740d03836f17fe6a3c0f1288e
# openssl x509 -noout -modulus -in server.crt | openssl md5
51e303a740d03836f17fe6a3c0f1288e

The funniest thing is, these same exact files work on my Windows XAMPP installation (my development environment is Windows, and test server is Linux).

Any ideas?

Thanks in advance!
alex94040
 
Posts: 4
Joined: 14. September 2007 16:13

Re: OpenSSL: key values mismatch

Postby alex94040 » 27. January 2009 17:51

Ignore me... Like a typical idiot, I checked for all complicated issues first, and forgot to check the obvious. I was placing the private key into the wrong path - so the "real" cert was validated against a "test" private key. The issue is solved now.

Lesson for me: check the paths in https Apache conf file carefully...
alex94040
 
Posts: 4
Joined: 14. September 2007 16:13


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 8 guests