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

Only use SSLv2Hello for client-mode #486

Merged
merged 2 commits into from
Jan 9, 2016

Conversation

dwd
Copy link
Member

@dwd dwd commented Jan 5, 2016

Sending an SSLv2 Client Hello message never makes sense, since we don't support the SSLv2 protocol at all. Receiving one, however, is useful to support a handful of legacy servers, typically those using older Java and/or OpenSSL's SSLv23 method.

This PR therefore strips out SSLv2Hello support from client-mode TLS sessions if configured.

@guusdk
Copy link
Member

guusdk commented Jan 5, 2016

Some minor tweaks:

  • It would be best to preserve the order of the set (not use HashSet)
  • To make sure that we're not missing some default / edge case, check the actual content of the enabled protocols (not the content of the configuration) for the existence of SSLv2Hello

I think this alternative would do the trick:

final Set<String> protocols = new LinkedHashSet<>( Arrays.asList( sslEngine.getEnabledProtocols() ) );
protocols.remove( "SSLv2Hello" );
sslEngine.setEnabledProtocols( protocols.toArray( new String[ protocols.size() ] ) );

Lastly, we should also update the text in connection-settings-advanced.jsp (it should no longer mention the outgoing SSLv2Hello option).

@guusdk
Copy link
Member

guusdk commented Jan 8, 2016

+1

1 similar comment
@tevans
Copy link
Member

tevans commented Jan 9, 2016

+1

tevans added a commit that referenced this pull request Jan 9, 2016
Only use SSLv2Hello for client-mode
@tevans tevans merged commit a742703 into igniterealtime:master Jan 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants