From 4ef031ab395598d001e1145c4008f4cf36a7aea5 Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Fri, 29 Sep 2017 18:39:08 -0700 Subject: [PATCH] make new vhost ssl --- certbot-nginx/certbot_nginx/configurator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/certbot-nginx/certbot_nginx/configurator.py b/certbot-nginx/certbot_nginx/configurator.py index 8d6a39c77..e2ab7f14d 100644 --- a/certbot-nginx/certbot_nginx/configurator.py +++ b/certbot-nginx/certbot_nginx/configurator.py @@ -264,6 +264,9 @@ class NginxConfigurator(common.Installer): self.new_vhost.names.add(domain) name_block = [['\n ', 'server_name', ' ', " ".join(self.new_vhost.names)]] self.parser.add_server_directives(self.new_vhost, name_block, replace=True) + + if not self.new_vhost.ssl: + self._make_server_ssl(self.new_vhost) return self.new_vhost def _get_default_vhost(self):