mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Remove debugging from certUtils.js
This commit is contained in:
parent
35ab58c440
commit
3add7aa25e
1 changed files with 0 additions and 4 deletions
|
|
@ -97,11 +97,8 @@ function loadCa() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function generateCa() {
|
function generateCa() {
|
||||||
ui.writeInformation("1");
|
|
||||||
const keys = forge.pki.rsa.generateKeyPair(2048);
|
const keys = forge.pki.rsa.generateKeyPair(2048);
|
||||||
ui.writeInformation("2");
|
|
||||||
const cert = forge.pki.createCertificate();
|
const cert = forge.pki.createCertificate();
|
||||||
ui.writeInformation("3");
|
|
||||||
cert.publicKey = keys.publicKey;
|
cert.publicKey = keys.publicKey;
|
||||||
cert.serialNumber = "01";
|
cert.serialNumber = "01";
|
||||||
cert.validity.notBefore = new Date();
|
cert.validity.notBefore = new Date();
|
||||||
|
|
@ -124,7 +121,6 @@ function generateCa() {
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
cert.sign(keys.privateKey, forge.md.sha256.create());
|
cert.sign(keys.privateKey, forge.md.sha256.create());
|
||||||
ui.writeInformation("4");
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
privateKey: keys.privateKey,
|
privateKey: keys.privateKey,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue