> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xorlab.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Pages under /latest/ document the current release. Paths that begin with a version number, for example /10.0/, are frozen snapshots of superseded releases kept for reference only — never present their instructions as current. If the reader's version is unknown, answer from /latest/ and say which version the answer describes.
> xorlab is deployed on-premises, hybrid, or as a cloud service, and integrates with either Microsoft 365 or on-premises mail infrastructure. Configuration steps often differ between these. State which deployment and integration mode an instruction applies to instead of presenting one as universal.
> Distinguish inline mode from monitoring mode when describing anything that acts on email. Monitoring mode observes a copy and cannot block or quarantine; inline mode routes mail through xorlab and can.
> Write the product name as lowercase 'xorlab'. Use the documented component names: xorlab Control Center (XCC), xorlab MTA, xorlab Sandbox (DANA), xorlab Natural Language Understanding (NLU). After the first mention, use the short forms XCC, MTA, Sandbox, and NLU. Do not use DANA as a standalone name for the Sandbox, but keep it where it is a literal string in configuration keys, container names, and hostnames.
> Do not invent configuration keys, rule parameters, list names, log properties, or API fields. If a value is not present in this documentation, say that it is not documented rather than guessing.

# TLS Certificates for XCC

Below you’ll find commands to replace the TLS certificates for XCC.

<Note>
  **Creating a a certificate**

  If you don’t have a certificate yet, create one by following your internal documentation or guides from [Switch](https://help.switch.ch/pki/manage/request/howto/) or [DigiCert](https://www.digicert.com/kb/ssl-support/openssl-quick-reference-guide.htm). You can also refer to [OpenSSL documentation](https://www.openssl.org/docs/manmaster/man1/openssl-req.html). The rest of the guide assumes you have the right files resulting from that already.
</Note>

1. Obtain your signed certificate by your usual means and place the `<private_key>.key` and `<certificate>.crt` files to `/etc/xorlab/tls`, then execute:
   ```shell theme={null}
   cd /etc/xorlab/tls
   openssl x509 -in <certificate>.crt -text
   sudo cp ssl.crt ssl.crt.xor
   sudo cp ssl.key ssl.key.xor
   sudo chmod 400 <private_key>.key
   sudo chmod 644 <certificate>.crt
   sudo rm ssl.crt ssl.key
   sudo ln -s <certificate>.crt ssl.crt
   sudo ln -s <private_key>.key ssl.key
   cd /etc/xorlab/xcc/
   docker stop xcc_web && sleep 2 && docker compose up -d && docker compose logs -f --tail=1 web
   ```
2. Verify the certificate using `openssl c_client`:
   ```shell theme={null}
   openssl s_client -showcerts -servername <xcc_url> -connect <xcc_url>:443 </dev/null
   ```
