Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Minor updates to parse_box_config.py #1

Open
vaibhavmwarpe opened this issue Aug 27, 2019 · 1 comment
Open

Minor updates to parse_box_config.py #1

vaibhavmwarpe opened this issue Aug 27, 2019 · 1 comment

Comments

@vaibhavmwarpe
Copy link

Hi Kyle, I am using these blueprints, really helpful. Thank you. Please note the below changes I needed to make in parse_box_config.py


When using Popen function in def "convertCryptoKey" it errors out "file not found".
Fix

  1. add shell=True
  2. provide full path for openssl.exe and tempKey.txt

In def "modifyPkString", first decode the newKey - otherwise errors out "a bytes like object is required, not str"
Fix
3. withoutFirstLine = newKey.decode().split('\n')[1:]

@DarrinDipity
Copy link

Had same issue with convertCryptoKey returning a ByteArray and modifyPkString expecting a String. Added the decode() method to the array and then worked fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants