Set configured TLS protocols to SSLEngine instance
Fixes
### Motivation
See , some tests fail with newer Java 8 versions that include TLS1.3 protocol. This might also impact the runtime behavior of Pulsar.
### Modifications
Set the configured TLS protocols to the SSLEngine instance.
@@ -174,7 +174,7 @@ public class KeyStoreSSLContext {
}
private SSLEngine configureSSLEngine(SSLEngine sslEngine) {
- sslEngine.setEnabledProtocols(sslEngine.getSupportedProtocols());
+ sslEngine.setEnabledProtocols(protocols.toArray(new String[0]));
sslEngine.setEnabledCipherSuites(sslEngine.getSupportedCipherSuites());
if (this.mode == Mode.SERVER) {
