Fix #708 SslContextFactory: newSslServerSocket/newSslSocket are not customized

This commit is contained in:
Greg Wilkins 2016-07-14 15:17:42 +10:00
parent 34a9e43c50
commit 35a64828fb
1 changed files with 6 additions and 5 deletions

View File

@ -399,15 +399,16 @@ public class SslContextFactory extends AbstractLifeCycle
}
// select the protocols and ciphers
SSLEngine sslEngine=context.createSSLEngine();
selectCipherSuites(sslEngine.getEnabledCipherSuites(),sslEngine.getSupportedCipherSuites());
selectProtocols(sslEngine.getEnabledProtocols(),sslEngine.getSupportedProtocols());
SSLParameters enabled=context.getDefaultSSLParameters();
SSLParameters supported=context.getSupportedSSLParameters();
selectCipherSuites(enabled.getCipherSuites(),supported.getCipherSuites());
selectProtocols(enabled.getProtocols(),enabled.getProtocols());
_factory = new Factory(keyStore,trustStore,context);
if (LOG.isDebugEnabled())
{
LOG.debug("Selected Protocols {} of {}",Arrays.asList(_selectedProtocols),Arrays.asList(sslEngine.getSupportedProtocols()));
LOG.debug("Selected Ciphers {} of {}",Arrays.asList(_selectedCipherSuites),Arrays.asList(sslEngine.getSupportedCipherSuites()));
LOG.debug("Selected Protocols {} of {}",Arrays.asList(_selectedProtocols),Arrays.asList(supported.getProtocols()));
LOG.debug("Selected Ciphers {} of {}",Arrays.asList(_selectedCipherSuites),Arrays.asList(supported.getCipherSuites()));
}
}