class OpenSSL::SSL::SSLSocket
def post_connection_check(hostname)
def post_connection_check(hostname) unless OpenSSL::SSL.verify_certificate_identity(peer_cert, hostname) raise SSLError, "hostname was not match with the server certificate" end return true end
def post_connection_check(hostname)
def post_connection_check(hostname) unless OpenSSL::SSL.verify_certificate_identity(peer_cert, hostname) raise SSLError, "hostname does not match the server certificate" end return true end
def session
def session SSL::Session.new(self) rescue SSL::Session::SessionError nil end
def session
def session SSL::Session.new(self) rescue SSL::Session::SessionError nil end