From af33d19703660c9083a7cbf55d20056291a85529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 4 Mar 2019 10:13:06 +0200 Subject: [PATCH] Add short version of --tls-verify-server-cert It is frequently used when using self-signed certificates so making it shorther makes life easier. Also added the missing --tls-passphrase into the TLS options group. --- maxctrl/lib/core.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/maxctrl/lib/core.js b/maxctrl/lib/core.js index 7ce2909c4..603d0459c 100644 --- a/maxctrl/lib/core.js +++ b/maxctrl/lib/core.js @@ -65,7 +65,7 @@ program default: false, type: 'boolean' }) - .group(['s', 'tls-key', 'tls-cert', 'tls-ca-cert', 'tls-verify-server-cert'], 'HTTPS/TLS Options:') + .group(['s', 'tls-key', 'tls-passphrase', 'tls-cert', 'tls-ca-cert', 'n'], 'HTTPS/TLS Options:') .option('s', { alias: 'secure', describe: 'Enable HTTPS requests', @@ -88,7 +88,8 @@ program describe: 'Path to TLS CA certificate', type: 'string' }) - .option('tls-verify-server-cert', { + .option('n', { + alias: 'tls-verify-server-cert', describe: 'Whether to verify server TLS certificates', default: true, type: 'boolean'