Can't verify signature using internal certificate 0xE0E0 #89
-
Hi, When i do: uint16_t oid = 0xE0E0;
...
return_status = optiga_crypt_ecdsa_verify(me, (uint8_t *) dig_buf, dig_buf_len,
der_buf, der_buf_len,
OPTIGA_CRYPT_OID_DATA, (void *)&oid);
... I always get 0x8029 (Invalid certificate format). Do you know what i'm doing wrong? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @matteofumagalli1275 , |
Beta Was this translation helpful? Give feedback.
-
@matteofumagalli1275 ,
|
Beta Was this translation helpful? Give feedback.
@matteofumagalli1275 ,
According to the Solutions Reference Manual, to use an OID for signature verification, the OID shall contain a single certificate encoded in DER format, starting 0x30 (see pg. 73). The Certificate in 0xE0E0 is encoded as a TLS identity certificate CHAIN (starts with 0xC0 and not 0x30), see pg. 112. Even though only 1 certificate is present in this TLS chain, it is still encoded as a chain, not as single certificate (chain with only 1 certificate).
We have 2 alternatives: