> 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/generate-a-nonce.md).

# Generate a Nonce

{% hint style="info" %}
**Note**: A nonce is a random, one-time-use value generated by the verifier and sent to the attester.

* It ensures the attestation report is fresh and not a replay of an old, potentially compromised report.
* It binds the attestation to a specific request, preventing replay attacks.
  {% endhint %}

## Create the Nonce&#x20;

Generate a nonce for the session. For more information see, the [attestation nonce CLI](/nitride/cli/attestation/nonce.md).

**Example**

```
vhsm nitride attestation nonce f43042c2-3ac6-43fd-be0a-efbfd2c5b419
```

**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
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.enclaive.cloud/nitride/documentation/getting-started/remote-attestation/generate-a-nonce.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
