Not use RC4 for renegation as it is not supported in more recent java versions.
Motivation: RC4 is not supported by default in more recent java versions as RC4 is considered insecure. We should not use it in tests as these test will fail on more recent java version. Modifications: Use SSL_RSA_WITH_3DES_EDE_CBC_SHA for test. Result: Non failing test on more recent java versions.
This commit is contained in:
parent
3670898567
commit
071bfc3f6a
@ -158,7 +158,7 @@ public class SocketSslClientRenegotiateTest extends AbstractSocketTest {
|
|||||||
Future<Channel> clientHandshakeFuture = clientSslHandler.handshakeFuture();
|
Future<Channel> clientHandshakeFuture = clientSslHandler.handshakeFuture();
|
||||||
clientHandshakeFuture.sync();
|
clientHandshakeFuture.sync();
|
||||||
|
|
||||||
String renegotiation = "SSL_RSA_WITH_RC4_128_SHA";
|
String renegotiation = "SSL_RSA_WITH_3DES_EDE_CBC_SHA";
|
||||||
clientSslHandler.engine().setEnabledCipherSuites(new String[] { renegotiation });
|
clientSslHandler.engine().setEnabledCipherSuites(new String[] { renegotiation });
|
||||||
clientSslHandler.renegotiate().await();
|
clientSslHandler.renegotiate().await();
|
||||||
serverChannel.close().awaitUninterruptibly();
|
serverChannel.close().awaitUninterruptibly();
|
||||||
|
Loading…
Reference in New Issue
Block a user