sniCertificate
Provisions or updates a TLS certificate for the site.
Creating a certificate (site has no certificate):
- Omit certificate params to initiate Let's Encrypt provisioning
- Provide certificate, key, and ca_certificates to upload a custom certificate
Updating a certificate (site already has a certificate):
- REQUIRES certificate, key, and ca_certificates to replace with a new custom certificate
- Use POST /api/v1/sites/{site_id}/ssl/renew to renew an existing Let's Encrypt certificate
post/sites/{site_id}/ssl
Path parameters
site_idstring required
Query parameters
certificatestring
PEM-encoded certificate. Required when updating an existing certificate.
keystring
PEM-encoded private key. Required when updating an existing certificate.
ca_certificatesstring
PEM-encoded CA certificate chain. Required when updating an existing certificate.
Response
OK
Changes
Changed in 2 of the 50 revisions of this API.2
- ○
added the non-success response with the status
422response-non-success-status-added
- ○
- ○
removed the non-success response with the status
422response-non-success-status-removed
- ○