Set TLS certificate

edit

Creates or updates an existing TLS certificate chain.

Request

edit

POST /api/v1/platform/configuration/security/tls/{service_name}

Path parameters

edit
Name Type Required Description

service_name

string; allowed values: [adminconsole, proxy, ui]

Y

The service certificate chain to read.

Request body

edit

(string) (required) New certificate chain: the PEM encoded RSA private key, followed by the server certificate, followed by the CA certificate

Responses

edit
202

(EmptyResponse) The TLS update has been accepted for the given service and will take effect throughout the system

449

(BasicFailedReply) elevated permissions are required. (code: '"root.needs_elevated_permissions"')

To perform this operation, you must be authenticated by means of one of the following methods: apiKey, basicAuth.

Request example

edit
curl -XPOST {{hostname}}/api/v1/platform/configuration/security/tls/{service_name} \
-u $CLOUD_USER:$CLOUD_KEY