mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Change validity of generateCertForHost to 1 hour.
This commit is contained in:
parent
49fd0f5928
commit
60543308f4
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ export function generateCertForHost(hostname) {
|
|||
cert.serialNumber = "01";
|
||||
cert.validity.notBefore = new Date();
|
||||
cert.validity.notAfter = new Date();
|
||||
cert.validity.notAfter.setDate(cert.validity.notBefore.getDate() + 1);
|
||||
cert.validity.notAfter.setHours(cert.validity.notBefore.getHours() + 1);
|
||||
|
||||
const attrs = [{ name: "commonName", value: hostname }];
|
||||
cert.setSubject(attrs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue