[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13579424#comment-13579424
 ] 

Oleg Kalnichevski commented on HTTPCLIENT-1119:
-----------------------------------------------

@Josef 
This is a long and and unpleasant story. Google is most likely going to add SNI 
to their HttpURLConnection. I have no idea what they are going to do about 
their fork of HttpClient.

@John
It is a combination of both. I do not want to end up having to maintain that 
particular bit of code when all it takes to enable SNI on Java 7 is one line of 
code.

@Will
You are right. SNI extensions are used during SSL handshake before the session 
is fully established. My main points still holds, though. SNI is a TLS level 
aspect. It is a responsibility of individual applications to ensure that they 
operate in an appropriate security context.

Oleg

                
> Server Name Indication (SNI) Support
> ------------------------------------
>
>                 Key: HTTPCLIENT-1119
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1119
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>            Reporter: Gus Power
>              Labels: sni, ssl, tls, vhost
>             Fix For: Future
>
>         Attachments: 
> HTTPCLIENT-1119-support-SNI-on-Java-7-via-setHost-of.patch
>
>
> Provide support for Server Name Indication (SNI) support as per RFC 3546 
> (section 3.1).
> Currently attempting to connect to SNI enabled host 'expectedhost' over SSL 
> using http client results in an SSLException similar to:
> javax.net.ssl.SSLException: hostname in certificate didn't match: 
> <expectedhost> != <defaulthost>
>   at 
> org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:220)
> We use SNI on some of our environments and were trying to use httpclient to 
> automatically test host access and availability.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to