libsdpm - VerifyCertificateChainBuffer - FAIL (leaf certificate check failed) #3274
-
|
Hi Team, I am trying to fetch the certificate, but libspdm says the leaf certificate failed. The app in development fetches the certificate, the call goes through, however, i get an error saying "VerifyCertificateChainBuffer - FAIL (leaf certificate check failed)!!" but i dumped the data to file and we see there is a CA certificate. What is expected? Should I expect the leaf certificate to be present? Any suggestions will be much appreciated. Should i !!! VerifyCertificateChainBuffer - FAIL (leaf certificate check failed)!!!
Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 19 replies
-
will only print the first certificate in the chain. will print the entire certificate chain. |
Beta Was this translation helpful? Give feedback.
BRCM ECD Leaf certs had 2 issues.
In our Leaf Cert, we had set CA=FALSE explicitly, even though False is the default value.
According X690 spec section 11.5, if the value set is the default value, it should not be encoded.
The other issue was with the encoding of the SPDM extension DMTF-SPDM Object Id: 1.3.6.1.4.1.412.274.5
We had encoded this as a SEQUENCE. It should be encoded as SEQUENCE of SEQUENCE.
// SEQUENCE {
// SEQUENCE {
// OBJECT IDENTIFIER 1.3.6.1.4.1.412.274.5
// }
// }
We have fixed both issues in FW. I am not sure which FW version is being used. Please retry with the latest FW.
/Shripad