diff --git a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/security/x509/certificates/SelfSignedCertificate.java b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/security/x509/certificates/SelfSignedCertificate.java index fef7ac3c4f6..f221246bd9f 100644 --- a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/security/x509/certificates/SelfSignedCertificate.java +++ b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/security/x509/certificates/SelfSignedCertificate.java @@ -103,8 +103,8 @@ public final class SelfSignedCertificate { ContentSigner contentSigner = - new JcaContentSignerBuilder( - config.getSignatureAlgo()).build(key.getPrivate()); + new JcaContentSignerBuilder(config.getSignatureAlgo()) + .setProvider(config.getProvider()).build(key.getPrivate()); // Please note: Since this is a root certificate we use "ONE" as the // serial number. Also note that skip enforcing locale or UTC. We are