v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
CA certificates

Add trusted CA certificate

Add a trusted CA certificate to verify an origin.

Enter all strings of the certificate in one string parameter. Each string should be separated by the "\n" symbol.

post/cdn/sslCertificates

Request body

namestring required

CA certificate name.

It must be unique.

sslCertificatestring required

Public part of the CA certificate.

It must be in the PEM format.

Example request

{
  "name": "Example CA cert",
  "sslCertificate": "-----BEGIN CERTIFICATE-----\nMIIC0zCCAbugAwIBAgICA+gwDQYJKoZIhvcNAQELBQAwFjEUMBIGA1UEAwwLZXhh\nbXBsZS5jb20wHhcNMjAwNjI2MTIwMzUzWhcNMjEwNjI2MTIwMzUzWjAWMRQwEgYD\nVQQDDAtleGFtcGxlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB\nAN4nnSfTsMEnfPgL7rkbImxZAQoND+bpPoX8q16iXZz3fFfqdRk+uEIpU3Brleeg\np0zrrT2eI3+c2h/PRod0Fam4TO6EcfwuboUFzV3j6yw6aWdfBjWZsWBR/FoqWLYq\nb3UejN7yiTYNSiIy3zVpi9pnFM8N8qT+VGBrRDGef2v9JCzhsSSU7wAYM5HKZTp+\nWHojjiyB2hOYqft7A2WlTEDmHFa5UcPHMRZKATUYI1T2TRVqLlSiE2mJ3dFRXGM2\nZAS33J0NVUjkx3w8RmJ7DNflEFJt/6IXdfaokVgfza7LFarrQFQP/YURXEeJT7jm\nDvKpZ/a8wu3ve6N4ykC+CBsCAwEAAaMrMCkwDwYDVR0TBAgwBgEB/wIBADAWBgNV\nHREEDzANggtleGFtcGxlLmNvbTANBgkqhkiG9w0BAQsFAAOCAQEAovxY5lm89Eod\nL8CH3dZzIH7nv8MXtwgpv2vth4PDq2btLS8xrqm2SsA/cV+DsbDjh5CxQLoDX+8V\ng8NtY+ipOE0hdJAUo7UVlsxuAY4frkmLL1/RwpjZg+Z2NAxpR7xGWgoMn7CH481w\nAOBypAuCxcfcyyAOttdS+YMRJnpL6z8/C3W0LGkNOs26Qhu1/U8lfz1f9F4XummD\nu2SCmJsAd1PrL1shsyh4HtmFjuY698aTjYUDUleAnx7ytrGlZuLOIeoQi7tcsLJJ\nTPMbxTLgGN2HEkdJerFRBNViuWvqioEyYlzZ3MshOCR2wsL4wrXrCF0Y3cNOYcIh\nZ8z+wUAP2g==\n-----END CERTIFICATE-----\n"
}

Response

Successful.

idinteger

CA certificate ID.

namestring

CA certificate name.

deletedboolean

Defines whether the certificate has been deleted. Parameter is deprecated.

Possible values:

  • true - Certificate has been deleted.
  • false - Certificate has not been deleted.
cert_issuerstring

Name of the certification center that issued the CA certificate.

cert_subject_cnstring

Domain name that the CA certificate secures.

cert_subject_altstring

Alternative domain names that the CA certificate secures.

validity_not_beforestring

Date when the CA certificate become valid (ISO 8601/RFC 3339 format, UTC.)

validity_not_afterstring

Date when the CA certificate become untrusted (ISO 8601/RFC 3339 format, UTC.)

sslCertificateChainstring

Parameter is deprecated.

hasRelatedResourcesboolean

Defines whether the CA certificate is used by a CDN resource.

Possible values:

  • true - Certificate is used by a CDN resource.
  • false - Certificate is not used by a CDN resource.

Example response

{
  "id": 1,
  "name": "Example CA certificate",
  "deleted": true,
  "cert_issuer": "example.com",
  "cert_subject_cn": "example.com",
  "cert_subject_alt": "DNS:example.com",
  "validity_not_before": "2020-06-26T12:03:53Z",
  "validity_not_after": "2021-06-26T12:03:53Z"
}