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 @@ 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
|
||||||
|
|
Loading…
Reference in New Issue