Skip to content

Commit

Permalink
Update src/saltext/vault/modules/vault_pki.py
Browse files Browse the repository at this point in the history
Co-authored-by: jeanluc <[email protected]>
  • Loading branch information
voyvodov and lkubb authored May 13, 2024
1 parent ca9f876 commit 99df1ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/saltext/vault/modules/vault_pki.py
Original file line number Diff line number Diff line change
Expand Up @@ -1092,8 +1092,7 @@ def _build_csr(private_key, private_key_passphrase=None, digest="sha256", **kwar

csr = builder.sign(key, algorithm=algorithm)
csr = x509util.load_csr(csr)
csr_encoding = getattr(serialization.Encoding, "PEM")
csr_bytes = csr.public_bytes(csr_encoding)
csr_bytes = csr.public_bytes(serialization.Encoding.PEM)
csr = csr_bytes.decode()

return csr
Expand Down

0 comments on commit 99df1ca

Please sign in to comment.