File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
test/jdk/javax/management/security Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 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 ();
You can’t perform that action at this time.
0 commit comments