logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Conditional use of SSLVerifyClient optional
Author
timo



Joined: 03 Jun 2012
Posts: 45
Location: FI, EU

PostPosted: Mon 17 Feb '14 22:36    Post subject: Conditional use of SSLVerifyClient optional Reply with quote

I have been succesfully using a https-server with client certicates, and it works as expected with Windows clients.
With "SSLVerifyClient optional" in the virtual server configuration I can use client certificate with the browser on my own pc, and if I access pages from a random pc, I use username/password.

Recently I have used also an android tablet to access those ssl-pages and I'd like to skip client certificates on that android browser because they do not seem to work very well.

For that purpose I tried the following in the virtual server config:
Code:
<If "%{HTTP_USER_AGENT} =~ /Windows NT/">
      SSLVerifyClient optional
</If>

The purpose is to skip asking certificates with any browser that is not running on Windows NT.
It works as expected with the android browser on the tablet, but there is a strange side-effect when I use a Windows client as following lines start to appear into the ssl-error.log
Code:
AH02261: Re-negotiation handshake failed: Not accepted by client!?

Any clue what is the problem?
How should I do this?

Server is Apache 2.4.7 32-bit.
Back to top
timo



Joined: 03 Jun 2012
Posts: 45
Location: FI, EU

PostPosted: Tue 18 Feb '14 18:30    Post subject: Re: Conditional use of SSLVerifyClient optional Reply with quote

It seems impossible at least with <If> directive, because it is processed too late.

Is there any other way that would process the condition in proper phase of the handshake?
Back to top


Reply to topic   Topic: Conditional use of SSLVerifyClient optional View previous topic :: View next topic
Post new topic   Forum Index -> Apache