SSL CertificatesUpload a new SSL certificate

Upload a new SSL certificate

curl -X POST "https://api.5centscdn.com/v2/account/ssl/new" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "_METHOD": "PUT",
  "name": "sample-ssl-certificate",
  "crt": "YOUR_PEM_CERTIFICATE",
  "key": "YOUR_PEM_PRIVATE_KEY",
  "cabundle": "YOUR_PEM_CA_BUNDLE"
}'
{
  "result": "success",
  "message": "Operation completed successfully",
  "cert": {
    "id": 12345,
    "name": "sample-ssl-certificate",
    "crt": "-----BEGIN CERTIFICATE-----\r
string\r
-----END CERTIFICATE-----",
    "key": "--- redacted ---",
    "cabundle": "-----BEGIN CERTIFICATE-----\r
string\r
-----END CERTIFICATE-----",
    "domain": "example.com",
    "sans": [
      "example.com",
      "www.example.com"
    ],
    "expiry": "2027-01-01",
    "installs": 1,
    "expired": false,
    "validFrom": "2026-01-01"
  }
}
POST
/account/ssl/new
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

Content-Typestring
Required

The media type of the request body

Options: application/json
_METHODstring
Required

Must be set to PUT to trigger SSL certificate creation.

namestring

Friendly name for the certificate. If omitted, auto-generated using the certificate CN, expiry date, and a timestamp.

crtstring
Required

PEM-encoded X.509 certificate. Required.

keystring
Required

PEM-encoded private key. Required.

cabundlestring

PEM-encoded CA bundle. Optional but recommended.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Body

application/json
_METHODstring
Required

Must be set to PUT to trigger SSL certificate creation.

namestring

Friendly name for the certificate. If omitted, auto-generated using the certificate CN, expiry date, and a timestamp.

crtstring
Required

PEM-encoded X.509 certificate. Required.

keystring
Required

PEM-encoded private key. Required.

cabundlestring

PEM-encoded CA bundle. Optional but recommended.

Responses

resultstring

Operation outcome.

messagestring

Human-readable description of the operation outcome.

certobject

The newly uploaded SSL certificate record.