Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 3.09 KB

guest-attestation-example.md

File metadata and controls

74 lines (50 loc) · 3.09 KB
title description author ms.author ms.service ms.subservice ms.topic ms.date ms.custom
Use sample application for guest attestation in confidential VMs
Learn how to use a sample Linux or Windows application for use with the guest attestation feature APIs.
prasadmsft
reprasa
azure-virtual-machines
azure-confidential-computing
how-to
04/11/2023
template-concept, linux-related-content

Use sample application for guest attestation

The guest attestation feature helps you to confirm that a confidential VM runs on a hardware-based trusted execution environment (TEE) with security features enabled for isolation and integrity.

Sample applications for use with the guest attestation APIs are available on GitHub.

Depending on your type of scenario, you can reuse the sample code in your client program or workload code.

Prerequisites

Use sample application

To use a sample application in C++ for use with the guest attestation APIs, follow the instructions for your operating system (OS).

  1. Sign in to your VM.

  2. Clone the sample Linux application.

  3. Install the build-essential package. This package installs everything required for compiling the sample application.

    sudo apt-get install build-essential
  4. Install the libcurl4-openssl-dev and libjsoncpp-dev packages.

    sudo apt-get install libcurl4-openssl-dev
    sudo apt-get install libjsoncpp-dev
  5. Download the attestation package from https://packages.microsoft.com/repos/azurecore/pool/main/a/azguestattestation1/.

  6. Install the attestation package. Make sure to replace <version> with the version that you downloaded.

    sudo dpkg -i azguestattestation1_<latest-version>_amd64.deb
  1. Install Visual Studio with the Desktop development with C++ workload.
  2. Clone the sample Windows application.
  3. Build your project. From the Build menu, select Build Solution.
  4. After the build succeeds, go to the Release build folder.
  5. Run the application by running the AttestationClientApp.exe.

Next steps