File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ export default async function devcert(appName: string, options: Options = {}) {
58
58
let appCertPath = configPath ( `${ appName } .crt` ) ;
59
59
60
60
if ( ! existsSync ( rootKeyPath ) ) {
61
+ debug ( 'devcert root CA not installed yet, must be first run; installing root CA ...' ) ;
61
62
await installCertificateAuthority ( options . installCertutil ) ;
62
63
}
63
64
@@ -127,7 +128,8 @@ async function addCertificateToTrustStores(installCertutil: boolean): Promise<vo
127
128
} else if ( isLinux ) {
128
129
// system utils
129
130
debug ( 'adding devcert root CA to linux system-wide certificates' ) ;
130
- execSync ( `sudo cp ${ rootCertPath } /usr/local/share/ca-certificates/devcert.cer && update-ca-certificates` ) ;
131
+ execSync ( `sudo cp ${ rootCertPath } /usr/local/share/ca-certificates/devcert.cer` ) ;
132
+ execSync ( `sudo update-ca-certificates` ) ;
131
133
// Firefox
132
134
try {
133
135
// Try to use certutil to install the cert automatically
You can’t perform that action at this time.
0 commit comments