SSL certificate maximum validity is being reduced to 200 days from March 2026. Read more →
Exchange Server Advanced ~9 min. read

Exchange 2013: SSL Certificate Installation Guide

A comprehensive guide to SSL management on Exchange 2013, covering DNS planning, Split-DNS setup, CSR generation, certificate installation, and service assignment.

Exchange 2013 (EOL april 2023)

Products that no longer receive updates.

Exchange 2013: SSL Certificate Installation Guide

A comprehensive guide to SSL certificate management on Exchange 2013: including DNS planning, Split-DNS configuration, CSR generation, certificate installation, and service assignment.

Moving from Internal to Publicly Valid Server Names

When Exchange is first installed, the default configuration typically uses an internal server name for local communication. However, it is no longer possible to include internal server names (such as .local or .lan domains) in publicly issued SSL certificates. Since Exchange cannot assign multiple certificates to a single service, you must configure the server to use externally valid DNS names exclusively.

Examples of invalid internal server names:

  • server01
  • exch01.fairssl.local
  • srv01.fairssl.lan
  • localhost
  • 192.168.100.10
  • 10.0.0.10


This setup requires one or more DNS names that can be accessed both externally and internally to point to the Exchange server, and the Exchange configuration must be updated to recognise these names.


We recommend one of the following two common solutions:


Split-DNS

A single DNS name, e.g., webmail.fairssl.com, resolves to the internal IP address of the Exchange server on the local network, while resolving to the public IP address when accessed from the internet.

If you do not want to manage the entire domain as a split-DNS zone, you can create a specific sub-zone for the server name itself (e.g., mail.fairssl.com) to limit the split-DNS scope.


See the guide for setting up Split-DNS

Once configured, update the server's internal and external URLs to use this single name.


Two DNS Names

Alternatively, use two different DNS names for internal and external access. This is common practice for organisations using a public subdomain for internal use, such as intern.fairssl.com.

For example, webmail.fairssl.com could point to the external IP, while exch01.fairssl.com points to the internal IP.


Afterwards, simply configure the Exchange internal and external URLs to match these names.


Setting up Split-DNS

  1. Log in to your Domain Controller using an administrator account.


  1. Press Windows Key + R and run the following command to open the DNS Manager:


dnsmgmt.msc


Start Dns Manager


  1. Right-click on Forward Lookup Zones.

Select New Zone.


Add New Forward Lookup Zone


  1. Click Next.

Select Primary zone and Store the zone in Active Directory if available.

Click Next.


Primary Zone Type


  1. Select To all DNS servers running on domain controllers in this forest.

Click Next.


Active Directory Zone Replication Scope


  1. Enter the DNS name that internal DNS should point to (e.g., mail.fairssl.dk).

You can also choose to create a zone for the entire domain (e.g., fairssl.dk), but this requires manually creating a host record for every single DNS entry used in that domain (see step 10).

Click Next.


New Zone Name


  1. Select Allow only secure dynamic updates.

Click Next.

Click Finish.


Dynamic Update


  1. Right-click on the new Forward Lookup Zone and select New Host (A or AAAA).


New Host


  1. Leave the Name field blank.

Enter the internal IP address of the Exchange server.

If you have a Reverse Lookup Zone or plan to create one, check Create associated pointer (PTR) record; otherwise, leave it unchecked.

Click Add Host.


New Host No Name


  1. If you chose to create a zone for the entire domain, follow these steps and remember to create a host record for every DNS name you use (e.g., www.fairssl.dk, vpn.fairssl.dk, login.fairssl.dk).

Enter the subdomain name (e.g., mail) in the name field.

Enter the internal IP address of the Exchange server.

Check Create associated pointer (PTR) record if required.


New Host With Name

Configuring Internal and External Exchange Service URLs

  1. Log in to the Exchange server with an administrator account.


  1. Right-click on the Exchange Management Shell.

Select Run as Administrator.


Exchange Management Shell Run As Admin


  1. Run the following command:


Get-ExchangeServer | fl name


Get Server


  1. Run the following command:

SERVERNAVN is the name you found in step 3. INTERNURL is the internal address for the mail server (e.g., exch01.fairssl.dk). EKSTERNURL is the external address for the mail server without https:// (e.g., mail.fairssl.dk). Ensure you keep the quotation marks around the variables:


$CASserver = ”SERVERNAVN” ; $internalURL = ”INTERNURL” ; $externalURL = ”EKSTERNURL”


Set Server Name Server Url


  1. Run the following commands to switch the URLs to the internet-valid addresses (see step 6 for the full combined script):


Get-AutodiscoverVirtualDirectory -Server $CASserver | Set-AutodiscoverVirtualDirectory –InternalUrl ”https://$internalURL/Autodiscover/Autodiscover.xml” -ExternalUrl ”https://$externalURL/Autodiscover/Autodiscover.xml”


Autodiscover Virtual Directory


Get-ClientAccessServer -Identity $CASserver | Set-ClientAccessServer –AutodiscoverServiceInternalUri ”https://$internalURL/Autodiscover/Autodiscover.xml”


Client Access Server


Get-WebservicesVirtualDirectory -Server $CASserver | Set-WebservicesVirtualDirectory –InternalUrl ”https://$internalURL/Ews/Exchange.asmx” -ExternalUrl ”https://$externalURL/Ews/Exchange.asmx”


Webservices Virtual Directory


Get-OabVirtualDirectory -Server $CASserver | Set-OabVirtualDirectory –InternalUrl ”https://$internalURL/Oab” -ExternalUrl ”https://$externalURL/Oab”


Oab Virtual Directory


Get-OwaVirtualDirectory -Server $CASserver | Set-OwaVirtualDirectory –InternalUrl ”https://$internalURL/Owa” -ExternalUrl ”https://$externalURL/Owa”


Owa Virtual Directory


Get-EcpVirtualDirectory -Server $CASserver | Set-EcpVirtualDirectory –InternalUrl ”https://$internalURL/Ecp” -ExternalUrl ”https://$externalURL/Ecp”


Ecp Virtual Directory


Get-ActiveSyncVirtualDirectory -Server $CASserver | Set-ActiveSyncVirtualDirectory -InternalUrl ”https://$internalURL/Microsoft-Server-ActiveSync” -ExternalUrl ”https://$externalURL/Microsoft-Server-ActiveSync”


Active Sync Virtual Directory


  1. The following block combines all the above commands into a single line for easy copy-and-paste. If you have already executed step 5, there is no need to run this:


Get-AutodiscoverVirtualDirectory -Server $CASserver | Set-AutodiscoverVirtualDirectory –InternalUrl ”https://$internalURL/Autodiscover/Autodiscover.xml” -ExternalUrl ”https://$externalURL/Autodiscover/Autodiscover.xml” ; Get-ClientAccessServer -Identity $CASserver | Set-ClientAccessServer –AutodiscoverServiceInternalUri ”https://$internalURL/Autodiscover/Autodiscover.xml” ; Get-WebservicesVirtualDirectory -Server $CASserver | Set-WebservicesVirtualDirectory –InternalUrl ”https://$internalURL/Ews/Exchange.asmx” -ExternalUrl ”https://$externalURL/Ews/Exchange.asmx” ; Get-OabVirtualDirectory -Server $CASserver | Set-OabVirtualDirectory –InternalUrl ”https://$internalURL/Oab” -ExternalUrl ”https://$externalURL/Oab” ; Get-OwaVirtualDirectory -Server $CASserver | Set-OwaVirtualDirectory –InternalUrl ”https://$internalURL/Owa” -ExternalUrl ”https://$externalURL/Owa” ; Get-EcpVirtualDirectory -Server $CASserver | Set-EcpVirtualDirectory –InternalUrl ”https://$internalURL/Ecp” -ExternalUrl ”https://$externalURL/Ecp” ; Get-ActiveSyncVirtualDirectory -Server $CASserver | Set-ActiveSyncVirtualDirectory -InternalUrl ”https://$internalURL/Microsoft-Server-ActiveSync” -ExternalUrl ”https://$externalURL/Microsoft-Server-ActiveSync”

Generating a CSR for Certificate Ordering

  1. Log in to the Exchange server with an administrator account.


  1. Press the Windows Key.

Type Exchange ad to search for the console.

Launch Exchange Administrative Center.


Start Exchange Administrative Center


  1. Enter your administrator credentials.

Click sign in.


Exchange Admin Center Login


  1. Click servers in the left-hand navigation.

Select the server that requires a certificate renewal from the list.


Select Server


  1. Click certificates in the top right corner.

Click the + icon.


Certificates Tab


  1. Select Create a request for a certificate from a certificate authority.

Click Next.


Start Csr


  1. Enter a Friendly Name for the certificate (e.g., the primary DNS name) to identify it later.

Click Next.


Friendly Name


  1. Ensure that Request a wildcard certificate is NOT selected.

Click Next.


No Wildcard


  1. Click Browse and select the server.

Click Next.


Store Csr On Server


  1. In this step, you can specify which DNS names each service should use internally and externally.

If any entries use .local or other internal-only suffixes, they must be changed. See Moving from Internal to Publicly Valid Server Names. You can complete the CSR before making these changes if necessary.

Click Next.


Internal Server Addresses


  1. Remove any DNS names you do not need and add the ones you do.

Click Next.


Extra San Names


  1. Enter your organisation details:


    • Organization name (O): The full legal name of your company. E.g., FairSSL Ltd
    • Department name (OU): The department requesting the certificate. This should not be confused with another entity. It is often left blank or set to the company name. E.g., IT Department
    • City/Locality (L): Your city. E.g., London
    • State/Province (S): Your county or state. E.g., Greater London
    • Country/Region name (C): The country where the company is registered. E.g., United Kingdom


Click Next.


Organisation Information


  1. Enter the UNC path where you want to save the CSR file. The following example saves it to c:\www.fairssl.dk.csr on the Exchange server.

Click Finish.


Save Csr


  1. Open the CSR file with a text editor (such as Notepad) and copy the entire block of text, including the begin and end tags.

When ordering your certificate, paste this text into the CSR field.

Below is an example of a complete CSR text:


Csr Text


A CSR contains no confidential information or keys; there is no security risk in sending a CSR via unencrypted email.

Importing the Intermediate Certificate Authority

The following instructions describe how to import intermediate certificates on a Windows-based server, including Exchange. To ensure clients can verify the trust chain, the public certificate of the intermediate authority must be installed on the Exchange server.


Note that Windows sometimes installs this automatically when you install the server certificate. Importing the same intermediate certificate multiple times is harmless; you will simply receive a warning that it already exists.


  1. Log in to the Exchange server with an administrator account.

Copy the Intermediate Certificate text from your certificate delivery email into a text editor (like Notepad). Save the file to your desktop as intermediate.cer


  1. Press Windows Key + R

Type mmc.exe

Click OK.


Open Mmc


  1. Click File and then Add/Remove Snap-in.


Add Remove Snap In


  1. Select Certificates and click Add.


Certificates Add


  1. Select Computer account and click Next.


Computer Account


  1. Ensure Local computer is selected and click Finish, then OK.


Local Computer


  1. Expand Certificates (Local Computer) and Intermediate Certification Authorities.

Right-click on Certificates, select All Tasks, and click Import.


All Tasks Import Intermediate


  1. Click Browse and select the file you saved to your desktop. Click Next.


Browse Files


  1. Choose Automatically select the certificate store based on the type of certificate.

Click Next and then Finish.


Automatically Select Store Intermediate


You can find intermediate certificates for various authorities below. We strongly recommend using the one provided with your certificate, as it is guaranteed to match your issued server certificate.


Intermediate Certificates

Installing the Certificate from a Pending Request

It is vital to install the certificate on the same server where the CSR (Certificate Signing Request) was generated, as the private key resides only on that machine.

The private key was created during the CSR generation process; this installation step binds that private key to the new certificate.


  1. Save your new certificate file in a location accessible by the server via a UNC path.

     e.g., \\EX13\c$\www.fairssl.dk.cer


  1. Press the Windows Key.

Search for Exchange ad and launch the Exchange Administrative Center.


Start Exchange Administrative Center


  1. Log in with your administrator credentials.


Exchange Admin Center Login


  1. Go to servers on the left, select the correct server, and then click certificates in the top right.


Select Server


  1. Select the Friendly Name you assigned when creating the CSR; its status will show as Pending request.

Click Complete in the right-hand pane.


Select Pending


  1. Enter the UNC path to your certificate file.

Click OK.


Certificate Unc Path


  1. The certificate will be installed, and its status will change from Pending Request to Valid in the certificate list.


We recommend verifying the installation using our SSL Scanner at: https://www.fairssl.com/en/vaerktoejer/ssl-scanner

Assigning Services to the Certificate

  1. Log in to the Exchange server with an administrator account.


  1. Press the Windows Key, search for Exchange ad, and launch the Exchange Administrative Center.


Start Exchange Administrative Center


  1. Sign in with your administrator credentials.


Exchange Admin Center Login


  1. Navigate to servers > certificates and select the relevant server.


Select Server


  1. Highlight the certificate you wish to activate.

Click the (Edit) icon.


Select Certificate


  1. Click Services in the left-hand pane.

Tick the services you want to assign to this certificate (e.g., IIS, SMTP). Click Save.


Select Services


  1. If you selected SMTP, a prompt will appear asking if you want to overwrite the default SMTP certificate.

Click Yes.


Overwrite Smtp


Finally, test your installation using our SSL Scanner: https://www.fairssl.com/en/vaerktoejer/ssl-scanner

Strengthen your TLS security

Use IIS Crypto to easily configure secure TLS protocols and cipher suites on your Windows Server.

IIS Crypto TLS configuration guide

Ready to create a free account?

Create a free account and issue your first certificate in under 10 minutes.