fix BearSSL certificate format recognition

This commit is contained in:
Christian 2020-05-07 13:28:13 +02:00
parent 2adb9cf5a8
commit 767ba361c8
Signed by: exxess
GPG Key ID: 88ED5070FE0D5F23
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ extra_scripts = pre:sign_and_upload.py
[env:serial] [env:serial]
upload_port = /dev/ttyUSB* upload_port = /dev/ttyUSB*
upload_speed = 921600 upload_speed = 115200
monitor_port = /dev/ttyUSB* monitor_port = /dev/ttyUSB*
monitor_speed = 115200 monitor_speed = 115200

View File

@ -51,7 +51,7 @@ cert = ''
try: try:
with open(sign_cert, 'r') as f: with open(sign_cert, 'r') as f:
for line in f: for line in f:
cert += line.replace("\n", " ") cert += line.replace("\n", "\\n")
env.Append(BUILD_FLAGS='\'-DPUBLIC_SIGN_KEY="' + cert + '"\'') env.Append(BUILD_FLAGS='\'-DPUBLIC_SIGN_KEY="' + cert + '"\'')
except FileNotFoundError: except FileNotFoundError:
sys.stderr.write("No public key for signing found! Continuing without update support!\n") sys.stderr.write("No public key for signing found! Continuing without update support!\n")