# import

## <mark style="color:red;">ykman piv</mark> certificates import <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;">-m, --management-key TEXT</mark></td><td>The management key.</td></tr><tr><td><mark style="color:red;">-p, --password TEXT</mark></td><td>A password may be needed to decrypt the data.</td></tr><tr><td><mark style="color:red;">-P, --pin TEXT</mark></td><td>PIN code.</td></tr><tr><td><mark style="color:red;">-v, --verify</mark></td><td>Verify that the certificate matches the private key in the slot.</td></tr></tbody></table>

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

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

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

```properties
Usage: ykman.exe piv certificates import [OPTIONS] SLOT CERTIFICATE

  Import an X.509 certificate.

  Write a certificate to one of the PIV slots on the YubiKey.

  SLOT            PIV slot of the certificate.
  CERTIFICATE     File containing the certificate. Use '-' to use stdin.

Options:
  -m, --management-key TEXT  The management key.
  -P, --pin TEXT             PIN code.
  -p, --password TEXT        A password may be needed to decrypt the data.
  -v, --verify               Verify that the certificate matches the private key in the slot.
  -h, --help                 Show this message and exit.
```

{% endtab %}
{% endtabs %}

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

{% tabs %}
{% tab title="example 1" %}

```
```

{% endtab %}
{% endtabs %}
