Exchange Servers use SSL certificates to encrypt connections between the client and servers. Whether using Outlook Desktop or on the web, the SSL certificate provides a way to protect client-server communication from prying eyes.
But SSL certificates have an expiration date. If the certificate expires without you noticing, users will see a pop-up message when starting Outlook, similar to the one below.
You must renew the Exchange certificate to fix the error when this happens. The procedure will vary and depends on whether the SSL certificate is self-signed or issued by a certification authority. In this tutorial, weโll learn how to do both.
Note. Starting from Exchange Server 2019 CU12 and Exchange Server 2016 CU23, renewing an Exchange Server certificate from the GUI (Exchange Admin Center) is no longer available. You can only renew certificates using PowerShell.
Before renewing an Exchange certificate, we recommend you to review the currently installed certificates and verify which one is actively used by Exchange services.
To list all Exchange certificates, run the command:
In case multiple certificates are installed, you should identify which certificate is currently assigned to IIS and SMTP before starting the renewal process.
In order to display detailed certificate info, run the command:
In case the certificate is issued by a public certification authority, you should verify if all required Exchange namespaces are present in the SAN list. This includes:
mail.contoso.com
autodiscover.contoso.com
In case a wildcard certificate is used (for example *.contoso.com), you need to verify if it still satisfies all Exchange namespace requirements before requesting a renewal.
Validate Subject Alternative Names (SAN)
Before generating a certificate renewal request, you need to verify if the current Subject Alternative Name (SAN) list still matches your Exchange deployment requirements.
Many admins simply renew the existing certificate and reuse the old SAN config. However, Exchange environments often change over time:
New Exchange namespaces may have been introduced
Autodiscover URLs may have changed
Load balancer VIP names may have been added
Hybrid Exchange endpoints may have been reconfigured
Legacy namespaces may no longer be required
In order to review the current certificate SAN entries, run the following command:
Before generating the renewal request, you should verify that all required Exchange namespaces are included.
In case you are using a wildcard certificate (*.contoso.com), ensure that all required Exchange services are still covered by the wildcard scope.
Important. Note that in case you renew a certificate without reviewing SAN entries, this may result in Outlook, Autodiscover, Exchange Hybrid, or load-balanced services failing after certificate replacement.
Backing up the Existing Certificate
Before renewing or replacing an Exchange certificate, we recommend exporting the current certificate together with its private key. This allows you to quickly roll back if certificate installation/service assignment fails.
The Export-ExchangeCertificate cmdlet returns the certificate data to the pipeline and does not save it directly to a file. Keep in mind that you should store the returned object in a variable and use WriteAllBytes() to create the PFX backup file.
Or you can export it from the Certificates MMC snap-in (as a PFX file). Note that you should store the backup securely and check that the private key is included.
Renewing a Self-Signed Exchange Certificate
If your Exchange Server uses a self-signed certificate, you can quickly renew it. The renewal process basically means that youโre creating a new certificate based on the old one.
Using the Exchange Admin Center
Follow these instructions to renew a self-signed Exchange Server certificate using the EAC.
Log in to your Exchange Admin Center at https://your_exch_srv_fqdn/ecp/.
Navigate to server > certificates.
Select the server from the dropdown list, select the certificate you wish to renew, and click the Renew link on the right:
On the Renew Exchange certificate pop-up window, click OK. The certificate will be renewed, and the old one will be removed. As you can see below, the certificate is now valid.
Reminder. This procedure works only with versions before Exchange Server 2019 CU12 and Exchange Server 2016 CU23. If your Exchange Server version is newer, you can only renew the certificate in PowerShell.
Using PowerShell
To renew the self-signed Exchange certificate via PowerShell, proceed as follows.
Open the Exchange Management Shell and run this command to list the current Exchange certificates:
Look for the certificate to renew and copy its thumbprint value.
Now, letโs renew the certificate. This command gets the certificate object with the E6EC2420EE5CC….A39D9AAC1774D122 thumbprint and creates a new certificate based on its details.
The result below shows that the renewed certificate has been installed, and the services have been assigned.
Post-Renewal Tasks
Since renewing a self-signed Exchange certificate is essentially creating a new one, the server, and other clients do not trust this new certificate.
To get rid of this certificate error and ensure the devices trust this certificate, you must copy the certificate from the Personal store to the Trusted Root Certification Authority store.
Note that we generally recommend using self-signed certificates only for testing/internal environments. Keep in mind that internet-facing Exchange deployments should use certificates issued by a trusted certification authority.
Of course, you shouldnโt do this manually on all Windows devices. Perhaps you can deploy these certificates via group policy or logon scripts. The same goes for non-Windows devices, but thatโs not covered in this tutorial.
Renew a CA-Issued Exchange Certificate
In larger organizations, or when the Exchange Server is published externally, it is common to see certificates issued by a certification authority rather than self-signed. Renewing this type of certificate is more nuanced since another party is involved in issuing the certificate.
Below are the high-level steps in this Exchange certificate renewal scenario:
The admin generates the certificate signing request (CSR).
The admin submits the request to the issuer.
The issuer accepts the request and generates the new Exchange SSL certificate.
The issue sends the renewed certificate to the admin.
The admin installs the new Exchange certificate.
Weโll perform this task in the following sections via the Exchange Admin Center and PowerShell.
Using the Exchange Admin Center
Log in to your Exchange Admin Center at https://your_exch_srv_fqdn/ecp/.
Navigate to server > certificates.
Select the server from the dropdown list, select the certificate you wish to renew, and click the Renew link on the right. In the below screenshot, you can see that the certificate will expire in two days.
Enter the UNC path to save the certificate request file on the pop-up window. Make sure that this UNC path exists and is accessible. Click OK.
Now, locate the certificate request file you generated and submit it to your certificate issuer. The issuer could be an internal CA or a third-party CA like DigiCert, GoDaddy, etc.
Assuming that the CA has issued the new certificate, most likely in *.cer format, copy it to the UNC path.
Back on the EAC, click Complete.
On the next window, enter the UNC path of the new certificate and click OK.
The certificate status has now changed to Valid, meaning the renewal was successful. But as you can see below, the SMTP and IIS services were not automatically assigned to the new certificate. To assign service, click the Edit button.
Navigate to services, check the SMTP and IIS boxes, and click Save.
When you get a warning about overwriting the existing certificate assignment, click Yes. The Exchange services are now assigned to the new certificate.
Reminder. This procedure works only with versions before Exchange Server 2019 CU12 and Exchange Server 2016 CU23. If your Exchange Server version is newer, you can only renew the certificate in PowerShell.
Validating the Certificate Request Before Submission
Before submitting the certificate signing request (CSR) to your certification authority, you need to check if it contains all required Exchange namespaces and certificate attributes.
Note that many Exchange certificate problems occur because admins simply renew an existing certificate without reviewing its config. Over time, Exchange environments may change and require additional Subject Alternative Names (SANs).
You should review the certificate request config and ensure that:
All required Exchange namespaces are included;
Autodiscover URLs are covered;
Load balancer or reverse proxy names are present (in case required);
Exchange Hybrid endpoints are included when applicable;
Legacy namespaces that are no longer used have been removed.
You can review the current certificate config with the following command:
The first command retrieves the existing certificate with thumbprint 76B73B456B9E…AA8DABCFD37C and uses its details to create a request. The second command exports the request to a file in the UNC path \\exc1.o365things.ml\ c$\ certreq\ certificate_renewal.req.
Submit the resulting certificate request to your CA.
Once you receive the new certificate from the issuer, copy it to the UNC path of your choice. In this example, letโs put it in the same UNC path as the certificate request file.
Back in PowerShell, run this command to complete the certificate renewal. This example imports the \\exc1.o365things.ml\ c$\ certreq\ certnew.cer certificate that doesnโt require a password. Also, the certificateโs private key will be exportable as defined by the -PrivateKeyExportable $true parameter.
The Exchange certificate has been imported. Copy the new certificateโs thumbprint.
Before assigning the certificate to Exchange services, verify that the private key was imported successfully. Run the following command: Get-ExchangeCertificate -Thumbprint <new_thumbprint> | Format-List Subject,HasPrivateKey,Services The HasPrivateKey property should return True. If it is False, the certificate cannot be assigned to Exchange services because the associated private key is missing. This commonly occurs when the certificate is imported incorrectly/when the private key is not included in the certificate file.
Before assigning the certificate to IIS and SMTP services, you should check that the imported certificate contains the correct SAN names, issuer, expiration date, and private key. You can review the certificate details with the command:
Run the below command to assign the IIS, SMTP, POP, and IMAP services to the certificate. Make sure to replace the thumbprint value before running the command.
Thatโs it! Youโve renewed the Exchange server certificate.
In OWA or ECP, the new certificate will be used by Exchange to encrypt the connection.
Post-Renewal Validation Checklist
After assigning the renewed certificate to Exchange services, you should verify that all required services are functioning correctly before removing the old certificate.
In order to confirm the certificate assignment, run the following command:
Get-ClientAccessService | Select Name,AutoDiscoverServiceInternalUri Test Outlook and Autodiscover
Using commands above, you need to verify if Outlook clients can connect successfully and that Autodiscover returns valid config info.
Now test the following URLs from a browser:
https://mail.contoso.com/owa
https://autodiscover.contoso.com
Verify IIS Certificate Assignment
At this step. you should check if Exchange IIS services are presenting the renewed certificate and not an older certificate still installed on the server. Run the command:
You should check and confirm that the certificate assigned to IIS matches the renewed certificate thumbprint.
You should also verify if IIS is presenting the renewed certificate to clients. To do that, open OWA/ECP in a browser and inspect the certificate details to confirm that the expected thumbprint and expiration date are shown.
Verify Load Balancers and Reverse Proxies
If your Exchange environment is published through a load balancer, reverse proxy, or SSL offloading device, you need to ensure that the renewed certificate has also been installed on those systems. Otherwise, clients may continue to receive the old certificate even though the Exchange server has been updated successfully.
This applies to solutions such as F5 BIG-IP, Citrix ADC (NetScaler), Kemp LoadMaster, HAProxy, Nginx, Azure Application Gateway, and similar devices.
In environments with load balancers, reverse proxies, or SSL offloading devices, you need to ensure that the renewed certificate has also been installed on those systems.
Verifying SMTP TLS Certificate
You need to confirm that Exchange is presenting the expected certificate during SMTP TLS negotiation:
Exchange Hybrid Considerations. In case your organization uses Exchange Hybrid, you need to verify if the renewed certificate is also selected in the Hybrid Configuration Wizard and used by hybrid connectors.
Wrapping Up
Renewing an expired or expiring Exchange server certificate can be daunting, especially for first-timers. This maintenance task is critical to keep usersโ devices connected without errors and secure.
Scenario
Renewal Method
Self-signed certificate on older Exchange versions
Exchange Admin Center (EAC) or PowerShell using New-ExchangeCertificate
Self-signed certificate on Exchange 2019 CU12+ or Exchange 2016 CU23+
PowerShell only
CA-issued certificate on older Exchange versions
Exchange Admin Center (EAC): Generate CSR โ Submit to CA โ Complete certificate request
CA-issued certificate on Exchange 2019 CU12+ or Exchange 2016 CU23+
PowerShell only
Whether your Exchange server uses a self-signed certificate or is issued by a certificate authority, the renewal process is similar. Proper planning and careful execution will go a long way in ensuring the certificate renewal goes without a hitch.
An Exchange certificate in Microsoft Exchange Server is used to secure communication between clients (like Outlook or OWA) and the server using SSL/TLS encryption. It protects data from interception during transmission.
If the certificate expires, users may see security warnings in Outlook or experience connection issues with services like OWA, Autodiscover, or ActiveSync. In some cases, mail flow or client connectivity may be disrupted.
SAN defines which domains the certificate protects (e.g. mail.domain.com, autodiscover.domain.com). If SAN entries are incorrect or outdated, Outlook, Autodiscover, and hybrid services may fail after renewal.
Yes. Self-signed certificates are not trusted by default. You must deploy them to client machines (Trusted Root store) using GPO or other deployment methods.
I enjoy technology and developing websites. Since 2012 I'm running a few of my own websites, and share useful content on gadgets, PC administration and website promotion.
Thank you for the detailed step by step instructions, much appreciated, a friendly question, what is the method I can use to renew a certificate in a DAG environment, how do I generate a request, give it Digicert and how do I import it into my DAG 4 server environment, please help. Sorry if I am looking for another guide, thank you.
Faris
3 years ago
Make sure to include -PrivateKeyExportable in the New-ExchangeCertificate otherwise the certificate wont be exportable.
Hi Cyril,
Thank you for the detailed step by step instructions, much appreciated, a friendly question, what is the method I can use to renew a certificate in a DAG environment, how do I generate a request, give it Digicert and how do I import it into my DAG 4 server environment, please help. Sorry if I am looking for another guide, thank you.
Make sure to include -PrivateKeyExportable in the New-ExchangeCertificate
otherwise the certificate wont be exportable.