# Import a master encryption key from Google HSM to FenixPyre

Creating a Key in GCP for FenixPyre

**Navigate to Key Ring in GCP Console:**

* Access the Google Cloud Platform console and navigate to your key ring.

**Create a New Key:**

* Click on **Create Key**.<br>

  <figure><img src="/files/hLcQE9uRTZVS2UgeYHBi" alt=""><figcaption></figcaption></figure>

**Configure Key Details:**

* In the **Name** field, enter a name for your new key.
* For the protection level, select the **HSM** radio button.
* Click on **Continue**.\ <br>

  <figure><img src="/files/tKCk0Wgeji3UmQPXUrdA" alt=""><figcaption></figcaption></figure>

**Select Key Type and Purpose:**

* Choose **HSM-Generated-Key**.
* For Purpose and Algorithm, select **Symmetric encrypt decrypt**.

**Complete Key Creation:**

* Click on **Continue**, then click on **Create**.
* You will now see the new key created in HSM.

#### Importing a Master Key in FenixPyre Using Google Cloud

1. **Access the FenixPyre Dashboard:**
   * Log in to your FenixPyre Dashboard with your administrative credentials.
2. **Add a New Master Encryption Key:**
   * Navigate to **Key Management**.
   * Click on **Add New Master Encryption Key**.
3. **Select the Appropriate Vault:**
   * Choose the vault where your encryption key was created from the dropdown menu.
4. **Specify the Key Name:**
   * Enter the name of the key you wish to use.
5. **Import the Key:**
   * Click on **Import a Key**.
   * Enter the same key name that you specified when creating the key in the key ring.
   * Ensure that the key was created in the same vault selected in step 3.
   * Click on **Import** to finalize the key import process.

**Note:** It is crucial to ensure that the key name and vault match the details from the creation process to successfully import the key.

***


---

# 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.fenixpyre.com/fenixpyre-for-admins/admin-dashboard/key-management/master-encryption-keys/setup-bring-your-own-master-encryption-key-byomek-with-google-hsm/import-a-master-encryption-key-from-google-hsm-to-fenixpyre.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.
