> For the complete documentation index, see [llms.txt](https://docs.guardware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guardware.com/documentation/protect/key-management/key-management.md).

# Key Management

The **Key Management** section lets you configure key rotation and key lifecycle settings to maintain encryption security. These keys ensure that only authorised users and applications can open encrypted files.\
In any encryption system, attackers may eventually gain access to private keys. To reduce this risk, the private keys used for file encryption should be changed regularly. To maintain security, PROTECT supports **scheduled key rotation**, **immediate key rotation**, **offline key lifespan control**, and **user key status changes**.

![](https://2233655803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi6thNYq9Il6WA2mTbj6X%2Fuploads%2FSInNKA1E6oFCYtl3JZZd%2FUnknown%20image?alt=media\&token=80924c15-2734-40cd-ac9a-3f2701919d4e)

### Change User Key Status

This section allows you to enable or disable encryption key access for specific users within a selected security group. When a user’s key status is disabled, they will no longer be able to access any protected files.

**To change user key status:**

1. Navigate to **PROTECT > Key Management > Change User Key Status.**
2. Select a **Security Group** from the dropdown.
3. Select the users whose status you want to change.
4. Click **Enable Users** or **Disable Users** based on your needs. <br>

   <figure><img src="https://2233655803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi6thNYq9Il6WA2mTbj6X%2Fuploads%2FQT1L9VFkIi4x74I93vKX%2Fimage.png?alt=media&amp;token=8d6c0458-da69-4138-bb4b-d56a1feaded1" alt=""><figcaption></figcaption></figure>

### Default Offline Key Lifespan

Offline keys determine how long a user can access encrypted files without being connected to the PROTECT server.

If a user does not reconnect to PROTECT within the defined timeframe, their offline key expires. This prevents unauthorised access when a device is lost, stolen, or offline for too long.

**To define the default offline key lifespan:**

1. Navigate to **PROTECT > Key Management > Default Offline Key Lifespan.**
2. In **Default Offline Key Lifespan**, select a duration and click **Set Lifespan**.<br>

   <figure><img src="https://2233655803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi6thNYq9Il6WA2mTbj6X%2Fuploads%2FWYsuwjJyGipQBLDng6SA%2Fimage.png?alt=media&amp;token=1fb0e70e-cffc-4be4-b677-779728b87bde" alt=""><figcaption></figcaption></figure>

### Scheduled Key Rotation

This section lets you set scheduled key rotation intervals. Regular key rotation ensures that even if old keys are compromised, newer files remain secure.

**How Scheduled Rotation Works**

* PROTECT automatically generates new private keys based on the selected interval.
* New keys are distributed to all PROTECT Clients before the old keys expire.
* Once the old key expires, PROTECT Clients automatically use the updated keys.

**To schedule key rotation:**

1. Navigate to **PROTECT > Key Management > Scheduled Key Rotation.**
2. In **Key Rotation Interval**, select a duration and click **Scheduled Key Rotation** to activate the rotation cycle.&#x20;

<figure><img src="https://2233655803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi6thNYq9Il6WA2mTbj6X%2Fuploads%2Frqw3x7l3m6QV3ignPciu%2Fimage.png?alt=media&amp;token=440fd303-c041-4c2a-bceb-bbe65da217e5" alt=""><figcaption></figcaption></figure>

### Immediate Key Rotation

Use immediate key rotation if a private key has been compromised, such as in cases like lost or stolen devices, compromised accounts, and suspected security breaches.

**To rotate the key immediately:**

1. Navigate to **PROTECT > Key Management > Immediate Key Rotation.**
2. Click **Rotate Keys Now!** to immediately generate and deploy new encryption keys across the system.

<figure><img src="https://2233655803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi6thNYq9Il6WA2mTbj6X%2Fuploads%2FD9q6L8plSCCqOnsldbOS%2Fimage.png?alt=media&amp;token=cd1e0eb9-4fae-40d4-aac2-afbd16be0ad2" alt=""><figcaption></figcaption></figure>

### View History

Click **View History** at the top-right corner to view a complete log of previous key rotations, changes, and key-related events.

<figure><img src="https://2233655803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi6thNYq9Il6WA2mTbj6X%2Fuploads%2Fc0FcCxcf35GozBnuHSPs%2Fimage.png?alt=media&amp;token=f1a5822a-0620-4729-a0cf-4a432fa6178a" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.guardware.com/documentation/protect/key-management/key-management.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
