Command-line tool to decode and verify Intel SGX and TDX (DCAP) attestation quotes.
Part of dcap-qvl — a pure-Rust verifier for SGX/TDX quotes. See the main README for the library and the other language bindings.
cargo install dcap-qvl-cliThis installs a binary named dcap-qvl.
The tool has three subcommands. Each takes a quote file, and --hex if that file
is hex-encoded rather than raw bytes.
dcap-qvl verify quote.bin
# Require a strict UpToDate policy appraisal
dcap-qvl verify --strict quote.binCollateral is fetched from Phala's PCCS by default. Point it at another PCCS with
the PCCS_URL environment variable:
PCCS_URL=https://your-pccs/sgx/certification/v4/ dcap-qvl verify quote.binThe verified report is printed as JSON on stdout; progress goes to stderr.
dcap-qvl decode quote.bin # full parsed quote as JSON
dcap-qvl decode --hex quote.hex # hex-encoded input
dcap-qvl decode --fmspc quote.bin # print just the FMSPCdcap-qvl pckinfo quote.bingit clone https://github.com/Phala-Network/dcap-qvl.git
cd dcap-qvl
cargo run -p dcap-qvl-cli --bin dcap-qvl -- decode --hex sample/tdx-quote.hex | jq .MIT — see ../LICENSE.