diff options
Diffstat (limited to 'tests/oom-platform-cert-service/postprocessor/libraries/PemTruststoreValidator.py')
-rw-r--r-- | tests/oom-platform-cert-service/postprocessor/libraries/PemTruststoreValidator.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/oom-platform-cert-service/postprocessor/libraries/PemTruststoreValidator.py b/tests/oom-platform-cert-service/postprocessor/libraries/PemTruststoreValidator.py index 8dc9623d..3c157514 100644 --- a/tests/oom-platform-cert-service/postprocessor/libraries/PemTruststoreValidator.py +++ b/tests/oom-platform-cert-service/postprocessor/libraries/PemTruststoreValidator.py @@ -16,4 +16,5 @@ class PemTruststoreValidator: def get_list_of_pem_certificates(self, path): - return re.findall(BEGIN_CERT + '(.+?)' + END_CERT, open(path, 'rb').read(), re.DOTALL) + content = open(path, 'rb').read().decode("utf-8") + return re.findall(BEGIN_CERT + '(.+?)' + END_CERT, content, re.DOTALL) |