Project

General

Profile

Actions

Misc #12740

closed

Document OpenSSL::SSL::SSLSocket hostname attribute for SNI (Server Name Indication) Support

Added by emilys (Emily Stolfo) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
[ruby-core:77220]

Description

I've been adding SNI support to the MongoDB Ruby driver and I've had to use the hostname attribute of a SSLSocket. It's not in the documentation but I think it should be so that others can find out how to added SNI support as well.

Here is how I'm using the hostname attribute, for your reference: https://github.com/mongodb/mongo-ruby-driver/pull/815/files

Updated by rhenium (Kazuki Yamaguchi) over 7 years ago

  • Status changed from Open to Closed

Thank you for reporting! There are already RDoc comments but it looks like RDoc couldn't find them.

Now they show up in the generated HTML:

OpenSSL::SSL::SSLContext#servername_cb: http://ruby.github.io/openssl/OpenSSL/SSL/SSLContext.html#attribute-i-servername_cb
OpenSSL::SSL::SSLSocket#hostname=: http://ruby.github.io/openssl/OpenSSL/SSL/SSLSocket.html#method-i-hostname-3D

Actions

Also available in: Atom PDF

Like0
Like0