mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
ca: Removed check on client mode (#4226)
Fixes unit test failures due to behavior change in OpenJDK 11.0.8 JDK-8245077: Default SSLEngine Created in Server Role ===================================================== In JDK 11 and later, `javax.net.ssl.SSLEngine` by default used client mode when handshaking. As a result, the set of default enabled protocols may differ to what is expected. `SSLEngine` would usually be used in server mode. From this JDK release onwards, `SSLEngine` will default to server mode. The `javax.net.ssl.SSLEngine.setUseClientMode(boolean mode)` method may be used to configure the mode.
This commit is contained in:
parent
5c6e79b1eb
commit
e225db46e4
@ -135,7 +135,6 @@ public class RootCAProviderTest {
|
||||
public void testCreateSSLEngineWithoutAuthStrictness() throws Exception {
|
||||
overrideDefaultConfigValue(RootCAProvider.rootCAAuthStrictness, "_defaultValue", "false");
|
||||
final SSLEngine e = provider.createSSLEngine(SSLUtils.getSSLContext(), "/1.2.3.4:5678", null);
|
||||
Assert.assertTrue(e.getUseClientMode());
|
||||
Assert.assertFalse(e.getNeedClientAuth());
|
||||
}
|
||||
|
||||
@ -143,7 +142,6 @@ public class RootCAProviderTest {
|
||||
public void testCreateSSLEngineWithAuthStrictness() throws Exception {
|
||||
overrideDefaultConfigValue(RootCAProvider.rootCAAuthStrictness, "_defaultValue", "true");
|
||||
final SSLEngine e = provider.createSSLEngine(SSLUtils.getSSLContext(), "/1.2.3.4:5678", null);
|
||||
Assert.assertTrue(e.getUseClientMode());
|
||||
Assert.assertTrue(e.getNeedClientAuth());
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user