Git Product home page Git Product logo

Comments (2)

steven-bellock avatar steven-bellock commented on August 22, 2024

With LIBSPDM_DATA_LOCAL_PUBLIC_CERT_CHAIN are you forming the entire SPDM certificate chain structure?

Byte offset Field Size (bytes) Description
0 Length 2 Shall be the total length of the certificate chain, in bytes, including all fields in this table. This field is little endian.
2 Reserved 2 Reserved.
4 RootHash H Shall be the digest of the Root Certificate. Note that the Root Certificate is ASN.1 DER-encoded for this digest. This field shall be in hash byte order. H is the output size, in bytes, of the hash algorithm selected by the most recent ALGORITHMS response.
4 + H Certificates Length - (4 + H) Shall be a complete certificate chain consisting of one or more ASN.1 DER-encoded X.509 v3 certificates. This field shall be in Encoded ASN.1 byte order.

I noticed the documentation does not explicitly specify this.

- `LIBSPDM_DATA_LOCAL_PUBLIC_CERT_CHAIN`
- Allows multiple pointers to certificate chains to be stored in slots through the
`additional_data` field. A certificate chain can then be returned through a `CERTIFICATE`
response message. The certificate chain(s) must be encoded as ASN.1 DER.
I'll file a separate issue for this.

from libspdm.

mazen-mahmoud16 avatar mazen-mahmoud16 commented on August 22, 2024

It works but the issue was in
cat rootCA.der intermediateCA.der leaf.der > certificate_chain.der

When I concat the files manually into certificate_chain.der it works.

from libspdm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.