# Doubt about ssl\_verify\_client

**URL:** <https://www.ruby-forum.com/t/doubt-about-ssl-verify-client/195780>\
**Category:** NGINX\
**Created:** [September 30, 2010, 1:03am UTC](https://www.ruby-forum.com/t/doubt-about-ssl-verify-client/195780 "2010-09-30T01:03:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ariel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ccd318/32.png) [@ariel](https://www.ruby-forum.com/u/ariel)\
**Post date:** [September 30, 2010, 1:03am UTC](https://www.ruby-forum.com/t/doubt-about-ssl-verify-client/195780/1 "2010-09-30T01:03:36Z")

</div>

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,
