Skip to content

Latest commit

 

History

History

QuoteVerification

README.md

Intel(R) Software Guard Extensions Data Center Attestation Primitives (Intel(R) SGX DCAP) Quote Verification Enclave Quick Start Guide

Build QvE and dcap_quoteverify libraries, non-production only (for debug purposes). For production you must use Intel(R) signed QvE.

Linux

Supported operating systems:

  • Ubuntu* Server (64-bit): 22.04, 24.04, 26.04 LTS
  • Red Hat Enterprise Linux* Server (64-bit): 9.6, 9.8, 10.0, 10.2
  • CentOS* Stream (64-bit): 9, 10
  • SUSE Linux Enterprise Server* (64-bit): 15 SP7, 16
  • Anolis* OS (64-bit): 8.10
  • Azure* Linux (64-bit): 3.0
  • Debian* (64-bit): 10, 12, 13

Requirements:

  • make
  • gcc
  • g++
  • ZIP
  • bash shell

Pre-requisites:

  • Intel(R) SGX SDK
  • Intel(R) SgxSSL: Follow instructions in https://github.com/intel/intel-sgx-ssl (By default SgxSSL will automatically be downloaded and built if not in SGX Docker container). You should use latest OpenSSL to build SgxSSL.

Build dcap_quoteverify.so and libsgx_qve.signed.so (Only for debug purposes):

$ cd QuoteVerification/
$ make
Generate a key and sign generated QvE enclave:
$ /opt/intel/sgxsdk/bin/x64/sgx_sign sign -key Enclave/<GENERATED_KEY>.pem -enclave qve.so -out libsgx_qve.signed.so -config Enclave/qve.config.xml

Build qve.so in SGX Docker container:

Use the script prepare_sgxssl.sh to download SgxSSL outside SGX Docker container firstly: Note: You may need set https proxy for the wget tool used by the script (such as export https_proxy=http://test-proxy:test-port)

$ cd QuoteVerification/
Outside SGX Docker container, download SgxSSL to ./sgxssl folder
$ ./prepare_sgxssl.sh nobuild
Inside SGX Docker container, build QvE enclave
$ make -C QvE

Windows

Supported operating systems:

  • Windows* Server 2019 (Long-Term Servicing Channel)
  • Windows* Server 2022 (Long-Term Servicing Channel)
  • Windows* Server 2025 (Long-Term Servicing Channel)

Requirements:

  • Microsoft Visual Studio 2019 or newer.
  • 7-Zip
  • Perl #for OpenSSL build
  • NASM (Netwide Assembler)

Pre-requisites:

  • Intel(R) SGX SDK.
  • Intel(R) SgxSSL: Follow instructions in https://github.com/intel/intel-sgx-ssl (By default SgxSSL will automatically be downloaded and built). You should use latest OpenSSL to build SgxSSL.

Build sgx_dcap_quoteverify.dll and qve.signed.dll (Only for debug purposes):

> Prepare SgxSSL by running script "prepare_sgxssl.cmd" in dcap_source\QuoteVerification
  > prepare_sgxssl.cmd x64 Debug
  > prepare_sgxssl.cmd x64 Release
  > prepare_sgxssl.cmd x64 CVE-2020-0551-CF-Release
  > prepare_sgxssl.cmd x64 CVE-2020-0551-Load-Release

> In dcap_source directory, use Visual Studio to open ``SGX_DCAP.sln`` and build

Layout

Directory Role
dcap_quoteverify/ libsgx_dcap_quoteverify: public headers, exports, packaging and Rust bindings. Links the parts below; no logic of its own.
verification/ Quote verification: QVL core (submodule) and its wrapper.
appraisal/ Quote appraisal: QAL core (submodule), its wrapper and tee_appraisal_tool.
common/ QPL / uRTS loading and configuration shared by both wrappers.
servtd/ libservtd_attest.a, the freestanding attestation library for Service TDs (e.g. MigTD). A separate flavor, not part of make here: make servtd.

make here builds everything above; make verification, make appraisal and make common build a single part (Linux). On Windows each part is its own project in SGX_DCAP.sln.

appraisal links the libraries QAL builds from its own submodules, so clone with --recurse-submodules (or run git submodule update --init --recursive).

Dependencies: verification and appraisal both use common. verification also calls tee_qae_get_target_info from appraisal for the QVT APIs (tee_verify_quote_qvt*), so its archive does not link on its own. The standalone archives are for building one part; libsgx_dcap_quoteverify links the component objects directly.

Dependencies outside this directory: QuoteGeneration/buildenv.mk (build settings and output directory) and QuoteGeneration/common/inc/internal (tracing, threading and version headers) for every part. servtd additionally uses QuoteGeneration/quote_wrapper/qgs_msg_lib, servtd_ghci and, for its deprecated get_quote(), tdx_attest.

Tip

Updating a checkout from before this layout: run git submodule update --init --recursive, then delete the leftover QuoteVerification/QVL and QuoteVerification/QAL directories (git cannot remove populated submodule directories on checkout).