# Ssl\_protocols per server?

**URL:** <https://www.ruby-forum.com/t/ssl-protocols-per-server/232557>\
**Category:** NGINX\
**Created:** [October 16, 2014, 1:02am UTC](https://www.ruby-forum.com/t/ssl-protocols-per-server/232557 "2014-10-16T01:02:00Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![calabriama](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ac8455/32.png) [@calabriama](https://www.ruby-forum.com/u/calabriama)\
**Post date:** [November 7, 2014, 2:39pm UTC](https://www.ruby-forum.com/t/ssl-protocols-per-server/232557/12 "2014-11-07T14:39:35Z")

</div>

Hello!

On Fri, Nov 07, 2014 at 04:23:58AM -0500, saravsars wrote:

> Hello
> 
> > When using SSLv3 to connect, settings of the default server{}  
> > block will be used. This is because there is no SNI in SSLv3, and  
> > hence SSL connection is established in the context of the default  
> > server{} block
> 
> Even with TLSv1.1 and TLSv1.2, default server “ssl\_protocols” is only in  
> effect.

In theory, this depends on the OpenSSL library behaviour and may  
work as long as SNI is used - nginx does it’s best to update all  
SSL options on SNI callback.

With current OpenSSL code it doesn’t seem to work though, as  
protocols allowed are checked before SNI callback happens and not  
rechecked afterwards. So yes, you are right - “ssl\_protocols”  
won’t do anything good in non-default server{} blocks, even if SNI  
is used.

–  
Maxim D.

> **[nginx](http://nginx.org/)**

---

_[View the full topic](https://www.ruby-forum.com/t/ssl-protocols-per-server/232557)._
