> For the complete documentation index, see [llms.txt](https://help.cerby.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.cerby.com/setup-and-admin/workspace-settings/webhooks/rotate-a-webhook-signing-key.md).

# Rotate a webhook signing key

{% hint style="info" %}
**Who can use this feature?**

* Workspace **Owners**, **Super Admins**, and **Admins**
* Supported using the **Cerby web app**
  {% endhint %}

As a workspace **Owner**, **Super Admin**, or **Admin**, you can rotate a webhook's signing key when a key is compromised or as part of a regular key rotation policy. During rotation, Cerby dual-signs requests with both the old and new keys for 24 hours, giving your system time to update its stored key before the old key expires. You cannot start a second rotation while a grace period is active.

During the 24-hour grace period, each delivery includes two `X-Cerby-Signature` headers and two `X-Cerby-Signature-Key-Id` headers, with the new key first. Accept the request if either signature validates.

To rotate a signing key, complete the following steps:

1. Log in to your [Cerby](https://app.cerby.com/) workspace.
2. Select **Settings** from the left navigation. The **Workspace Configuration** page is displayed.
3. Select the **Webhooks** left tab.
4. Click the name of the webhook whose key you want to rotate. The webhook detail page is displayed.
5. Locate the **Signing and verification** card and click the rotate button:

   * **Ed25519:** Click **Rotate public key**.
   * **HMAC-SHA256:** Click **Rotate secret**.

   A confirmation dialog box is displayed, describing the 24-hour dual-sign grace period.
6. Review the confirmation and click the confirm button:

   * **Ed25519:** Click **Rotate public key**.
   * **HMAC-SHA256:** Click **Rotate secret**.

   For **Ed25519**, the rotation begins immediately. The new public key appears in the **Signing and verification** card.

   For **HMAC-SHA256**, a dialog box is displayed showing the new signing secret.

{% hint style="danger" %}
**HMAC-SHA256 only:** Copy the new **Signing secret** value before closing the dialog box. Cerby displays it only once and cannot recover it.
{% endhint %}

7. Update your stored key in your verification system.
8. Click the **Done** button. Cerby begins dual-signing requests with both the old and new keys. After 24 hours, Cerby automatically expires the old key.

Now you are done.

## Related articles

**Developer reference:**

* [Implement a webhook receiver](https://github.com/cerbyinc/help-center/tree/main/extending_cerby/public-api/implement-a-webhook-receiver.md)

**Troubleshooting:**

* [Troubleshooting: Webhook deliveries failing](https://github.com/cerbyinc/help-center/tree/main/tips_and_troubleshooting/troubleshooting/webhooks/troubleshooting-webhook-deliveries-failing.md)


---

# 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://help.cerby.com/setup-and-admin/workspace-settings/webhooks/rotate-a-webhook-signing-key.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.
