Upload a certificate
POST {{fastly_url}}/tls/bulk/certificates
Upload a new certificate. TLS domains are automatically enabled upon certificate creation. If a domain is already enabled on a previously uploaded certificate, that domain will be updated to use the new certificate for all future TLS handshake requests.
Authorization: API token with at least TLS management permissions.
Request Body
{"data"=>{"type"=>"tls_bulk_certificate", "attributes"=>{"allow_untrusted_root"=>false, "cert_blob"=>"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n", "intermediates_blob"=>"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n"}, "relationships"=>{"tls_configurations"=>{"data"=>[{"type"=>"tls_configuration", "id"=>"t7CguUGZzb2W9Euo5FoKa"}]}}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Host | string | ||
Content-Type | string | ||
Accept | string |