Skip to content

Commit 83c8672

Browse files
committed
fix: fix root key path when generating root cert
1 parent 1262e7d commit 83c8672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default async function devcert(appName: string, options: Options = {}) {
7474
// Install the once-per-machine trusted root CA. We'll use this CA to sign per-app certs, allowing
7575
// us to minimize the need for elevated permissions while still allowing for per-app certificates.
7676
async function installCertificateAuthority(installCertutil: boolean): Promise<void> {
77-
let rootKeyPath = generateKey('devcert-ca-root');
77+
generateKey('devcert-ca-root');
7878
execSync(`openssl req -config ${ opensslConfPath } -key ${ rootKeyPath } -out ${ rootCertPath } -new -subj '/CN=devcert' -x509 -days 7000 -extensions v3_ca`);
7979
await addCertificateToTrustStores(installCertutil);
8080
}

0 commit comments

Comments
 (0)