From 0456c36d03adcdc93893395b91c789c02b1b4917 Mon Sep 17 00:00:00 2001 From: ayumin Date: Mon, 30 Apr 2012 00:11:44 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ ext/openssl/lib/openssl/ssl.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 97dc3d21f3..a271a0547c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Apr 30 09:02:15 2012 Ayumu AIZAWA + + * ext/openssl/lib/openssl/ssl.rb: add hostname to "hostname does not + match server cert." error. patched by Wes Morgan via Github. + https://github.com/ruby/ruby/pull/122 + Mon Apr 30 04:43:53 2012 Aaron Patterson * ext/psych/lib/psych/json/yaml_events.rb: implicit styles should not 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