diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/openssl/lib/openssl/ssl.rb | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Mon Apr 30 09:02:15 2012 Ayumu AIZAWA <ayumu.aizawa@gmail.com> + + * 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 <aaron@tenderlovemaking.com> * 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 |