# How to generate new keys (Edge Router)

Each key is valid for 48 hours before it expires. After that, you'll need to generate a new one. You can also generate a new key even if the current ones haven't expired yet.

Follow these steps to generate a new key and remember to reconfigure your local connection with the Edge Router if needed.

1. On the Platform home page, click on **Connectivity** in the upper right corner.
2. The page opens in the **Edge Router** tab.
3. In the Registered column, you can see that the possible statuses for the key are:&#x20;

* <mark style="background-color:green;">**Yes**</mark>: the key is registered and functioning.&#x20;
* <mark style="background-color:yellow;">**Pending**</mark>: your key still hasn’t been registered. Once the key has been generated, you have up to 48 hours to register it. Otherwise, it will expire.
* <mark style="background-color:red;">**Expired**</mark>: the generated key has expired. You must generate a new key.&#x20;

4. Click on the **Key Icon** at the right side of the page to generate a new key.&#x20;
5. A new window will appear. Click **Register new key** if you want to generate a new key or **Close** to go back to the previous screen.&#x20;
6. If you click on **Register new key**, you'll see the registration key code and an alert about its expiration time. Click the copy icon to copy the key, then close the window.

To register the Edge Router, run the command below in a terminal on the Edge Router, replacing `new_registration_key` with the key generated in the application:

```
sudo router-registration <registration key> --force
```

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4523BaA7JfghHEYBbLWY%2Fuploads%2FAF2tlMWiqVBFHKfgJ6Ev%2FZTNA_Generate_new_key_ENG%20-%20Made%20with%20Clipchamp.mp4?alt=media&token=538baa66-f3d4-4b5f-983c-0051002c1399>" %}


---

# 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.digibee.com/documentation/developer-guide/connectivity-management/ztna/new-keys.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.
