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

View File

@ -103,8 +103,8 @@ private X509CertificateHolder generateCertificate()
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