> ## 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 in Exchange 2013 Using the Management Shell
- URL: https://blog.esadax.com/en/generating-a-csr-in-exchange-2013-using-the-management-shell/
- Published: 2026-11-15T04:16:14.000Z
- Updated: 2026-11-15T04:16:14.000Z
- Author: Esadax 
- Tags: #tr-faq-06-ssl-generating-csr-in-exchange-2013-shell, #en, #mdx-imported, FAQ

To generate a Certificate Signing Request (CSR) for an SSL certificate in Microsoft Exchange 2013, you can use the `New-ExchangeServerCertificate` cmdlet in the Exchange Management Shell. Here’s how you can do it:

1. **Open Exchange Management Shell**: Start by opening the Exchange Management Shell on your server.
  - Replace `<Friendly Name for Certificate>` with a name you’ll use to identify the certificate.
  - Use your fully qualified domain name (FQDN) for `-DnsDomain` and `-CommonName`.
  - Provide the correct two-letter country code for `-Country`, the state or province name for `-State`, and the city for `-City`.
  - Include your organization’s name in `-Organization` and department or role in `-OrganizationalUnit`.
2. **Submit the CSR to a Certificate Authority (CA)**: After running the cmdlet, you’ll receive the CSR. Submit this to a trusted CA like Let's Encrypt or an internal CA.
3. **Notes**:
  - Ensure all details like country, state, city, and organization are accurate.
  - Avoid special characters in parameter values; stick to alphanumeric.
  - Set `-PrivateKeyExportable $true` if the certificate will be used on another server.
4. **Activate the Certificate**: Use the full CSR text provided by the CA, including `BEGIN` and `END` lines, when activating it in Exchange.

**Import the SSL Certificate**: Once the CA issues the certificate, download it and use:

```powershell
Import-ExchangeServerCertificate -FilePath "<Certs\MyCert.cer>" -PasswordOrKeyFilePassword "<Password>"

```

Replace `<Certs\MyCert.cer>` with the actual file path and `<Password>` with the password you used when requesting the certificate.

**Run the New-ExchangeServerCertificate Cmdlet**:

```powershell
New-ExchangeServerCertificate -Name "<Friendly Name for Certificate>" -DnsDomain "<YourDomain.com>" -Country "XX" -State "State or Province" -City "Location" -Organization "Company Name" -OrganizationalUnit "Department" -CommonName "<Fully Qualified Domain Name>"

```