# local

## Usage

```
vhsm nitride attestation local report=@report.json nonce=<nonce> @policy.json [flags]
```

Performs attestation operations locally, including report verification, nonce generation, attestation generation, and verification.

#### Parameters

* `report=@report.json`: Path to the attestation report file to verify (the file must exist).
* `nonce=<nonce>`: The nonce value used in the attestation.
* `@policy.json`: Path to the policy file defining the attestation requirements (the file must exist).

#### Flags

* [Global HTTP Options](/nitride/cli.md#global-options)
* [Output Options](/nitride/cli.md#output-options)
* [Command Options](/nitride/cli.md#command-options)

#### Examples

Verify a local attestation report:

```
vhsm nitride attestation local report=@attestation-report.json nonce=abc123 @policy.json
```

**Additional Example**:

Verify with base64 encoded report:

```
vhsm nitride attestation local report=@report.base64 nonce=abc123 @policy.json -base64
```

Verify with custom output format:

```
vhsm nitride attestation local report=@report.json nonce=abc123 @policy.json -format=json
```

**Note:**

* The command performs local verification without requiring a vHSM server connection.
* The `@report.json` syntax means the file is read and its contents are used for verification.
* The `@policy.json` syntax means the file is read and its contents are used as the policy.
* Both files must exist in the current directory or provide the full path.
* Use the -base64 flag if the report is base64 encoded.
* For more information about attesting locally, see[ Verify identities and policies locally.](/nitride/tutorials/attestation-blueprint-1/verify-identities-and-policies-locally.md)


---

# Agent Instructions: 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:

```
GET https://docs.enclaive.cloud/nitride/cli/attestation/local.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
