Wednesday, July 7, 2010

The name on the security certificate in invalid or does not match the name of the site


You might be familiar with fallowing error on Exchange 2007 and this time we are seeing same error after migration on Exchange 2010 with installing new certificate.


The clients are receiving similar errors once they open their outlook. I am going to focus on how to get this fix quickly.




Open EMS and copy and paste fallowing PS commands after making proper changes explained as below…….

Get-AutodiscoverVirtualDirectory | FL


Set-ClientAccessServer -Identity EX2-AutodiscoverServiceInternalUri

  • Replace the part   EX2 ( your own mail server name)
  • Replace the part “” with your own  SMTP domain published record same as on the public certificate.

Set-WebServicesVirtualDirectory -Identity "EX2`\EWS (Default Web Site)" -InternalUrl

Set-OABVirtualDirectory -Identity "EX2\oab (Default Web Site)" -InternalUrl

  • Replace the part with your own ……..
  • And finally to test it use fallowing

Test-OutlookWebServices -TargetAddress:


Oz Casey, Dedeal

MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +
Http:// (Blog
Http:// (Blog)
Http:// (Blog)

1 comment: said...

Hi, I have created a script to automate this process and set the correct url on all vdirs based on the CasArray FQDN.