Skip to content

Commit 43c84df

Browse files
committed
8364484: misc tests fail with Received fatal alert: handshake_failure
Backport-of: 724e8c076e1aed05de893ef9366af0e62cc2ac2b
1 parent dbb4327 commit 43c84df

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/jdk/javax/management/security/SecurityTest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -142,6 +142,9 @@ static void setTrustStoreProperties(Map<String, Object> map) {
142142
* map (argName, value) format, then calls original test's run method.
143143
*/
144144
public static void main(String args[]) throws Exception {
145+
// Disable default KeyManager's certificate checking so we can use
146+
// a certificate signed with MD5withRSA algorithm.
147+
System.setProperty("jdk.tls.SunX509KeyManager.certChecking", "false");
145148

146149
System.out.println("=================================================");
147150

@@ -529,6 +532,10 @@ private static class ClientSide {
529532
private MBeanServerConnection mbsc = null;
530533

531534
public static void main(String args[]) throws Exception {
535+
// Disable default KeyManager's certificate checking so we can use
536+
// a certificate signed with MD5withRSA algorithm.
537+
System.setProperty("jdk.tls.SunX509KeyManager.certChecking",
538+
"false");
532539

533540
// Parses parameters
534541
Utils.parseDebugProperties();

0 commit comments

Comments
 (0)