Skip to content

Commit 65c8e07

Browse files
committed
Fixed key load error
Signed-off-by: kimbeelen <kbeelen@infiniot.nl>
1 parent aea98ad commit 65c8e07

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

openleadr/messaging.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ def load_private_key(key_data):
7070
Load the key based on key data. .pem and .der keys can be loaded.
7171
Returns a private key object.
7272
"""
73-
with open(key_data, "rb") as f:
74-
key_data = f.read()
7573
try:
7674
key = serialization.load_pem_private_key(key_data, password=None)
7775
except ValueError:

0 commit comments

Comments
 (0)