Using Two Certificates instead of a Unified Communication Certificate:So the problem with the Unified Communication certificate right now is its cost. It is by far the best solution for setting this up but it does cost a bit more most customers are currently paying for one or two certificates. So you can use the following workaround to configure your CAS server to work with two separate commercial certificates. - Get two commercial certificates. One for mail.company.com and one for Autodiscover.company.com.
- Assign an additional IP to the network card of the CAS server. The CAS server should now have two public IP addresses assigned to it.
- In DNS create an A record for Autodiscover.company.com and point it to the new IP that you assigned to the CAS server.
- On the CAS server in the IIS Admin program create a new Web Site that points to an empty directory on disk.
- Assign this New Web site the IP address for Autodiscover.company.com
- From The Exchange Management Shell on the CAS server run:
New-AutodiscoverVirtualDirectory -websitename ‘Second website’. (e.g New-AutodiscoverVirtualDirectory -websitename “autodiscover” will create a new Autodiscover virtual directory under the “Second website”). - Run “Get-AutodiscoverVirtualDirectory” to show both directories. Copy the Identity of the Virtual Directory associated with the default web site. (e.g. “AP296513\Autodiscover (Default Web Site)”)
- Run “Remove-AutodiscoverVirtualDirectory ‘Paste in ID from step 7’”. (e.g. Remove-AutodiscoverVirtualDirectory “AP296513\Autodiscover (Default Web Site)”) This will remove the Autodiscover virtual directory from the default website.
- Assign the mail.company.com certificate to the “Default Web site” Assign the Autodiscover.company.com certificate to the “New Website” (e.g. “Autodiscover”)
- Change the External and Internal URLs for your Autodiscover services to point to mail.company.com. *
a. For OAB use:Set-OABVirtualDirectory –externalURL https://mail.company.com/oab –InternalURL https://mail.company.com/oab b. For EWS (Exchange Web Services) use: Set-WebServicesVirtualDirectory –externalurl https://mail.company.com/EWS/Exchange.asmx –internalurl https://mail.company.com/EWS/Exchange.asmx c. For UM (if you have it) use Set-UMVirtualDirectory –externalurl https://mail.company.com/UnifiedMessaging/Service.asmx –internalurl https://mail.company.com/UnifiedMessaging/Service.asmx - Configure the Service Connection Point to use the autodiscovery.company.com address. Use the command:
Set-ClientAccessServer -id <cas server> -AutoDiscoverServiceInternalUri https://autodiscover.company.com/autodiscover/autodiscover.xml - Ensure that mail.company.com and Autodiscover.company.com can be resolved internally and externally.
At this point everything should be working for your clients. Your domain joined clients will be contacting AD and getting autodiscover.company.com from the Service Connection Point; while your non domain joined and no direct AD access clients will be contacting DNS and getting the same Autodiscover.company.com connection point. Once either client connects to the Autodiscover service they will get the mail.company.com addresses to connect to for services. At no point will either client get prompted with a certificate warning since at each point during the connection process we are providing the correct certificate. |