- Add conversion to string after reading output from openssl
Issue-ID: SDNC-1477
Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com>
Change-Id: Iebc12fde73d33fc79efb1a61db4e3d0963e885de
Former-commit-id:
208c90bac2b1a8a9c6511ba1329c10e8fa8b872b
# Copyright (C) 2019 Nordix Foundation.
# ================================================================================
# extended by highstreet technologies GmbH (c) 2020
# Copyright (C) 2019 Nordix Foundation.
# ================================================================================
# extended by highstreet technologies GmbH (c) 2020
+# Copyright (c) 2021 Nokia Intellectual Property.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
def make_cert_chain(cert_chain, pattern):
cert_list = []
if cert_chain:
def make_cert_chain(cert_chain, pattern):
cert_list = []
if cert_chain:
+ cert_chain = cert_chain.decode('utf-8')
matches = re.findall(pattern, cert_chain, re.DOTALL | re.MULTILINE)
for cert in matches:
cert_list.append(cert.strip())
matches = re.findall(pattern, cert_chain, re.DOTALL | re.MULTILINE)
for cert in matches:
cert_list.append(cert.strip())