Gettign rid of certificate warning errors for Outlook in Exchange 2007 2010

You may see an Outlook error “The name of the security certificate is invalid or does not match the name of the site.” if you order a UCC cert.  This is because you cannot add your internal server names to the certificate.  Therefore, it is necessary to change where Outlook clients connect.
Set-ClientAccessServer –Identity cas –AutodiscoverServiceInternalUri
Set-WebServicesVirtualDirectory –Identity “EWS (Default Web Site)” –InternalUrl
Set-OABVirtualDirectory –Identity “oab (Default Web Site)” –InternalUrl
If you are utilizing the Unified Messaging Service (UMS), you will also need to input the following:
Set-UMVirtualDirectory –Identity “unifiedmessaging (Default Web Site)” –InternalUrl