docs(secure_boot_v2): Mention idf.py and openssl commands to generate and verify signatures

- Adds support for verify_signature command in idf.py

Closes https://github.com/espressif/esptool/issues/942
This commit is contained in:
harshal.patil
2024-08-16 12:13:44 +05:30
parent 997512ace2
commit e5f22521da
3 changed files with 133 additions and 9 deletions

View File

@@ -521,6 +521,19 @@ class TestSecureCommands(TestWrapperCommands):
output = self.call_command(sign_command)
self.assertIn('Signed', output)
def secure_verify_signature(self):
self.secure_sign_data()
sign_command = [sys.executable,
idf_py_path,
'secure-verify-signature',
'--version',
'2',
'--keyfile',
f'../{self.signing_key}',
'bootloader-signed.bin']
output = self.call_command(sign_command)
self.assertIn('verification successful', output)
class TestMergeBinCommands(TestWrapperCommands):
"""