Fix user_data_encrypt to UTF8 decode before print
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 (ilhan.gurel@ericsson.com)

Signed-off-by: Michael Peters <f71be246acc95741cdc56b7869574eea5d1c39ab@redhat.com>

mit-ll/python-keylime,mit-ll/python-keylime,mit-ll/python-keylime,mit-ll/python-keylime