Skip to main content

Add SSL Certificate

PUT 
/storage/buckets/:bucketName/ssl_certificate

Uploads an SSL certificate and its matching secret so that you can use Telnyx’s storage as your CDN.

Request

Path Parameters

    bucketName stringrequired

    The name of the bucket

Body

    certificate binary

    The SSL certificate file

    private_key binary

    The private key file

Responses

200: SSL Certificate Response

Request samples


curl -L -X PUT 'https://api.telnyx.com/v2/storage/buckets/:bucketName/ssl_certificate' \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": {
"id": "string",
"issued_to": {
"common_name": "string",
"organization": "string",
"organization_unit": "string"
},
"issued_by": {
"common_name": "string",
"organization": "string",
"organization_unit": "string"
},
"valid_from": "2020-01-01T00:00:00Z",
"valid_to": "2020-01-01T00:00:00Z",
"created_at": "2020-01-01T00:00:00Z"
}
}