Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion test/jdk/javax/management/security/SecurityTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -142,6 +142,9 @@ static void setTrustStoreProperties(Map<String, Object> map) {
* map (argName, value) format, then calls original test's run method.
*/
public static void main(String args[]) throws Exception {
// Disable default KeyManager's certificate checking so we can use
// a certificate signed with MD5withRSA algorithm.
System.setProperty("jdk.tls.SunX509KeyManager.certChecking", "false");

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

Expand Down Expand Up @@ -529,6 +532,10 @@ private static class ClientSide {
private MBeanServerConnection mbsc = null;

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

// Parses parameters
Utils.parseDebugProperties();
Expand Down