From 40bccb5482c04262c2a763eafba2e15a9dfe2ef3 Mon Sep 17 00:00:00 2001 From: Valmik Jangla Date: Tue, 21 Aug 2018 00:25:59 -0700 Subject: [PATCH] Allow user to set single wildcard certificate for all domains --- bench/config/nginx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bench/config/nginx.py b/bench/config/nginx.py index 59ac8340..6dc3a121 100644 --- a/bench/config/nginx.py +++ b/bench/config/nginx.py @@ -228,7 +228,8 @@ def use_wildcard_certificate(bench_path, ret): ssl_certificate = wildcard['ssl_certificate'] ssl_certificate_key = wildcard['ssl_certificate_key'] - if domain.startswith('*.'): + # If domain is set as "*" all domains will be included + if domain.startswith('*'): domain = domain[1:] else: domain = '.' + domain