Skip to content

Commit

Permalink
python 3 issue: need to explicitly encode string to bytes when decodi…
Browse files Browse the repository at this point in the history
…ng private key
  • Loading branch information
myuwono committed Feb 7, 2017
1 parent 2f7e513 commit 295b760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/python/covata/delta/crypto.py
Expand Up @@ -59,7 +59,7 @@ def load(self, file_name):
file_path = os.path.join(self.key_store_path, file_name)
with(open(file_path, 'r')) as f:
return serialization \
.load_pem_private_key(f.read(),
.load_pem_private_key(f.read().encode('utf-8'),
password=self.key_store_passphrase,
backend=default_backend())

Expand Down

0 comments on commit 295b760

Please sign in to comment.