Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use protocol TLSv1.2 #18949

Closed
glassfishrobot opened this issue Jul 26, 2012 · 9 comments
Closed

Unable to use protocol TLSv1.2 #18949

glassfishrobot opened this issue Jul 26, 2012 · 9 comments

Comments

@glassfishrobot
Copy link

We used https with GF-2.1 and Java6 and it worked fine, until we got TLS-1.2 clients. We upgraded to JDK 7, which supports TLSv1.2, and this solved our problem.
However, after an upgrade to GF-3.1.2, this does not work anymore.
I have tried to set https.protocols=TLSv1.2 in JMV properties, but this does not work.

Admin console only has a boolean parameter "Enable TLS" which is quite rough. It would be nice to define protocols like cipher suites, by cherry picking.

We managed to use TLSv1.2 (as a proof of concept) in a small test program inspired from grizzly-embed-samples v1.9.50. Source code sample :

final GrizzlyWebServer ws = new GrizzlyWebServer( port, path, true );
ws.setSSLConfig( getSSLConfig() ); // nothing important in there : only keystore & truststore

// THIS is required (at least the last protocol actually) :
( ( SSLSelectorThread ) ws.getSelectorThread() ).setEnabledProtocols( new String[]

{ "TLSv1", "TLSv1.1", "TLSv1.2" }

);

Tried also to patch class com.sun.enterprise.web.connector.coyote.PECoyoteConnector.configureSSL() in web-glue.jar (by replacing "TLSv1" with "TLSv1, TLSv1.1, TLSv1.2", but this does seem to work either.

Environment

Linux 32 bits / JDK 7u3

Affected Versions

[3.1.2]

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Was assigned to oleksiys

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by momaison

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
oleksiys said:
pls. try this patch. (for GF 3.1.2.2).
copy the attached file to gfv3/glassfish/modules folder.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
File: grizzly-config.jar
Attached By: oleksiys

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
oleksiys said:
grizzly issue
http://java.net/jira/browse/GRIZZLY-1306

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
oleksiys said:
fixed in GF 4.0

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Marked as fixed on Tuesday, March 12th 2013, 1:25:47 pm

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA GLASSFISH-18949

@glassfishrobot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants