Skip to content

Commit

Permalink
fix: add root ca cert to /etc/ssl/certs on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
davewasmer committed Mar 31, 2017
1 parent 5ba2424 commit 5dc37a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ async function addCertificateToTrustStores(installCertutil: boolean): Promise<vo
} else if (isLinux) {
// system utils
debug('adding devcert root CA to linux system-wide certificates');
execSync(`sudo cp ${ rootCertPath } /etc/ssl/certs/devcert.pem`);
execSync(`sudo cp ${ rootCertPath } /usr/local/share/ca-certificates/devcert.cer`);
execSync(`sudo update-ca-certificates`);
// Firefox
Expand Down

0 comments on commit 5dc37a4

Please sign in to comment.