Skip to content

Commit

Permalink
tenant: open file to send utf-8 encoded
Browse files Browse the repository at this point in the history
Was by mistake changed to byte encoding in 2ba03e9

Signed-off-by: Thore Sommer <[email protected]>
  • Loading branch information
THS-on authored and mpeters committed Aug 27, 2021
1 parent b5322f8 commit a865889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keylime/tenant.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def init_add(self, args):
else:
raise UserError("Invalid file payload provided")
else:
with open(args["file"], 'rb') as f:
with open(args["file"], encoding="utf-8") as f:
contents = f.read()
ret = user_data_encrypt.encrypt(contents)
self.K = ret['k']
Expand Down

0 comments on commit a865889

Please sign in to comment.