diff --git a/roles/letsencrypt/templates/renew-certs.py b/roles/letsencrypt/templates/renew-certs.py index 1dc215f298..72106e3611 100644 --- a/roles/letsencrypt/templates/renew-certs.py +++ b/roles/letsencrypt/templates/renew-certs.py @@ -39,7 +39,7 @@ ).format(csr_path) try: - new_bundled_cert = check_output(cmd, stderr=STDOUT, shell=True) + new_bundled_cert = check_output(cmd, stderr=STDOUT, shell=True, universal_newlines=True) except CalledProcessError as e: failed = True print('Error while generating certificate for {}\n{}'.format(site, e.output), file=sys.stderr)