Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rvelaVenafi committed Sep 29, 2021
1 parent 6451677 commit eda2d39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vcert/connection_tpp_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit eda2d39

Please sign in to comment.