diff --git a/handler/src/main/java/io/netty/handler/ssl/util/OpenJdkSelfSignedCertGenerator.java b/handler/src/main/java/io/netty/handler/ssl/util/OpenJdkSelfSignedCertGenerator.java index 32ad3b726d..bbe5e1f85e 100644 --- a/handler/src/main/java/io/netty/handler/ssl/util/OpenJdkSelfSignedCertGenerator.java +++ b/handler/src/main/java/io/netty/handler/ssl/util/OpenJdkSelfSignedCertGenerator.java @@ -66,7 +66,8 @@ final class OpenJdkSelfSignedCertGenerator { info.set(X509CertInfo.VALIDITY, new CertificateValidity(notBefore, notAfter)); info.set(X509CertInfo.KEY, new CertificateX509Key(keypair.getPublic())); info.set(X509CertInfo.ALGORITHM_ID, - new CertificateAlgorithmId(new AlgorithmId(AlgorithmId.sha256WithRSAEncryption_oid))); + // sha256WithRSAEncryption + new CertificateAlgorithmId(AlgorithmId.get("1.2.840.113549.1.1.11"))); // Sign the cert to identify the algorithm that's used. X509CertImpl cert = new X509CertImpl(info); diff --git a/pom.xml b/pom.xml index b60b4da348..1f3d0a357b 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ - + java15 @@ -118,6 +118,7 @@ true + java14