Doubt about ssl_verify_client


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
{ … }”
. And if I put the directives at the server level, then every
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
you reach the mentioned URI.

I’d appreciate any help on this.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs