hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPCLIENT-1698) Hostname verification fails when using URL with literal IPv6 address
Date Sat, 28 Nov 2015 13:27:11 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Oleg Kalnichevski resolved HTTPCLIENT-1698.
    Resolution: Fixed

Fixed in SVN trunk and 4.5.x branch. Please re-test.


> Hostname verification fails when using URL with literal IPv6 address
> --------------------------------------------------------------------
>                 Key: HTTPCLIENT-1698
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1698
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpConn
>    Affects Versions: 4.4.1
>            Reporter: Jens Borgland
>            Priority: Minor
> Repro steps:
> # Set up an HTTPS server with proper certificates (with the IPv6 address as a subject
alternative name)
> # Set up HttpClient with the DefaultHostnameVerifier
> # Try to contact the server using the IPv6 address (in square brackets in accordance
with RFC 2732) in the URL, something like: https://[2001:db8::2:1]:443/example
> Result: 
> An SSLPeerUnverifiedException (note the square brackets):
> {noformat} 
> Host name '[2001:db8::2:1]' does not match the certificate subject provided by the peer
> {noformat} 
> *Expected*: 
> The hostname verification to work ({{org.apache.http.conn.ssl.SSLConnectionSocketFactory}}
should feed just the IP address, without square brackets, to the HostnameVerifier).

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message