Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] When libspdm_verify_cert_chain_data has received a leaf cert, the openssl and mbedtls result is different #2588

Closed
Wenxing-hou opened this issue Feb 26, 2024 · 0 comments · Fixed by #2603
Assignees
Labels
bug Something isn't working

Comments

@Wenxing-hou
Copy link
Contributor

When libspdm_verify_cert_chain_data has received a leaf cert, the Mbedtls test result is failed and the Openssl test result is successful.
Please refer to my own PR: Wenxing-hou#16

        status = libspdm_read_input_file("rsa2048/end_requester.cert.der",
                                         (void **)&file_buffer, &file_buffer_size);
        assert_true(status);

        status = libspdm_verify_cert_chain_data(file_buffer, file_buffer_size,
                                                   SPDM_ALGORITHMS_BASE_ASYM_ALGO_TPM_ALG_RSASSA_2048,
                                                   SPDM_ALGORITHMS_BASE_HASH_ALGO_TPM_ALG_SHA_256,
                                                   true, true);
        assert_true(status);

The Openssl test result should be failed either.

@jyao1 jyao1 added the bug Something isn't working label Feb 26, 2024
Wenxing-hou added a commit to Wenxing-hou/libspdm that referenced this issue Mar 4, 2024
Fix the issue: DMTF#2588

Signed-off-by: Wenxing Hou <[email protected]>
Wenxing-hou added a commit to Wenxing-hou/libspdm that referenced this issue Mar 4, 2024
Fix the issue: DMTF#2588

Signed-off-by: Wenxing Hou <[email protected]>
Wenxing-hou added a commit to Wenxing-hou/libspdm that referenced this issue Mar 4, 2024
Fix the issue: DMTF#2588

Signed-off-by: Wenxing Hou <[email protected]>
Wenxing-hou added a commit to Wenxing-hou/libspdm that referenced this issue Mar 4, 2024
Fix the issue: DMTF#2588

Signed-off-by: Wenxing Hou <[email protected]>
Wenxing-hou added a commit to Wenxing-hou/libspdm that referenced this issue Mar 4, 2024
Fix the issue: DMTF#2588

Signed-off-by: Wenxing Hou <[email protected]>
Wenxing-hou added a commit to Wenxing-hou/libspdm that referenced this issue Mar 4, 2024
Fix the issue: DMTF#2588

Signed-off-by: Wenxing Hou <[email protected]>
Wenxing-hou added a commit to Wenxing-hou/libspdm that referenced this issue Mar 5, 2024
Fix the issue: DMTF#2588

Signed-off-by: Wenxing Hou <[email protected]>
Wenxing-hou added a commit to Wenxing-hou/libspdm that referenced this issue Mar 5, 2024
Fix the issue: DMTF#2588

Signed-off-by: Wenxing Hou <[email protected]>
jyao1 pushed a commit that referenced this issue Mar 7, 2024
Fix the issue: #2588

Signed-off-by: Wenxing Hou <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants