Doubt about ssl_verify_client

Ariel arieldiazbermejo at gmail.com
Thu Sep 30 03:02:25 MSD 2010


Hi,

I'm writing a Rails app and using nginx+passenger to serve it and I'm
implementing "Client Certificate Authentication". For that purpose I need to
setup the server using the directive *"ssl_verify_client"* and *
"ssl_client_certificate"*. The problem is that I only need this
configuration to happen on some specific URI (like "/client_auth") and I
don't know how to do that.
Seems that I can't put the directives enclosed by a *"location /client_auth
{ ... }"*. And if I put the directives at the server level, then every HTTPS
request will look for the client cert (the browser prompts for it) and I
don't want to bother users with that because this feature is only needed if
you reach the mentioned URI.

I'd appreciate any help on this.

Thanks,

-- 
Ariel Diaz Bermejo
http://www.linkedin.com/in/adiazbermejo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100929/052501e6/attachment.html>


More information about the nginx mailing list