Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.catch({code: 'EEXIST'}, (err) => {
log.warn('You are about to remove the EASYRSA_PKI at: %s and initialize a fresh PKI here.', pki.dir);
return inquirer.promptAsync({name: 'confirm', message: 'Confirm removal', type: 'confirm', default: false})
.catch(({confirm}) => {
if (!confirm) {
process.exit(1);
}
return pki.initPKI({force: true});
});
})
.then(() => {