CA Certificates

Get a CA Certificate

Changed on

Get a CA Certificate using ID.

get/ca_certificates/{CACertificateId}

Request

  • Base URL
    http://localhost:8001
  • Auth
    API key in header Kong-Admin-Token

Path parameters

CACertificateId, string required

ID of the CA Certificate to lookup

Response

Successfully fetched CA Certificate

CACertificate required

A CA certificate object represents a trusted CA. These objects are used by Kong to verify the validity of a client or server certificate.

cert, string required

PEM-encoded public certificate of the CA.

cert_digest, string nullable

SHA256 hex digest of the public certificate. This field is read-only and it cannot be set by the caller, the value is automatically computed.

created_at, integer nullable

Unix epoch when the resource was created.

id, string nullable

A string representing a UUID (universally unique identifier).

tags, string[] nullable

An optional set of strings associated with the Certificate for grouping and filtering.

updated_at, integer nullable

Unix epoch when the resource was last updated.

Example response

{
  "cert": "-----BEGIN CERTIFICATE-----\ncertificate-content\n-----END CERTIFICATE-----",
  "cert_digest": "9b8aaf19a276885f6c8a6bc48a30700fdb3a351d8b05374d153bfb7b178e2a9f",
  "created_at": 1706598432,
  "id": "b2f34145-0343-41a4-9602-4c69dec2f260",
  "tags": [
    "trusted",
    "api"
  ]
}

Changes

    • breaking

      the response property tags became nullable for the status

    • breaking

      the response property created_at became nullable for the status

    • breaking

      the response property updated_at became nullable for the status

    2 more changes in this revision