deliveryservices/sslkeys/generate/letsencrypt

Deprecated since version ATCv6.

POST

Generates an SSL certificate and private key using Let’s Encrypt for a Delivery Service

Auth. Required

Yes

Roles Required

“admin” or “operations”

Permissions Required

DS-SECURITY-KEY:CREATE, DELIVERY-SERVICE:READ

Response Type

Object (string)

Request Structure

key

The xml_id of the Delivery Service for which keys will be generated 1

deliveryservice

The xml_id of the Delivery Service for which keys will be generated 1

version

An integer that defines the “version” of the key - which may be thought of as the sequential generation; that is, the higher the number the more recent the key

hostname

The desired hostname of the Delivery Service

Note

In most cases, this must be the same as the Example URLs.

cdn

The name of the CDN of the Delivery Service for which the certs will be generated

#781 Request Example
POST /api/4.0/deliveryservices/sslkeys/generate/letsencrypt HTTP/1.1
Content-Type: application/json

{
    "key": "ds-01",
    "deliveryservice": "ds-01",
    "version": "3",
    "hostname": "tr.ds-01.ott.kabletown.com",
    "cdn":"test-cdn"
}

Response Structure

#782 Response Example
{ "alerts": [{
    "level": "warning",
    "text": "This endpoint is deprecated, please use /deliveryservices/sslkeys/generate/acme instead."
},{
    "level": "success",
    "text": "Beginning async ACME call for demo1 using Lets Encrypt. This may take a few minutes. Status updates can be found here: /api/4.0/async_status/1"
}]}
1(1,2)

Either the key or the deliveryservice field must be provided. If both are provided, then they must match.