HDDS-588. SelfSignedCertificate#generateCertificate should sign the certificate the configured security provider. Contributed by Xiaoyu Yao.
This commit is contained in:
parent
0aab74026e
commit
8d7c5f4ee7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user