Hai-May has a similar function as a by-product in https://cr.openjdk.java.net/~hchao/8244148/webrev.02/
See FilePaths.java and MyOwnCacerts.java for the detail. Her code change is in code review now. Please coordinate with her on how to get this done nicely. Thanks, Max > On Jun 11, 2020, at 9:39 AM, sha.ji...@oracle.com wrote: > > Hi, > This patch contains a patched version for class > sun.security.util.AnchorCertificates. > It allows to add CAs to cacerts at runtime for testing purpose. > > Webrev: http://cr.openjdk.java.net/~jjiang/8245520/webrev.00/ > Issue: https://bugs.openjdk.java.net/browse/JDK-8245520 > > Best regards, > John Jiang >