set jdk.disabled.namedCurves to resolved the issue of jdK14 unavailable
@@ -18,6 +18,7 @@ import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.PrivateKey;
import java.security.PublicKey;
+import java.security.Security;
import java.security.cert.CertificateException;
import java.security.spec.InvalidKeySpecException;
import java.util.ArrayList;
@@ -292,7 +293,11 @@ public class Service {
}
public void initJavaOpt() {
- logger.trace(" initJavaOpt empty func .");
+
+ logger.info(" #jdk.disabled.namedCurves. ");
+
+ Security.setProperty("jdk.disabled.namedCurves", "");
+
/*
System.setProperty("jdk.tls.namedGroups", "secp256k1");
logger.info(
