> ## Content Index
> Fetch the complete content index at: https://blog.esadax.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Generating a CSR on Zimbra Using zmcertmgr Tool
- URL: https://blog.esadax.com/en/generating-a-csr-on-zimbra-using-zmcertmgr-tool/
- Published: 2026-11-15T04:16:13.000Z
- Updated: 2026-11-15T04:16:13.000Z
- Author: Esadax 
- Tags: #tr-faq-06-ssl-generating-a-csr-on-zimbra, #en, #mdx-imported, FAQ

To generate a new CSR code for a single domain SSL certificate using the zmcertmgr tool on Zimbra:

1. **Save the private key:** The private key is located at `/opt/zimbra/ssl/zimbra/commercial/commercial.key`. Ensure it is secure and backed up for SSL installation.

**Open the generated CSR file:**

```bash
cat /opt/zimbra/ssl/zimbra/commercial/commercial.csr

```

Copy the entire content from `-----BEGIN CERTIFICATE REQUEST-----` to `-----END CERTIFICATE REQUEST-----`.

**Generate the CSR for multiple domains:** Replace `first.domain.com,second.domain.com` with your domain names.

```bash
/opt/zimbra/bin/zmcertmgr createcsr comm -new -subject "/C=US/ST=CA/L=Los Angeles/O=Esadax/OU=NA/CN=first.domain.com" -subjectAltNames "second.domain.com,third.domain.com"

```

**Generate the CSR for a Wildcard certificate:** Replace `*.domain.com` with your wildcard hostname.

```bash
/opt/zimbra/bin/zmcertmgr createcsr comm -new -subject "/C=US/ST=CA/L=Los Angeles/O=Esadax/OU=NA/CN=*.domain.com" -noDefaultSubjectAltName

```

**Generate the CSR for a single domain:** Replace `server.domain.com` with your actual server hostname.

```bash
/opt/zimbra/bin/zmcertmgr createcsr comm -new -subject "/C=US/ST=CA/L=Los Angeles/O=Esadax/OU=NA/CN=server.domain.com" -noDefaultSubjectAltName

```

**Switch to the zimbra user:**

```bash
sudo su zimbra

```

**Notes:**

- Verify all domain names and details match Esadax's requirements.
- Ensure correct formatting of subjectAltNames for multiple domains.