Actions
Misc #12740
closedDocument OpenSSL::SSL::SSLSocket hostname attribute for SNI (Server Name Indication) Support
Status:
Closed
Assignee:
-
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
Like0
Like0