From 5a135f7bf236304c0be5b23b65d3de5bd038a5b5 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 24 Sep 2020 17:55:18 +0200 Subject: [PATCH] misc: fix use of openssl cli (#46984) --- src/authentic2/saml/x509utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/authentic2/saml/x509utils.py b/src/authentic2/saml/x509utils.py index 4526b634f..f3a6bd86f 100644 --- a/src/authentic2/saml/x509utils.py +++ b/src/authentic2/saml/x509utils.py @@ -44,7 +44,10 @@ def _call_openssl(args): Return a tuple made of the return code and the stdout output ''' try: - process = subprocess.Popen(args=[_openssl] + args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + process = subprocess.Popen(args=[_openssl] + args, + stdout=subprocess.PIPE, + stderr=subprocess.STDOUT, + universal_newlines=True) output = process.communicate()[0] return process.returncode, output except OSError: