From 5c980dce10779935f0d46d3deae4431fc4ce1235 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Mon, 2 Jul 2018 11:44:11 +0530 Subject: [PATCH] Test --- bench/config/lets_encrypt.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bench/config/lets_encrypt.py b/bench/config/lets_encrypt.py index a225754c..6139504f 100755 --- a/bench/config/lets_encrypt.py +++ b/bench/config/lets_encrypt.py @@ -144,6 +144,13 @@ def setup_wildcard_ssl(domain, email, bench_path, exclude_base_domain): if email: email_param = '--email {0}'.format(email) + + print("{path} certonly --manual --preferred-challenges=dns {email_param} \ + --server https://acme-v02.api.letsencrypt.org/directory \ + --agree-tos -d {domain}".format(path=get_certbot_path(), domain=' -d '.join(domain_list), + email_param=email_param)) + return + try: exec_cmd("{path} certonly --manual --preferred-challenges=dns {email_param} \ --server https://acme-v02.api.letsencrypt.org/directory \ @@ -167,5 +174,6 @@ def setup_wildcard_ssl(domain, email, bench_path, exclude_base_domain): setup_crontab() make_nginx_conf(bench_path) + print("Restrting Nginx service") service('nginx', 'restart') \ No newline at end of file