# Importing a Key or a Certificate

To import a Key or a Certificate, follow these steps:

1. Click on **Setup** → **Key Store**.
2. In the **Keys** or **Certificates** tab, click the **IMPORT** button.
3. Click the **UPLOAD** button and select the file to import on your local drive.
4. (Only for Keys) After selecting the file, the LABEL field will become editable and you can change the label if needed.
5. (Only for Keys) Select the **TYPE**:

   a. PRIVATE\_KEY\
   b. PUBLIC\_KEY
6. Select the **FORMAT**:

   a. PKCS8 (for a Key)\
   b. SSL (for a Key)\
   c. OPENSSH (for a Key)\
   d. PEM (for a Certificate)\
   e. DER (for a Certificate)
7. Press **Confirm**.

{% hint style="info" %}
The key pair is generated using the latest version of the ssh -keygen command, only keys generated by specifying the -m PEM option can be currently imported into the Key Store.
{% endhint %}


---

# 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.primeur.com/data-mover-1.21/security/key-stores-and-trust-stores/key-store/importing-a-key-or-a-certificate.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.
