From e7fa03e56cd8bcb3e623ed52d8df78a5e78d2418 Mon Sep 17 00:00:00 2001 From: Mike Lothian Date: Mon, 4 Sep 2023 09:47:56 +0100 Subject: [PATCH] Generate SHA256WithRSA certificate as default (#297) --- .../src/test/java/org/forgerock/opendj/ldap/LDAPServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendj-core/src/test/java/org/forgerock/opendj/ldap/LDAPServer.java b/opendj-core/src/test/java/org/forgerock/opendj/ldap/LDAPServer.java index 16c7090335..f4bcccbbc5 100644 --- a/opendj-core/src/test/java/org/forgerock/opendj/ldap/LDAPServer.java +++ b/opendj-core/src/test/java/org/forgerock/opendj/ldap/LDAPServer.java @@ -520,7 +520,7 @@ public boolean isRunning() { static { final String password="keypassword"; try { - CertAndKeyGen keyGen=new CertAndKeyGen("RSA","SHA1WithRSA",null); + CertAndKeyGen keyGen=new CertAndKeyGen("RSA","SHA256WithRSA",null); keyGen.generate(2048); X509Certificate[] chain=new X509Certificate[1]; chain[0]=keyGen.getSelfCertificate(new X500Name("CN=localhost"), (long)1*3600);