---
title: "Add SSL certificate"
method: POST
path: "/cdn/sslData"
tags: ["SSL certificates"]
---

# Add SSL certificate

`POST /cdn/sslData`

Add an SSL certificate for content delivery over HTTPS protocol.

Enter all strings of the certificate(s) and the private key into one string parameter.
Each certificate and the private key in chain should be separated by the "\n" symbol, as shown in the example.

Additionally, you can add a Let's Encrypt certificate. In this case, certificate and private key will be generated automatically after attaching this certificate to your CDN resource.

## Request body

- union
  - CreateSSlPayload
    - `name` string, required — SSL certificate name. It must be unique.
    - `sslCertificate` string, required — Public part of the SSL certificate. All chain of the SSL certificate should be added.
    - `sslPrivateKey` string, required — Private key of the SSL certificate.
    - `validate_root_ca` boolean — Defines whether to check the SSL certificate for a signature from a trusted certificate authority. Possible values: - **true** - SSL certificate must be verified to be signed by a trusted certificate authority. - **false** - SSL certificate will not be verified to be signed by a trusted certificate authority.
  - object
    - `name` string, required — SSL certificate name. It must be unique.
    - `automated` boolean, required — Must be **true** to issue certificate automatically.

## Response `201`

Successful.

---

[API](https://skmtc.net/g-core/apis/gcore-openapi.md) · [All operations](https://skmtc.net/g-core/apis/gcore-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/g-core/gcore-openapi/revisions/09e652815095/schema)
