> 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/protect/encryption-and-policies/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**.

![](/files/203c0bc4e6d461b4fa5df3261d61b57d1abc1dd6)

### 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:**

In **Key Rotation Interval**, select a duration and click **Scheduled Key Rotation** to activate the rotation cycle.

![](/files/d3ead13eb0a2239f882486b8d196058068ea920d)

### 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:**

Click **Rotate Keys Now!** to immediately generate and deploy new encryption keys across the system.

![](/files/0dc831476ab881420402c74c2cf02143aa47f21a)

### 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:**

In **Default Offline Key Lifespan**, select a duration and click **Set Lifespan**.

![](/files/b09cd149cd1292bcd3e711e84a5a62d65ad65d7c)

### 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. Select a **Security Group** from the dropdown.
2. Select the users whose status you want to change.
3. Click **Enable Users** or **Disable Users** based on your needs.

### 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="/files/uWzNudRrXDjthJtq6YhU" 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 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.guardware.com/protect/encryption-and-policies/key-management.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.
