SSL CertificatesUpdate an SSL certificate

Update an SSL certificate

curl -X POST "https://api.5centscdn.com/v2/account/ssl/12345" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "name": "sample-ssl-certificate",
  "crt": "YOUR_PEM_CERTIFICATE",
  "key": "YOUR_PEM_PRIVATE_KEY",
  "cabundle": "YOUR_PEM_CA_BUNDLE"
}'
{
  "result": "success",
  "message": "Update successful",
  "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/{sslcertid}
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)

path
sslcertidinteger
Required

Unique identifier of the SSL certificate record.

Content-Typestring
Required

The media type of the request body

Options: application/json
namestring

Friendly name for the certificate.

crtstring

PEM-encoded X.509 certificate. Provide crt and key together to replace certificate material. Omitting both updates only the name.

keystring

PEM-encoded private key. Required when replacing certificate material.

cabundlestring

PEM-encoded CA bundle.

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.

Path Parameters

sslcertidinteger
Required

Unique identifier of the SSL certificate record.

Body

application/json
namestring

Friendly name for the certificate.

crtstring

PEM-encoded X.509 certificate. Provide crt and key together to replace certificate material. Omitting both updates only the name.

keystring

PEM-encoded private key. Required when replacing certificate material.

cabundlestring

PEM-encoded CA bundle.

Responses

resultstring

Operation outcome.

messagestring

Human-readable description of the operation outcome.

certobject

Updated SSL certificate record with full metadata.