> For the complete documentation index, see [llms.txt](https://docs.digibee.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digibee.com/documentation/developer-guide/pt-br/connectivity-management/ztna/new-keys.md).

# Como gerar novas chaves (Edge Router)

Cada chave é válida por 48 horas antes de expirar. Depois disso, você precisará gerar uma nova. Você também pode gerar uma nova chave mesmo que as atuais ainda não tenham expirado.

Siga estas etapas para gerar uma nova chave e lembre-se de reconfigurar sua conexão local com o Edge Router, se necessário.

1. Na página inicial da plataforma, clique em **Conectividade** no canto superior direito.
2. A página abre na aba **Edge Router**.
3. Na coluna Registrado, você pode ver que os possíveis status para a chave são:

* <mark style="background-color:green;">**Sim**</mark>: a chave está registrada e funcionando.
* <mark style="background-color:yellow;">**Pendente**</mark>: sua chave ainda não foi registrada. Depois que a chave for gerada, você tem até 48 horas para registrá-la. Caso contrário, ela vai expirar.&#x20;
* <mark style="background-color:red;">**Expirada**</mark>: a chave gerada expirou. Você deve gerar uma nova chave.

4. Clique no **ícone de chave** no lado direito da página para gerar uma nova chave.
5. Uma nova janela aparecerá. Clique em **Registrar nova chave** se quiser gerar uma nova chave ou **Fechar** para voltar à tela anterior.
6. Se você clicar em **Registrar nova chave**, verá o código da chave de registro e um alerta sobre seu tempo de expiração. Clique no ícone de cópia para copiar a chave e feche a janela.
7. Para registrar o Edge Router, execute o comando abaixo em um terminal no Edge Router, substituindo `new_registration_key` com a chave gerada na aplicação:&#x20;

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

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkqXsI0cPgzRnwxNhnH%2Fuploads%2Fm3syZNGWFKW9oVKD3gHW%2FZTNA_Generate_new_key_ENG%20-%20Made%20with%20Clipchamp.mp4?alt=media&token=5b5d943f-d19d-44d1-b420-19f09075622e>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.digibee.com/documentation/developer-guide/pt-br/connectivity-management/ztna/new-keys.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
