Skip to content

Commit

Permalink
HTTPCLIENT-996: An emergency fix for javax.net.ssl.SSLException: "hos…
Browse files Browse the repository at this point in the history
…tname in certificate didn't match ..." error

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.0.x@997083 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
ok2c committed Sep 14, 2010
1 parent 21f6937 commit 1dacd9d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions RELEASE_NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
Release 4.0.3
-------------------

This is an emergency release fixing a critical regression in SSL connection
management. 4.0.2 release included improved support for multihome hosts,
which produced a side effect on the default SSL hostname verification
algorithm. An attempt to establish an SSL connection fails with
javax.net.ssl.SSLException: "hostname in certificate didn't match ..." error.

Changelog
-------------------

* [HTTPCLIENT-996] An emergency fix for javax.net.ssl.SSLException:
"hostname in certificate didn't match ..." error.
Contributed by Oleg Kalnichevski <olegk at apache.org>

Release 4.0.2
-------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void openConnection(OperatedClientConnection conn,
if (layeredsf != null) {
connsock = layeredsf.createSocket(
sock,
address.getHostAddress(),
target.getHostName(),
schm.resolvePort(target.getPort()),
true);
if (sock != connsock) {
Expand Down

0 comments on commit 1dacd9d

Please sign in to comment.