From 315a3b2699b7053680c0bfac282c3bd3e98ceb3b Mon Sep 17 00:00:00 2001 From: Yuval Yogev Date: Sun, 7 Oct 2018 21:35:31 +0300 Subject: [PATCH] fix: don't exit if using https and pfx is enabled (#1061) (#1062) * Don't exit if using https and pfx is enabled * Fix indentation --- src/lib/bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/bootstrap.js b/src/lib/bootstrap.js index 76784e803..a0454f02b 100644 --- a/src/lib/bootstrap.js +++ b/src/lib/bootstrap.js @@ -81,7 +81,7 @@ function startVerdaccio(config: any, let webServer; if (addr.proto === 'https') { // https must either have key cert and ca or a pfx and (optionally) a passphrase - if (!config.https || !config.https.key || !config.https.cert || !config.https.ca) { + if (!config.https || !((config.https.key && config.https.cert && config.https.ca) || config.https.pfx)) { displayHTTPSWarning(configPath); }