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() {
|
||||
ui.writeInformation("1");
|
||||
const keys = forge.pki.rsa.generateKeyPair(2048);
|
||||
ui.writeInformation("2");
|
||||
const cert = forge.pki.createCertificate();
|
||||
ui.writeInformation("3");
|
||||
cert.publicKey = keys.publicKey;
|
||||
cert.serialNumber = "01";
|
||||
cert.validity.notBefore = new Date();
|
||||
|
|
@ -124,7 +121,6 @@ function generateCa() {
|
|||
},
|
||||
]);
|
||||
cert.sign(keys.privateKey, forge.md.sha256.create());
|
||||
ui.writeInformation("4");
|
||||
|
||||
return {
|
||||
privateKey: keys.privateKey,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue