From d27b2bf18e8193c68a955fc73399a0903108d711 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 21 Nov 2024 20:55:47 +0100 Subject: [PATCH] chore: adjust default config --- src/config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 281f72b..8a7def2 100644 --- a/src/config.ts +++ b/src/config.ts @@ -14,13 +14,17 @@ export const config: TlsConfig = await loadConfig({ stateName: 'California', localityName: 'Playa Vista', commonName: 'stacks.localhost', - validityDays: 180, + validityDays: 825, // 2 years + 90 days hostCertCN: 'stacks.localhost', domain: 'stacks.localhost', rootCAObject: { certificate: '', privateKey: '' }, caCertPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.ca.crt`), certPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.crt`), keyPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.crt.key`), + subjectAltNames: [{ + type: 2, + value: 'stacks.localhost', + }], verbose: false, }, })