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.

Problem:

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

image

image

Solution:

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

Get-AutodiscoverVirtualDirectory | FL

image

Set-ClientAccessServer -Identity EX2-AutodiscoverServiceInternalUri https://owa.smtp25.org/autodiscover/autodiscover.xml

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

Set-WebServicesVirtualDirectory -Identity "EX2`\EWS (Default Web Site)" -InternalUrl https://owa.smtp25.org/ews/exchange.asmx

Set-OABVirtualDirectory -Identity "EX2\oab (Default Web Site)" -InternalUrl https://owa.smtp25.org/oab

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

Test-OutlookWebServices -id:user1@smtp25.org -TargetAddress: user2@smtp25.org

 

Respectfully,
Oz Casey, Dedeal

MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +
Http://smtp25.blogspot.com (Blog
Http://telnet25.spaces.live.com (Blog)
Http://telnet25.wordpress.com (Blog)

1 comment:

Anonymous said...

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

http://msunified.net/2010/05/07/script-for-configuring-exchange-2010-internal-and-external-urls/