Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

2.6 KB
Raw Blame
---
title: "Certificate cleanup"
sidebarTitle: "Certificate cleanup"
description: "Automatically delete expired certificates to keep your inventory organized."
---

Automatically delete expired certificates in Infisical Certificate Management. Cleanup runs daily and deletes certificates that have been expired for a configurable number of days.

<Info>
  This setting is managed by product admins and applies to all certificates in Infisical Certificate Management.
</Info>

## Configure certificate cleanup

<Steps>
  <Step title="Navigate to settings">
    Go to **Certificate Manager → Settings → Certificate Cleanup**.
  </Step>
  <Step title="Enable cleanup">
    Toggle **Enable** to turn on automatic cleanup.
  </Step>
  <Step title="Set retention period">
    Configure **Delete certificates N days after expiration**:
    
    | Value | Behavior |
    |-------|----------|
    | `3` | Certificates are deleted 3 days after expiration |
    | `7` | Certificates are deleted 7 days after expiration |
    | `30` | Certificates are deleted 30 days after expiration |
    
    <Note>
      Values must be between 1 and 30 days.
    </Note>
  </Step>
  <Step title="Configure options">
    | Option | Description |
    |--------|-------------|
    | **Skip Certificates with Active Syncs** | Don't delete certificates that are synced to external services (AWS ACM, Azure Key Vault, etc.) |
    
    <Warning>
      Deleting synced certificates can break integrations. Enable this option if you use certificate syncs.
    </Warning>
  </Step>
</Steps>

## Monitoring cleanup

After the cleanup job runs, the settings page displays:

| Field | Description |
|-------|-------------|
| **Status** | Whether the last run succeeded or failed |
| **Last Run** | Date and time of the last execution |
| **Certificates Removed** | Number of certificates deleted |

## Permissions

Only **Product Admins** can configure certificate cleanup settings.

## What's next?

<CardGroup cols={2}>
  <Card title="Certificate Policies" icon="file-text" href="/documentation/platform/pki/settings/policies">
    Define constraints for certificates.
  </Card>
  <Card title="Certificate Profiles" icon="file-badge" href="/documentation/platform/pki/settings/profiles">
    Create profiles that link CAs with policies.
  </Card>
  <Card title="Managing Certificates" icon="list" href="/documentation/platform/pki/applications/certificates">
    View and manage certificates in Applications.
  </Card>
  <Card title="Certificate Syncs" icon="refresh-cw" href="/documentation/platform/pki/applications/certificate-syncs/overview">
    Push certificates to cloud destinations.
  </Card>
</CardGroup>