Outlook Certificate Error

Last Review: August 7, 2010
Product(s): Outlook 2007, Outlook 2010, Exchange 2007, Exchange 2010

After enabling a purchased SSL certificate in Exchange 2007 or 2010, Outlook 2007 or higher will display a certificate error:

The name of the security certificate is invalid or does not match the name of the site.

Hold the Ctrl key, right-click the Outlook icon in the System Tray, and select Test E-mail AutoConfiguration to view the Exchange URLs. There should be a host record in DNS to resolve the FQDN of mail.company.com. To resolve, run the following command-lets from the Exchange Management Shell:

Set-WebServicesVirtualDirectory –Identity “EWS (Default Web Site)” –InternalUrl: https://mail.company.com/EWS/Exchange.asmx

Set-ClientAccessServer -Identity ExchangeServerName -AutoDiscoverServiceInternalUri https://mail.company.com/Autodiscover/Autodiscover.xml

Set-WebServicesVirtualDirectory -Identity “ExchangeServerName\EWS (Default Web Site)” -InternalURL https://mail.company.com/EWS/Exchange.asmx -BasicAuthentication:$true

Set-UMVirtualDirectory -Identity "ExchangeServerName\unifiedmessaging (Default Web Site)" -InternalUrl https://mail.company.com/unifiedmessaging/service.asmx

Outlook should no longer display the certificate error upon opening. 

Related Links