# attest

## <mark style="color:red;">ykman piv</mark> keys attest <mark style="color:red;">OPTIONS</mark> SLOT CERTIFICATE

<table><thead><tr><th width="284">Options</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:red;">-h, --help</mark></td><td>Show this message and exit.</td></tr><tr><td><mark style="color:red;">-F, --format [PEM|DER]</mark></td><td>Encoding format.<br>[default: <mark style="color:red;"><code>PEM</code></mark>]</td></tr></tbody></table>

<table><thead><tr><th width="283">Arguments</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:red;">CERTIFICATE</mark></td><td>File to write attestation certificate to. <br>Use <mark style="color:red;"><code>'-'</code></mark> to use <mark style="color:red;"><code>stdout</code></mark>.</td></tr><tr><td><mark style="color:red;">SLOT</mark></td><td>PIV slot of the private key.</td></tr></tbody></table>

### <mark style="color:blue;">HELP</mark>

{% tabs %}
{% tab title="Help Command" %}

```properties
Usage: ykman.exe piv keys attest [OPTIONS] SLOT CERTIFICATE

  Generate an attestation certificate for a key pair.

  Attestation is used to show that an asymmetric key was generated on the YubiKey and therefore doesn't exist outside the device.

  SLOT        PIV slot of the private key.
  CERTIFICATE File to write attestation certificate to. Use '-' to use stdout.

Options:
  -F, --format [PEM|DER]  Encoding format.  [default: PEM]
  -h, --help              Show this message and exit.
```

{% endtab %}
{% endtabs %}
