Skip to content

Commit eda2d39

Browse files
committed
debug
1 parent 6451677 commit eda2d39

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

vcert/connection_tpp_abstract.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ def retrieve_cert(self, cert_request):
139139
if cert_request.csr_origin == CSR_ORIGIN_SERVICE:
140140
retrieve_request['IncludePrivateKey'] = cert_request.include_private_key
141141
if cert_request.key_password:
142-
retrieve_request['Password'] = cert_request.key_password
142+
# The password is encoded when assigned (for local use, I suppose).
143+
# decode is needed to send a raw string
144+
retrieve_request['Password'] = cert_request.key_password.decode()
143145

144146
if cert_request.chain_option == CHAIN_OPTION_LAST:
145147
retrieve_request['RootFirstOrder'] = 'false'

0 commit comments

Comments
 (0)