> ## 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.

# Retrieve

> Get certificate



## OpenAPI

````yaml GET /api/v1/cert-manager/certificates/{id}
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/certificates/{id}:
    get:
      tags:
        - PKI Certificates
      description: Get certificate
      operationId: getCertificate
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: The ID of the certificate to get.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  certificate:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
                      caId:
                        type: string
                        format: uuid
                        nullable: true
                      status:
                        type: string
                      serialNumber:
                        type: string
                      friendlyName:
                        type: string
                      commonName:
                        type: string
                      notBefore:
                        type: string
                        format: date-time
                      notAfter:
                        type: string
                        format: date-time
                      revokedAt:
                        type: string
                        format: date-time
                        nullable: true
                      revocationReason:
                        type: number
                        nullable: true
                      altNames:
                        type: string
                        nullable: true
                      caCertId:
                        type: string
                        format: uuid
                        nullable: true
                      certificateTemplateId:
                        type: string
                        format: uuid
                        nullable: true
                      keyUsages:
                        type: array
                        items:
                          type: string
                        nullable: true
                      extendedKeyUsages:
                        type: array
                        items:
                          type: string
                        nullable: true
                      pkiSubscriberId:
                        type: string
                        format: uuid
                        nullable: true
                      profileId:
                        type: string
                        format: uuid
                        nullable: true
                      renewBeforeDays:
                        type: number
                        nullable: true
                      renewedFromCertificateId:
                        type: string
                        format: uuid
                        nullable: true
                      renewedByCertificateId:
                        type: string
                        format: uuid
                        nullable: true
                      renewalError:
                        type: string
                        nullable: true
                      keyAlgorithm:
                        type: string
                        nullable: true
                      signatureAlgorithm:
                        type: string
                        nullable: true
                      subjectOrganization:
                        type: string
                        nullable: true
                      subjectOrganizationalUnit:
                        type: string
                        nullable: true
                      subjectCountry:
                        type: string
                        nullable: true
                      subjectState:
                        type: string
                        nullable: true
                      subjectLocality:
                        type: string
                        nullable: true
                      fingerprintSha256:
                        type: string
                        nullable: true
                      fingerprintSha1:
                        type: string
                        nullable: true
                      isCA:
                        type: boolean
                        nullable: true
                      pathLength:
                        type: number
                        nullable: true
                      source:
                        type: string
                        nullable: true
                      discoveryMetadata:
                        nullable: true
                      externalMetadata:
                        nullable: true
                      applicationId:
                        type: string
                        format: uuid
                        nullable: true
                      subject:
                        type: object
                        properties:
                          commonName:
                            type: string
                          organization:
                            type: string
                          organizationalUnit:
                            type: string
                          country:
                            type: string
                          state:
                            type: string
                          locality:
                            type: string
                        additionalProperties: false
                      fingerprints:
                        type: object
                        properties:
                          sha256:
                            type: string
                          sha1:
                            type: string
                        required:
                          - sha256
                        additionalProperties: false
                      basicConstraints:
                        type: object
                        properties:
                          isCA:
                            type: boolean
                          pathLength:
                            type: number
                        required:
                          - isCA
                        additionalProperties: false
                      caName:
                        type: string
                        nullable: true
                      caType:
                        type: string
                        enum:
                          - internal
                          - external
                        nullable: true
                      profileName:
                        type: string
                        nullable: true
                      applicationName:
                        type: string
                        nullable: true
                      metadata:
                        type: array
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                            value:
                              type: string
                          required:
                            - key
                            - value
                          additionalProperties: false
                    required:
                      - id
                      - createdAt
                      - updatedAt
                      - status
                      - serialNumber
                      - friendlyName
                      - commonName
                      - notBefore
                      - notAfter
                    additionalProperties: false
                required:
                  - certificate
                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

````