> For the complete documentation index, see [llms.txt](https://docs.enclaive.cloud/nitride/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enclaive.cloud/nitride/documentation/getting-started/remote-attestation/setup.md).

# Setup

Learn how to do a remote attestation using vHSM nitride. You need to create an attestation policy on the verifier.

{% hint style="info" %}
**Note:** If you started Nitride by using the `vhsm nitride init` command then, it performs a series of operations to configure and secure your environment:

1. Creates essential Nitride identities, including: platform, firmware, and workload
2. Creates and attaches a Nitride policy from an embedded policy configuration.
3. Generates attestation objects based on your setup.
4. Bootstraps the environment to allow secure workload attestation and the issuance of access tokens with the appropriate permissions.
   {% endhint %}

## Create an Attestation Policy

1. Define the policy and metadata for the attestation session in a JSON file.&#x20;

**Example**: Create `attestation.json` file using an editor of your choice.&#x20;

```
{
  "name": "Azure MariaDB",
  "description": "A small Azure VM running MariaDB",
  "namespace": test
  "events": "https://vhsm.enclaive.cloud:8000",
  "policy": "azure-dc2asv5-raw"
}
```

**Explanations**:

* "name": A string uniquely identifying the workload attestation.
* "description": A human-readable description of the workload.
* "namespace": The namespace where the attestation will be created.
* "events": URL endpoint for attestation events (e.g., [https://vhsm.enclaive.cloud](<https://vhsm.enclaive.cloud/ >):8000).
* "policy": The name of the policy to use for this attestation.

2. Create an attestation&#x20;

**Example**:  `vhsm nitride attestation create @attestation.json`&#x20;

**Output:**

```
Key            Value
---            -----
created        1752752829
description    A small Azure VM running MariaDB
events         https://vhsm.enclaive.cloud:8000
name           Azure MariaDB
namespace      n/a
nonce          E5a8XdpQhg7f9ET0VMXIJT6HftUrvMWCob2Ki4B5EyEKn_MrekFjYRO_NzKc_ppUcSIXGSptY0bVrrI1tAQt_g==
policy         azure-dc2asv5-raw
updated        1752752873
uuid           f43042c2-3ac6-43fd-be0a-efbfd2c5b419
```

In this output, the UUID `f43042c2-3ac6-43fd-be0a-efbfd2c5b419` uniquely identifies the attestation session and it is attached to the policy `azure-dc2asv5-raw` .&#x20;

{% hint style="info" %}
Make a note of this UUID
{% endhint %}
