From 83c86729921ffd429e6e4838d908b83b8caa4976 Mon Sep 17 00:00:00 2001 From: Dave Wasmer Date: Wed, 29 Mar 2017 17:50:04 -0700 Subject: [PATCH] fix: fix root key path when generating root cert --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6fcc62c..b2e394e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -74,7 +74,7 @@ export default async function devcert(appName: string, options: Options = {}) { // Install the once-per-machine trusted root CA. We'll use this CA to sign per-app certs, allowing // us to minimize the need for elevated permissions while still allowing for per-app certificates. async function installCertificateAuthority(installCertutil: boolean): Promise { - let rootKeyPath = generateKey('devcert-ca-root'); + generateKey('devcert-ca-root'); execSync(`openssl req -config ${ opensslConfPath } -key ${ rootKeyPath } -out ${ rootCertPath } -new -subj '/CN=devcert' -x509 -days 7000 -extensions v3_ca`); await addCertificateToTrustStores(installCertutil); }