fix BearSSL certificate format recognition
This commit is contained in:
parent
2adb9cf5a8
commit
767ba361c8
@ -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
|
||||||
|
|
||||||
|
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user