Skip to content

Commit

Permalink
fix: fix root key path when generating root cert
Browse files Browse the repository at this point in the history
  • Loading branch information
davewasmer committed Mar 30, 2017
1 parent 1262e7d commit 83c8672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
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);
}
Expand Down

0 comments on commit 83c8672

Please sign in to comment.