From 9b667f0c286345e34a3e3b42d3ba62db44de58ca Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 11 Aug 2016 11:39:10 -0600 Subject: [PATCH] require --server --- bin/letsencrypt.js | 2 +- index.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/letsencrypt.js b/bin/letsencrypt.js index 211e798..28b2264 100755 --- a/bin/letsencrypt.js +++ b/bin/letsencrypt.js @@ -20,7 +20,7 @@ cli.parse({ , 'domain-key-path': [ false, " Path to privkey.pem to use for domain (default: generate new)", 'string' ] , 'account-key-path': [ false, " Path to privkey.pem to use for account (default: generate new)", 'string' ] , 'config-dir': [ false, " Configuration directory.", 'string', '~/letsencrypt/etc/' ] -, server: [ false, " ACME Directory Resource URI.", 'string', 'https://acme-v01.api.letsencrypt.org/directory)' ] +, server: [ false, " ACME Directory Resource URI.", 'string', '' ] , standalone: [ false, " Obtain certs using a \"standalone\" webserver.", 'boolean', false ] , manual: [ false, " Print the token and key to the screen and wait for you to hit enter, giving you time to copy it somewhere before continuing (default: false)", 'boolean', false ] , webroot: [ false, " Obtain certs by placing files in a webroot directory.", 'boolean', false ] diff --git a/index.js b/index.js index ef3b65f..8ab9614 100644 --- a/index.js +++ b/index.js @@ -46,6 +46,10 @@ module.exports.run = function (args) { , accountKeyPath: args.accountKeyPath }); + if (!args.server) { + throw new Error("You must specify a server to use with --server"); + } + // let LE know that we're handling standalone / webroot here var le = LE.create({ debug: args.debug