From eda2d392ab90f52528cd7a78df98ecc7add1f63c Mon Sep 17 00:00:00 2001 From: Russel Vela Date: Wed, 29 Sep 2021 17:03:55 -0500 Subject: [PATCH] debug --- vcert/connection_tpp_abstract.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vcert/connection_tpp_abstract.py b/vcert/connection_tpp_abstract.py index 8e058da..7fcc798 100644 --- a/vcert/connection_tpp_abstract.py +++ b/vcert/connection_tpp_abstract.py @@ -139,7 +139,9 @@ def retrieve_cert(self, cert_request): if cert_request.csr_origin == CSR_ORIGIN_SERVICE: retrieve_request['IncludePrivateKey'] = cert_request.include_private_key if cert_request.key_password: - retrieve_request['Password'] = cert_request.key_password + # The password is encoded when assigned (for local use, I suppose). + # decode is needed to send a raw string + retrieve_request['Password'] = cert_request.key_password.decode() if cert_request.chain_option == CHAIN_OPTION_LAST: retrieve_request['RootFirstOrder'] = 'false'