[
https://issues.apache.org/jira/browse/HTTPCLIENT-1784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15572167#comment-15572167
]
Bruce Adams commented on HTTPCLIENT-1784:
-----------------------------------------
Oleg –
I believe that the correct answer for IBM Java is:
{{SSLContext.getInstance("SSL_TLSv2")}}
I get this from reading these two pages:
http://www.ibm.com/support/knowledgecenter/SSYKE2_8.0.0/com.ibm.java.security.component.80.doc/security-component/jsse2Docs/protocols.html
https://www-304.ibm.com/support/docview.wss?uid=swg21688165
The first page, in the Knowledge Center, says that SSL_TLSv2 _Enables all SSL
v3.0 and TLS v1.0, v1.1 and v1.2 protocols._
The second page, describing POODLE fixes (more than a year old), says that
SSL_TLSv2 only enables _TLS V1.0, V1.1, and V1.2 protocols_ in recent releases
of IBM Java.
I haven't managed to think of an effective way to test this.
– Bruce
> TLS Client Hello is always TLS 1.0 (0x0301) under IBM Java
> ----------------------------------------------------------
>
> Key: HTTPCLIENT-1784
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1784
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (classic)
> Affects Versions: 4.5.2
> Environment: IBM Java, many versions including latest Java 8.
> Reporter: Bruce Adams
> Labels: tls
> Attachments: ApacheGet.java, FluentGet.java, Get.java
>
>
> A simple client program fails to connect to any site that _requires_ TLSv1.2.
> The attached {{ApacheGet.java}} program, run with
> org.apache.httpcomponents/httpclient version 4.5.2 and given the URL
> https://www.sandbox.paypal.com fails with:
> bq. javax.net.ssl.SSLHandshakeException: Received fatal alert:
> handshake_failure
> when run on the latest released IBM Java, {{pxa6480sr3fp12-20160919_01(SR3
> FP12)}} (available in a Docker image {{ibmcom/ibmjava:8-sdk}}). The same run
> is successful on a recent Oracle Java 8.
> The similar, simple, {{Get.java}} program that uses the built-in Java
> libraries instead of Apache HttpClient works fine on both IBM Java and Oracle
> Java.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]