Remove debugging from certUtils.js

This commit is contained in:
Sander Declerck 2025-11-28 16:26:31 +01:00
parent 35ab58c440
commit 3add7aa25e
No known key found for this signature in database

View file

@ -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,