From 0456c36d03adcdc93893395b91c789c02b1b4917 Mon Sep 17 00:00:00 2001 From: ayumin Date: Mon, 30 Apr 2012 00:11:44 +0000 Subject: * ext/openssl/lib/openssl/ssl.rb: add hostname to "hostname does not match server cert." error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/lib/openssl/ssl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/openssl/lib/openssl/ssl.rb b/ext/openssl/lib/openssl/ssl.rb index b9ad838524..70b27f4416 100644 --- a/ext/openssl/lib/openssl/ssl.rb +++ b/ext/openssl/lib/openssl/ssl.rb @@ -126,7 +126,7 @@ module OpenSSL def post_connection_check(hostname) unless OpenSSL::SSL.verify_certificate_identity(peer_cert, hostname) - raise SSLError, "hostname does not match the server certificate" + raise SSLError, "hostname \"#{hostname}\" does not match the server certificate" end return true end -- cgit v1.2.3