LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-24-2012, 01:56 PM   #1
nullifi
LQ Newbie
 
Registered: Apr 2011
Posts: 9

Rep: Reputation: 0
Apache 2.2 and RapidSSL Wildcard chain issues


Greetings,

I'm having a terrible time setting up Apache 2.2 to use my RapidSSL wildcard certificate. I'm moving our website from a working Apache installation on Windows, to a CentOS 6.3 VM. Everything is working fine on the Windows box, but when I setup Apache and started moving the site over, SSL wasn't validating properly.

I've specified the relevant server.crt/server.key and downloaded RapidSSL's CA bundle and specified that (I've tried SSLCACertificateFile and SSLCertificateChainFile.)

No matter what I do, my browser (Chrome, Firefox and IE) only receive the server.crt, claiming it's a self signed certificate. When I ran the OpenSSL verify command, it returned saying it was a self signed certificate as well. If I verified the CA bundle, it verified ok, though.

Does anyone have any advice on where I need to look to find out what's going on here?

Relevant virtual hosts declaration:
Code:
        # Site specific SSL stuff
        SSLEngine on
        SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
        SSLProtocol all -SSLv2
        SSLCertificateFile /etc/httpd/conf/server.crt
        SSLCertificateKeyFile /etc/httpd/conf/server.key
        SSLCertificateChainFile /etc/httpd/conf/rapidssl.crt
        #SSLCACertificateFile /etc/httpd/conf/rapidssl.crt
        CustomLog logs/ssl_request.log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
        BrowserMatch ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0
For the CA chain file, I've tried just using what RapidSSL provides (It includes the root GeoTrust cert and RapidSSL's cert), I've tried just using RapidSSL's cert.

Any pointers would be greatly appreciated!
 
Old 09-25-2012, 08:44 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Most likely, apache is presenting the first certificate configured for an name virtual host, the one listed in the <VirtualHost _default_:443> stanza. Using a browser, you can see exactly which certificate is being presented to it. Then, compare it to both /etc/httpd/conf/server.crt and the certificate mentioned in the _default_ stanza above. Use the "openssl x509" to examine your server certs, for example:
Code:
openssl x509  -in /etc/httpd/conf/server.crt -noout -text
If this is the problem, you can alter the SSL setup for the _default_ ssl virtual host.

You may also want to read about SNI.

Last edited by Berhanie; 09-25-2012 at 09:25 AM.
 
Old 10-01-2012, 12:43 PM   #3
nullifi
LQ Newbie
 
Registered: Apr 2011
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks, it was indeed the wrong certificate. It looked right (It was a wildcard for the domain) but when I compared the fingerprints they were different. I re-copied the file and it worked fine after that. Not quite sure what I did wrong.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
*.domain.com Wildcard SSL issues (Godaddy WHM/Cpanel) chetanmadaan Linux - Software 1 06-18-2010 10:27 PM
Single wildcard certificate for apache httpd server and tomcat udaykiran Linux - Server 3 02-19-2010 09:50 AM
Apache with wildcard SSL and virtual host crispytwo Linux - Server 2 04-28-2009 08:56 PM
Apache - wildcard ssl dedicated ipaddress for each subdomain? sysconfig Linux - Server 2 04-02-2007 01:04 PM
Subdomais Apache *wildcard CNAME - VirtualDocumentRoot - config file Rai Paul Linux - General 4 06-01-2003 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration