HDDS-588. SelfSignedCertificate#generateCertificate should sign the certificate the configured security provider. Contributed by Xiaoyu Yao.

This commit is contained in:
Ajay Kumar 2018-10-09 00:28:01 -07:00 committed by Xiaoyu Yao
parent 0aab74026e
commit 8d7c5f4ee7
1 changed files with 2 additions and 2 deletions

View File

@ -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