SSL returned when requesting TLS Context
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-7 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
OpenJDK-7 provides a SSL context when requesting a TLS context.
According to the JavaDocs, 'SSLContext.
Returns a SSLContext object that implements the specified secure socket protocol.
And the docs on 'getEnabledProt
Returns the names of the protocol versions which are currently enabled for use on this connection.
**********
$ javac ProtocolTest.java && java ProtocolTest
Supported Protocols: 5
SSLv2Hello
SSLv3
TLSv1
TLSv1.1
TLSv1.2
Enabled Protocols: 2
SSLv3
TLSv1
**********
Ubuntu 14.04 (x64), fully patched:
$ uname -a
Linux ubuntu 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
**********
$ java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.6) (7u51-2.
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
**********
SSLContext context = SSLContext.
context.
SSLSocketFactory factory = (SSLSocketFacto
SSLSocket socket = (SSLSocket)
String[] protocols = socket.
System.
for(int i = 0; i < protocols.length; i++)
{
System.
}
protocols = socket.
System.
for(int i = 0; i < protocols.length; i++)
{
System.
}