> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/account-level/enterprise/site-management/ssl-certificate-v1/introduction.md

## Article Content:

# About the SSL Certificate API

The SSL Certificate API lets you install your own SSL certificate on the domains connected to a site in your Wix Enterprise account, instead of the certificate Wix issues automatically. Use it when your organization requires certificates from a specific certificate authority, or manages certificates centrally for all of its domains.

With the SSL Certificate API, you can:

- Install a custom certificate for the domains connected to a site.
- Retrieve the certificate a domain currently serves.

A domain must be connected to the site before you install a certificate for it. To connect a domain, use the [Connected Domains API](https://dev.wix.com/docs/rest/account-level/domains/connected-domains/introduction.md). To find the ID of a site in the account, call [Query Sites](https://dev.wix.com/docs/rest/account-level/sites/sites/query-sites.md) in the Sites API.

## Before you begin

It's important to note the following points before starting to code:

- This API is called with an Enterprise [API key](https://support.wix.com/en/article/about-wix-api-keys). Send the key in the `Authorization` header and the ID of the account that owns the key in the `wix-account-id` header. The key needs the Manage Enterprise Site SSL Certificates permission scope.
- Every request identifies the site in `metaSiteId`. Every domain you pass must be connected to that site.
- The private key must be a 2048-bit RSA key that matches the certificate. Keys of other types or sizes are rejected.
- `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.
- The certificate must stay valid for at least 2 more months from the day you install it. Wix's guidance for manual uploads asks for 3 months, which leaves time to renew.
- Upload a new certificate before the current certificate expires to keep the domain on your own certificate.

## Use cases

- [Install your own certificate on a site's domains](https://dev.wix.com/docs/api-reference/account-level/enterprise/site-management/ssl-certificate-v1/sample-flows.md#install-your-own-certificate-on-a-sites-domains)

## Terminology

- **PEM bundle**: A single text block that concatenates the private key, the site certificate, and the intermediate certificates, each in PEM format with its own BEGIN and END lines.
- **Subject alternative names**: The list of domains a certificate is valid for. The domains you pass in `domainNames` must match this list exactly.
- **Apex domain**: The domain without a subdomain prefix, such as `example.com`. Its `www` name is `www.example.com`.

