$B$U$H!“(BSSL $B$G(B name based vitual $B$r$d$kOC(B (SNI - RFC 3546)
$B$O$I$&$J$C$?$s$@$C$1!”(B
$B$H;W$C$FC5$7$?$i!“0J2<$r8+$D$1$?$N$G!”(Bnet/http $B$K$bBP=h$r(B
$BF~$l$k$N$O$I$&$G$9$+$M!#(B
ssl - OpenSSL Server Name Indication support in Ruby - Stack Overflow
$BBP=h$rF~$l$k$H!"0J2<$,%(%i!<$K$J$i$J$/$J$j$^$9!#(B
ruby -ropen-uri -e
‘URI(“https://gmail.com/.well-known/host-meta”).read’
% svn diff --diff-cmd diff -x -u lib/net/http.rb
Index: lib/net/http.rb
— lib/net/http.rb (revision 30734)
+++ lib/net/http.rb (working copy)
@@ -780,6 +780,7 @@
@socket.writeline ‘’
HTTPResponse.read_new(@socket).value
end
-
s.hostname = @address timeout(@open_timeout) { s.connect } if @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE s.post_connection_check(@address)