Git Product home page Git Product logo

Comments (1)

deeglaze avatar deeglaze commented on May 3, 2024

You have to use a different device to set the certificate data blob, since it's a host-side operation. That's out of scope for this repository, but it does look like the snphost repo is using the right command to /dev/sev, which is SNP_SET_EXT_CONFIG.

The GUID table data structure is really quite simple, as you can see from the abi package. I don't have a Marshal function to go from the cert proto to the ABI format, but it would be an easy addition. So you could combine the kds and abi packages of go-sev-guest to produce the data structure you'd need to pass to SNP_SET_EXT_CONFIG. I'd review a PR for such a marshal function (and tests).

To address your question of how to get the CHIP_ID (AKA HWID) and REPORTED_TCB_VERSION, that again is a /dev/sev device command, SNP_GET_EXT_CONFIG, which gets the CHIP_ID and REPORTED_TCB_VERSION from the secure processor firmware, without necessarily needing to have the certificates installed already. With those two values, you can construct a GET query to KDS and get your VCEK certificate.

While we have a tool internally for provisioning certificates from the KDS to install them on host machines, we haven't planned to open source it since that's more of a fleet management tool than an attestation verification tool. What we do will be rather specialized to how machines are initialized and scheduled, etc.

from go-sev-guest.

Related Issues (10)

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.