> ## Documentation Index
> Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke certificate

> Revoke the signer's certificate, which stops the signer from signing right away and cancels any certificate request in progress. While the CA processes the revoke, the signer's status is `revocation_pending`. If the CA queues the revoke for approval (DigiCert can), it stays there until the request is approved (`revoked`) or rejected. If the CA refuses the revoke, the certificate stays valid, the signer goes back to `active` (or stays `disabled`), the signer's admins get an in-app notification, and a canceled renewal must be started again. To sign again after a revoke, reissue the certificate with a new key.



## OpenAPI

````yaml POST /api/v1/cert-manager/signers/{signerId}/certificate/revoke
openapi: 3.0.3
info:
  title: Infisical API
  description: List of all available APIs that can be consumed
  version: 0.0.1
servers:
  - url: https://us.infisical.com
    description: Production server (US)
  - url: https://eu.infisical.com
    description: Production server (EU)
  - url: http://localhost:8080
    description: Local server
security: []
paths:
  /api/v1/cert-manager/signers/{signerId}/certificate/revoke:
    post:
      tags:
        - PKI Signers
      description: >-
        Revoke the signer's certificate, which stops the signer from signing
        right away and cancels any certificate request in progress. While the CA
        processes the revoke, the signer's status is `revocation_pending`. If
        the CA queues the revoke for approval (DigiCert can), it stays there
        until the request is approved (`revoked`) or rejected. If the CA refuses
        the revoke, the certificate stays valid, the signer goes back to
        `active` (or stays `disabled`), the signer's admins get an in-app
        notification, and a canceled renewal must be started again. To sign
        again after a revoke, reissue the certificate with a new key.
      operationId: revokeSignerCertificate
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: signerId
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                revocationReason:
                  type: string
                  enum:
                    - UNSPECIFIED
                    - KEY_COMPROMISE
                    - CA_COMPROMISE
                    - AFFILIATION_CHANGED
                    - SUPERSEDED
                    - CESSATION_OF_OPERATION
                    - PRIVILEGE_WITHDRAWN
                    - A_A_COMPROMISE
                  description: The reason for revoking the certificate.
              required:
                - revocationReason
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                  description:
                    type: string
                    nullable: true
                  status:
                    type: string
                    default: active
                  certificateId:
                    type: string
                    format: uuid
                    nullable: true
                  approvalPolicyId:
                    type: string
                    format: uuid
                    nullable: true
                  lastSignedAt:
                    type: string
                    format: date-time
                    nullable: true
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  caId:
                    type: string
                    format: uuid
                    nullable: true
                  commonName:
                    type: string
                    nullable: true
                  certificateTtlDays:
                    type: number
                    nullable: true
                  certificateRenewBeforeDays:
                    type: number
                    nullable: true
                  certificateFailureReason:
                    type: string
                    nullable: true
                  keyAlgorithm:
                    type: string
                    default: RSA_2048
                  externalCaConfig:
                    nullable: true
                  nextAutoRenewalAt:
                    type: string
                    format: date-time
                    nullable: true
                  revocation:
                    type: object
                    properties:
                      status:
                        type: string
                        enum:
                          - submitting
                          - awaiting_approval
                          - failed
                      caRequestId:
                        type: number
                        nullable: true
                      failureReason:
                        type: string
                        nullable: true
                    required:
                      - status
                      - caRequestId
                      - failureReason
                    additionalProperties: false
                    nullable: true
                  crlWarning:
                    type: string
                    description: >-
                      Set when the certificate was revoked but its CA's CRL
                      couldn't be regenerated yet.
                required:
                  - id
                  - name
                  - createdAt
                  - updatedAt
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 400
                  message:
                    type: string
                  error:
                    type: string
                  details: {}
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 401
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 403
                  message:
                    type: string
                  details: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 404
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 422
                  message: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - error
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 500
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.