From 0e395ba763a16c030d5e05e4c1551a9c97e3a2bd Mon Sep 17 00:00:00 2001 From: root Date: Sat, 24 Oct 2015 19:57:24 +0100 Subject: [PATCH] Close #1030 --- letsencrypt/cli.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/letsencrypt/cli.py b/letsencrypt/cli.py index 822f231ef..b2c072a37 100644 --- a/letsencrypt/cli.py +++ b/letsencrypt/cli.py @@ -436,6 +436,7 @@ def run(args, config, plugins): # pylint: disable=too-many-branches,too-many-lo le_client.deploy_certificate( domains, lineage.privkey, lineage.cert, lineage.chain, lineage.fullchain) + le_client.enhance_config(domains, args.redirect) if len(lineage.available_versions("cert")) == 1: @@ -808,7 +809,11 @@ def create_parser(plugins, args): helpful.add( "security", "-r", "--redirect", action="store_true", help="Automatically redirect all HTTP traffic to HTTPS for the newly " - "authenticated vhost.") + "authenticated vhost.", dest="redirect", default=None) + helpful.add( + "security", "-n", "--no-redirect", action="store_false", + help="Do not automatically redirect all HTTP traffic to HTTPS for the newly " + "authenticated vhost.", dest="redirect", default=None) helpful.add( "security", "--strict-permissions", action="store_true", help="Require that all configuration files are owned by the current "