Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 683D3200BFA for ; Thu, 12 Jan 2017 11:15:13 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 638C5160B40; Thu, 12 Jan 2017 10:15:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A2550160B2D for ; Thu, 12 Jan 2017 11:15:12 +0100 (CET) Received: (qmail 94757 invoked by uid 500); 12 Jan 2017 10:15:11 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 94746 invoked by uid 99); 12 Jan 2017 10:15:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2017 10:15:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A245A2C029A for ; Thu, 12 Jan 2017 10:15:11 +0000 (UTC) Date: Thu, 12 Jan 2017 10:15:11 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HTTPCLIENT-1792) Improve the error message when hostname verification fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 12 Jan 2017 10:15:13 -0000 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCLIENT-1792. ------------------------------------------- Resolution: Fixed Fix Version/s: 5.0 Alpha2 Fixed in SVN trunk and 4.5.x branch. Please re-test and close. Oleg > Improve the error message when hostname verification fails > ---------------------------------------------------------- > > Key: HTTPCLIENT-1792 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1792 > Project: HttpComponents HttpClient > Issue Type: Improvement > Components: HttpClient (classic) > Affects Versions: 4.4.1, 4.5.2 > Reporter: Jens Borgland > Priority: Minor > Fix For: 4.5.3, 5.0 Alpha2 > > > When hostname verification fails {{org.apache.http.conn.ssl.SSLConnectionSocketFactory}} will throw a {{SSLPeerUnverifiedException}} with a message like this: > {noformat} > Host name 'FOO' does not match the certificate subject provided by the peer (CN=BAR) > {noformat} > *Expected:* > Including the _subject alternative names_, rather than the CN, in the message would be a lot more helpful when troubleshooting (and probably more correct since the use of CN matching is deprecated through RFC 2818). -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org