Skip to content

How to use device certificate instead of CA certificate during GET_CERTIFICATE #2792

Answered by Wenxing-hou
Mumunn asked this question in Q&A
Discussion options

You must be logged in to vote

Sure. The spdm-emu requester will call libspdm_read_responder_root_public_certificate to set the responder CA cert to the requester.

        res = libspdm_read_responder_root_public_certificate(m_use_hash_algo,
                                                             m_use_asym_algo,
                                                             &data, &data_size,
                                                             &hash, &hash_size);
        if (res) {
            libspdm_x509_get_cert_from_cert_chain(
                (uint8_t *)data + sizeof(spdm_cert_chain_t) + hash_size,
                data_size - sizeof(spdm_cert_chain_t) - hash_size, 0,
                &root_cert, &root_…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Mumunn
Comment options

Answer selected by Mumunn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants