mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Added root signing key usage.
This commit is contained in:
parent
9a1bd52351
commit
b750042823
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ module.exports.CertificateOperations = function (parent) {
|
|||
cert.setIssuer(attrs);
|
||||
// Create a root certificate
|
||||
//cert.setExtensions([{ name: "basicConstraints", cA: true }, { name: "nsCertType", sslCA: true, emailCA: true, objCA: true }, { name: "subjectKeyIdentifier" }]);
|
||||
cert.setExtensions([{ name: "basicConstraints", cA: true }, { name: "subjectKeyIdentifier" }]);
|
||||
cert.setExtensions([{ name: "basicConstraints", cA: true }, { name: "subjectKeyIdentifier" }, { name: "keyUsage", keyCertSign: true }]);
|
||||
cert.sign(keys.privateKey, obj.forge.md.sha384.create());
|
||||
|
||||
return { cert: cert, key: keys.privateKey };
|
||||
|
|
Loading…
Reference in a new issue