---
title: "Create a New DataPlane Certificate"
method: POST
path: "/v1/event-gateways/{gatewayId}/data-plane-certificates"
tags: ["Event Gateway DataPlane Certificates"]
---

# Create a New DataPlane Certificate

`POST /v1/event-gateways/{gatewayId}/data-plane-certificates`

Create new dataplane certificate to this event gateway. A dataplane certificate allows dataplanes configured with the certificate and corresponding private key to establish connection with this event gateway.

## Request body

- object
  - `certificate` string, required — JSON escaped string of the certificate.
  - `name` string, nullable — The name to identify of the certificate.
  - `description` string — A description of the certificate.

## Response `201`

Created

- EventGatewayDataPlaneCertificate — A dataplane certificate.
  - `id` string, uuid, required — The unique identifier of the certificate.
  - `certificate` string, required — JSON escaped string of the certificate.
  - `name` string, nullable — The name to identify of the certificate.
  - `description` string, nullable — A description of the certificate.
  - `created_at` string, date-time, required — An ISO-8601 timestamp representation of entity creation date.
  - `updated_at` string, date-time, required — An ISO-8601 timestamp representation of entity update date.
  - `metadata` CertificateMetadata — Metadata extracted from a certificate.
    - `issuer` string, nullable — The issuer of the certificate.
    - `subject` string, nullable — The subject of the certificate.
    - `key_usages` string[], nullable — The key usages of the certificate.
    - `expiry` integer, nullable — The expiry date of the certificate as a unix timestamp.
    - `san_names` string[], nullable — The Subject Alternative Names (SAN) of the certificate.
    - `dns_names` string[], nullable — The DNS names in the certificate SAN.
    - `email_addresses` string[], nullable — The email addresses in the certificate SAN.
    - `ip_addresses` string[], nullable — The IP addresses in the certificate SAN.
    - `uris` string[], nullable — The URIs in the certificate SAN.
    - `sha256_fingerprint` string, nullable — The SHA-256 fingerprint of the certificate.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/kong/apis/konnect-api-beta.md) · [All operations](https://skmtc.net/kong/apis/konnect-api-beta/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/konnect-api-beta/versions/73b05fbfd2ef/schema)
