From 05174be633bb07f21c2ec7ae6f1e6484928edf7c Mon Sep 17 00:00:00 2001 From: Alex Dobin Date: Mon, 2 Jul 2018 16:25:26 -0700 Subject: [PATCH] Extend the CA cert to last for 7000 days --- src/certificate-authority.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/certificate-authority.ts b/src/certificate-authority.ts index 38e1da6..12de656 100644 --- a/src/certificate-authority.ts +++ b/src/certificate-authority.ts @@ -44,7 +44,7 @@ export default async function installCertificateAuthority(options: Options = {}) generateKey(rootKeyPath); debug(`Generating a CA certificate`); - openssl(`req -new -x509 -config "${ caSelfSignConfig }" -key "${ rootKeyPath }" -out "${ rootCertPath }"`); + openssl(`req -new -x509 -config "${ caSelfSignConfig }" -key "${ rootKeyPath }" -out "${ rootCertPath }" -days 7000`); debug('Saving certificate authority credentials'); await saveCertificateAuthorityCredentials(rootKeyPath, rootCertPath);