# Creating a Key

To **create a Key**, follow these steps:

1. Click on **Setup** → **Key Store** and verify that the **Keys** tab is selected.
2. In the **Cluster** drop-down list, select a cluster.
3. Click the **NEW** button and enter the following details:

| Parameter           | Definition                                                                                                                                                                        |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **NAME (\*)**       | Enter the name of the key                                                                                                                                                         |
| **SIZE (\*)**       | <p>SIZE\_512<br>SIZE\_1024<br>SIZE\_2048<br>SIZE\_3072<br>SIZE\_4096</p>                                                                                                          |
| **ALGORITHM (\*)**  | <p>SHA1WithRSA<br>SHA256WithRSA<br>SHA512WithRSA<br>SHA1WithDSA<br>SHA256WithDSA<br>SHA512WithDSA<br>ED25519<br>SHA1WithECDSA<br>SHA256WithECDSA<br>SHA512WithECDSA</p>           |
| **SUBJECT**         | <p>Attribute subjects of a certificate:<br>• CN: CommonName<br>• OU: OrganizationalUnit<br>• O: Organization<br>• L: Locality<br>• S: StateOrProvinceName<br>• C: CountryName</p> |
| **SELF SIGNED KEY** | Check this box if you want a self-signed X.509 certificate to be generated for this private key. If this value is checked, a new parameter will appear.                           |
| **VALIDITY (\*)**   | Only available if the **Self signed key** box is checked. Insert a positive value indicating the validity of the key (in days).                                                   |

4. Press **Confirm** to save.


---

# 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/creating-a-key.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.
