Huh. So I guess Apache doc is not up to date with what modern browsers are doing:
Quote:
How can I authenticate my clients for a particular URL based on certificates but still allow arbitrary clients to access the remaining parts of the server? [L]
For this we again use the per-directory reconfiguration feature of mod_ssl:
...
SSLVerifyClient none
SSLCACertificateFile conf/ssl.crt/ca.crt
<Location /secure/area>
SSLVerifyClient require
SSLVerifyDepth 1
</Location>
...
So I have a somewhat usable work-around, but I'd be interested if any Apache gurus have a better one:
Code:
SSLVerifyClient optional
SSLVerifyDepth 10
<Location /foo/*>
SSLRequire ( %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
and %{SSL_CLIENT_VERIFY} eq "SUCCESS" )
</Location>
This works, but the annoying thing is that browsers get a pop-up requesting authentication for all parts of the site. The dialog can be dismissed, but I wish there was a way to prevent it from displaying.