# Certificate Manager

**Certificate Manager** is a Platform Resource that stores the certificates a [Workload](/en/documentation/platform/workloads/) uses for Transport Layer Security (TLS) connections on Azion's distributed infrastructure. A certificate is a signed document that proves a server holds a hostname, or lets that server verify client certificates for [mutual TLS (mTLS)](/en/documentation/platform/workloads/mtls/). Use Certificate Manager to serve HTTPS on your own domains or accept client certificates from your certificate authority (CA).

Certificate Manager holds certificates you obtain yourself and certificates Azion obtains for you:

- [Certificates](/en/documentation/platform/certificate-manager/certificates/) let you bring a certificate a CA issued to you, with its private key, or request one through a certificate signing request (CSR). Certificate Manager also stores certificate revocation lists (CRLs), so a Workload can refuse the client certificates a CA revoked.
- [Issuance and renewal](/en/documentation/platform/certificate-manager/issuance-and-renewal/) lets Azion request a server certificate for a Workload's domains from Let's Encrypt and renew it before it expires. Every name on the certificate must belong to a domain your account has permission for.

[Quickstart](/en/documentation/platform/certificate-manager/quickstart/)

[Certificate Manager reference](/en/documentation/platform/certificate-manager/reference/)

## Request path

Storing a certificate in Certificate Manager secures no hostname: a Workload uses a certificate only once that certificate is bound to that Workload. Certificate Manager then acts during the TLS handshake.

This diagram follows a handshake from the client's hello to the request that continues, with the certificates Certificate Manager supplies. Solid arrows carry the handshake and the request, and dotted arrows carry what goes back to the client. The thick arrow carries the certificates you bound before the request. Each label starts with the number of the step it belongs to.

```mermaid
%%{init: {"layout": "elk", "elk": {"cycleBreakingStrategy": "MODEL_ORDER"}, "themeVariables": {"fontSize": "13px"}, "flowchart": {"nodeSpacing": 24, "rankSpacing": 36, "padding": 8, "wrappingWidth": 150, "useMaxWidth": true}, "sequence": {"width": 120, "actorMargin": 30, "useMaxWidth": true}}}%%
flowchart TD
  Client(["Client"])
  WL["Workload"]
  CM["Certificate Manager"]
  FW["Firewall"]
  App["Application"]
  Client -->|"1, 4. TLS hello, then the client certificate"| WL
  CM ==>|"2, 4. bound server certificate, Trusted CA"| WL
  WL -.->|"2. server certificate"| Client
  WL -.->|"5. enforce, missing or untrusted: handshake ends"| Client
  WL -->|"3, 5. Firewall set"| FW
  WL -->|"3, 5. no Firewall"| App
  FW -->|"3, 5. allowed"| App
  FW -.->|"5. refused by a rule"| Client
```

1. The client opens a TLS connection to one of the Workload's hostnames and names that hostname through Server Name Indication (SNI).
2. The Workload presents its server certificate. For the [workload domain](/en/documentation/platform/workloads/how-it-works/#workload-domain-and-custom-domains), or with `tls.certificate` set to `null`, that is Azion's SAN certificate. For a custom domain with a server certificate bound, it is that certificate.
3. With mTLS off, the handshake completes, and the request continues to the [Application](/en/documentation/platform/applications/), through the [Firewall](/en/documentation/platform/firewall/) when the deployment sets one.
4. With mTLS on, the Workload requests a client certificate and checks it against the Trusted CA certificate in `mtls.config.certificate`.
5. In `enforce` mode, a client with no certificate, or with one another authority signed, cannot complete the handshake. In `permissive` mode, the handshake completes. When the deployment sets a Firewall, a rule that tests the Client Certificate Validation variable can refuse the request.

---

## Next steps

- [Quickstart](/en/documentation/platform/certificate-manager/quickstart.md): Upload your first certificate and bind it to a Workload.
- [How it works](/en/documentation/platform/certificate-manager/how-it-works.md): Understand what binding a certificate changes and what it costs.
- [Guides and tutorials](/en/documentation/platform/certificate-manager/guides.md): Complete a specific certificate task.
- [Limits](/en/documentation/platform/certificate-manager/limits.md): Look up where Certificate Manager stops and the value of each limit.
- [Best practices](/en/documentation/platform/certificate-manager/best-practices.md): Replace certificates before they expire and choose the right kind.
- [Troubleshooting](/en/documentation/platform/certificate-manager/troubleshooting.md): Find the cause when a certificate stays pending or is refused.
- [Glossary](/en/documentation/platform/certificate-manager/glossary.md): Look up a term the Certificate Manager pages use.
