IBM Cloud Docs
Attestation with Intel SGX or TDX for Virtual Servers for VPC

Attestation with Intel SGX or TDX for Virtual Servers for VPC

Select availability

Attestation is a process that validates that a runtime environment is instantiated in an encrypted SGX or TDX enclave on a system with a known security configuration. Data Center Attestation Primitives (DCAP) from Intel facilitates Attestation.

Confidential computing with Intel SGX for VPC is available only in the Dallas (us-south) and Frankfurt (eu-de) regions. Confidential computing with Intel TDX for VPC is available for select customers. Contact IBM Sales if you are interested in being allowlisted and using this offering. Confidential computing with Intel TDX for VPC is available only in the Washington DC (us-east) region. Confidential computing is only available with select profiles. For more information, see SGX-compatible profiles.

Intel SGX helps protect data in use through application isolation technology. Intel TDX helps protect data in use through virtual machine isolation technology. By using these features, developers can protect the integrity and confidentiality of their code and data.

Enabling attestation in SGX VSI

The PCK certificate is readily made available in the SGX VSI, thus eliminating the need to procure from a PCCS service. This certificate is at /root/.dcap-qcnl/*.

Install DCAP and QCNL packages; as specified by Intel.

Install DCAP version 1.19 or greater since previous versions do not support locally cached certificates.

Reconfigure AESM to use the locally cached PCK certificate and restart the service as shown in the following example.

 Configure  /etc/sgx_default_qcnl.conf
 "use_secure_cert": false
 "local_cache_only": true

 and restart aesmd

 systemctl restart aesmd

Non-root user must copy the /root/.dcap-qcnl/* directory to their $HOME directory to use DCAP.

Enabling attestation in TDX VSI

TDX supports vSOCK-based attestation which is based on DCAP SDK version 1.21 or greater.

Install DCAP package; as specified by Intel.

Configure the qgsd vSOCK port in the TDX virtual server instance. In the TDX virtual server instance, create a file named /etc/tdx-attest.conf and add the following line.

 port=4050

SGX and TDX documentation from Intel

For more information about SGX, see the following links.

For more information about TDX, see Intel TDX Remote Attestation