From e3e7f18d4d5deff19ef888a990bf8028f995de3d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 5 Nov 2019 03:14:18 -0700 Subject: [PATCH] add --agree-to-terms flag --- bin/defaults.js | 3 ++- bin/lib/flags.js | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/defaults.js b/bin/defaults.js index 04512ff..dbe3a5f 100644 --- a/bin/defaults.js +++ b/bin/defaults.js @@ -16,6 +16,7 @@ Flags.init({ forceSave: true }).then(function({ }) { var myFlags = {}; [ + 'agree-to-terms', 'account-key-type', 'server-key-type', 'subscriber-email', @@ -29,7 +30,7 @@ Flags.init({ forceSave: true }).then(function({ 'challenge-tls-alpn-01-xxxx', 'challenge', 'challenge-xxxx', - 'challenge-http-01', + 'challenge-http-01' ].forEach(function(k) { myFlags[k] = flagOptions[k]; }); diff --git a/bin/lib/flags.js b/bin/lib/flags.js index 564bb10..b19ebcd 100644 --- a/bin/lib/flags.js +++ b/bin/lib/flags.js @@ -26,6 +26,11 @@ Flags.flags = function(mconf, myOpts) { 'search all site configs rather than by --subject or --servernames', 'boolean' ], + 'agree-to-terms': [ + false, + "agree to the Let's Encrypts Subscriber Agreement and Greenlock Terms of Use", + 'boolean' + ], subject: [ false, 'the "subject" (primary domain) of the certificate',