Revert "Revert "open private key as a bytestring""
This reverts commit 97afbc1e40
.
This commit is contained in:
parent
13072f53a7
commit
c612bb8a15
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ SIGNATURE_FORMAT = (
|
|||
|
||||
|
||||
def _private_key(key_filename: str) -> rsa.RSAPrivateKey:
|
||||
with open(key_filename) as key_file:
|
||||
with open(key_filename, "rb") as key_file:
|
||||
return serialization.load_pem_private_key(
|
||||
key_file.read(), password=None, backend=default_backend())
|
||||
|
||||
|
|
Loading…
Reference in a new issue