diff --git a/letsencrypt/cli.py b/letsencrypt/cli.py index 5757783cd..1c08d27f6 100644 --- a/letsencrypt/cli.py +++ b/letsencrypt/cli.py @@ -868,6 +868,16 @@ def prepare_and_parse_args(plugins, args): "security", "--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", "--hsts", action="store_true", + help="Add the Strict-Transport-Security header to every HTTP response." + " Forcing browser to use always use SSL for the domain." + " Defends against SSL Stripping.", dest="hsts") + helpful.add( + "security", "--uir", action="store_true", + help="Add the \"Content-Security-Policy: upgrade-insecure-requests\"" + " header to every HTTP response. Forcing the browser to use" + " https:// for every http:// resource.", dest="uir") helpful.add( "security", "--strict-permissions", action="store_true", help="Require that all configuration files are owned by the current "