I am interested in this topic!
I need to verify the os_cntr_signed.bin container coming out from a Yocto AHAB-signed build for imx93
If I do:
~/cst-4.0.0/linux64/bin/ahab_image_verifier os_cntr_signed.bin 0 0
I get:
Signature Block:
Version: 0
Length: 2648 bytes
Tag: 0x90
Certificate Offset: 0x0
SRK Table/Array Offset: 0x10
SRK Table:
Tag: 0xD7
Length: 2112 bytes
Version: 66
SRK Record:
Tag: 0xE1
Length: 527 bytes
Sign Algorithm: RSA
Hash Algorithm: SHA2_384
Key Size/Curve: RSA4096
SRK Flags: CA Flags
Modulus (N):
.....
Signature verification failed
This doesn't happen for imx-boot-imx93-var-som-aski-sd.bin-flash_singleboot_gdet
Signature Block:
Version: 0
Length: 400 bytes
Tag: 0x90
Certificate Offset: 0x0
SRK Table/Array Offset: 0x10
SRK Table:
Tag: 0xD7
Length: 308 bytes
Version: 66
SRK Record:
Tag: 0xE1
Length: 76 bytes
Sign Algorithm: ECDSA
Hash Algorithm: SHA2_256
Key Size/Curve: PRIME256V1
SRK Flags: None
X Coordinate: ....
Y Coordinate: ...
......
Signature verification successful
I am using a Digicert HSM for the signature
does anybody have a clue about the verification failed for os_cntr_signed ?
does anybody have a hint on how to verify the signature with openssl ?(just to exclude the issue is ahab_image_verifier itself)