Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix user_data_encrypt to UTF8 decode before print
Reproducible on Ubuntu 20.04 (Python 3.8.5) $ keylime_userdata_encrypt secret.bin Writing keys to content_keys.txt Traceback (most recent call last): File "/usr/local/bin/keylime_userdata_encrypt", line 8, in sys.exit(main()) File "/home/ens/.local/lib/python3.8/site-packages/keylime/cmd/user_data_encrypt.py", line 53, in main f.write(base64.b64encode(ret['k'])) TypeError: write() argument must be str, not bytes Patch from Ilhan Gurel ([email protected]) Signed-off-by: Michael Peters <[email protected]>
- Loading branch information