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 = ContentSigner contentSigner =
new JcaContentSignerBuilder( new JcaContentSignerBuilder(config.getSignatureAlgo())
config.getSignatureAlgo()).build(key.getPrivate()); .setProvider(config.getProvider()).build(key.getPrivate());
// Please note: Since this is a root certificate we use "ONE" as the // 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 // serial number. Also note that skip enforcing locale or UTC. We are