POST

Add Certificate


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Installs a custom SSL certificate for 1 or more domains connected to a site.

The bundle in certificatePem must hold, in this order, the private key, the site certificate, and the intermediate certificates. The root certificate is optional. The private key must be a 2048-bit RSA key that matches the certificate.

domainNames must list exactly the domains in the certificate's subject alternative names. Issue the certificate for both the apex domain and its www name, and pass both. Every domain must be connected to the site. The certificate must stay valid for at least 2 more months from the day you install it.

When called with an Enterprise API key, the key must have the Manage Enterprise Site SSL Certificates permission scope.

After a successful call, the domains serve the new certificate. To check which certificate a domain serves, call Get Active Certificate.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permission Scopes
Manage Enterprise Site SSL Certificates
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/enterprise-public-proxy/v1/ssl-certificates

Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?