CLOUDSTACK-8783: specify ciphersuite SSL_DH_anon_WITH_3DES_EDE_CBC_SHA in MockServerTest.java

This commit is contained in:
Wei Zhou 2015-08-28 12:25:00 +02:00
parent a7418751c1
commit 0f70833dd8
1 changed files with 2 additions and 1 deletions

View File

@ -161,7 +161,8 @@ public class MockServerTest extends TestCase {
final SSLSocketFactory sslSocketFactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
SSLSocket sslSocket = (SSLSocket)sslSocketFactory.createSocket(socket, address.getHostName(), address.getPort(), true);
sslSocket.setEnabledCipherSuites(sslSocket.getSupportedCipherSuites());
//sslSocket.setEnabledCipherSuites(sslSocket.getSupportedCipherSuites());
sslSocket.setEnabledCipherSuites(new String[] { "SSL_DH_anon_WITH_3DES_EDE_CBC_SHA" });
sslSocket.startHandshake();
InputStream is = sslSocket.getInputStream();