This section describes how to configure the Autodiscover service in the following four scenarios:
-
Scenario 1: Using a certificate that supports multiple DNS names
-
Scenario 2: Using one single-name certificate
-
Scenario 3: Using two single-name certificates
-
Scenario 4: Using the Autodiscover service with redirection
The following table outlines the various requirements for each scenario.
|
Requirements
|
Scenario 1
|
Scenario 2
|
Scenario 3
|
Scenario 4
|
|
Primary IP address
|
Yes
|
Yes
|
Yes
|
Yes
|
|
Secondary IP address
|
No
|
No
|
Yes
|
Yes
|
|
Primary public IP resolving to Default Web Site*
|
Yes
|
Yes
|
Yes
|
Yes
|
|
Secondary public IP resolving to Autodiscover Web site**
|
No
|
No
|
Yes
|
Yes
|
|
# of certificates
|
1
|
1
|
2
|
1
|
|
Modification of SCP object
|
No
|
Yes
|
Yes
|
Yes
|
|
Modification of Web services URLs
|
No
|
Yes
|
Yes
|
Yes
|
* Must resolve to the host name that users use to connect to Exchange services, for example, mail.contoso.com.
** Must resolve to the FQDN for the Autodiscover service, for example, autodiscover.contoso.com.
Return to top
Scenario 1: How to Use a Certificate That Supports Multiple DNS Names
This section discusses how to configure the Autodiscover service that uses either a Unified Communications certificate or a certificate created internally by using Windows Certificate Services. We recommend that you use a Unified Communications certificate that supports Subject Alternative Names.
The list of third-party certification authorities (CAs) that currently support Subject Alternative Names is documented in Microsoft Knowledge Base article 929395, Unified Communications Certificate Partners for Exchange 2007 and for Communications Server 2007.
The following procedures describe how to create a certificate request for submission to a third-party CA and when to use your own internal PKI by using Windows Certificate Services.
Step 1: Create the Certificate Request
To create a certificate request for a third-party certification authority
After you request the certificate, see "Step 2: Install the Certificate" later in this section.
Step 1a (Optional) Install Windows Certificate Services and Request a Certificate
You can use Windows Certificate Services to create and manage your own SSL certificates. For additional details about how to manage your own Public Key Infrastructure for Windows Server 2003, see the following resources:
The following procedure describes how to install Windows Certificate Services and request an SSL certificate.
To create a certificate request internally by using Windows Certificate Services
-
If you have not already done this, install Windows Certificate Services on a server that is running Windows Server 2003 in your messaging infrastructure.
-
On a server that is running Windows Server 2003, open Add/Remove Windows Components and install Certificate Services.
Note: |
|---|
|
During installation of Certificate Services, you will be prompted to select the type of CA to install. Select the option to install an Enterprise CA and complete the wizard.
|
-
To create the certificate request, on the Client Access server, open the Exchange Management Shell and enter the following:
|
New-ExchangeCertificate -GenerateRequest -DomainName mail.contoso.com, autodiscover.contoso.com -PrivateKeyExportable:$True -Path c:\certreq.txt |
Important: |
|---|
|
The first DNS name following the DomainName parameter will automatically become the common name associated with the certificate. Be certain that you enter the FQDN that users will use to connect to services including Outlook Web Access, Exchange ActiveSync, and Outlook Anywhere.
|
Note: |
|---|
|
If your internal DNS namespace differs from your external namespace, you will want to add more DNS names to the DomainNames parameter. For example, you might enter something similar to the following:
|
|
New-ExchangeCertificate -GenerateRequest -DomainName mail.contoso.com, autodiscover.contoso.com, machinename, machinename.contoso.local -PrivateKeyExportable:$True -Path c:\certreq.txt |
-
On your Client Access server, open Internet Explorer and enter the URL to connect to the Certificate Services administration Web page that is hosted on the server where you installed Certificate Services. For example, http://CAS01/certsrv or https://CAS01/certsrv.
-
Click Request a certificate, click Advanced certificate request, and then select Submit a certificate request by using a base-64-encoded CMC or PKCS #10 file.
-
Copy the contents of the certreq.txt file that you saved in step 3 in the Saved Request field.
-
Select Web Server under Certificate Template.
-
Click Submit.
-
Click Download certificate, and then save the CER file to Drive C, that is, c:\certnew.cer.
Step 2: Install the Certificate
The following procedure describes how to import and enable a third-party certificate or one that you created internally by using Windows Certificate Services. The process is the same for each.
Note: |
|---|
|
The Import-ExchangeCertificate cmdlet installs the certificate in the Personal certificate store on the server and the Enable-ExchangeCertificate cmdlet installs the certificate on the Web site.
|
To install and enable the SSL certificate by using the Exchange Management Shell
Step 3: (Optional) Administering and Using Root Certificates for End Users
Notice that domain-connected clients will typically obtain the root certificate automatically by using a Group Policy. However, there are circumstances when this may not work correctly. If domain-connected clients cannot automatically install the root certificate, you can manually configure a group to distribute certificates that will be trusted by all member computers of the domain. For more information about how to add a trusted root CA to a Group Policy object, see Add a trusted root certification authority to a Group Policy object.
Important: |
|---|
|
Installing a root certificate on a mobile device requires that you connect the device with your Windows operating system. If you are running Windows XP, you must install the latest version of the desktop ActiveSync application. If you are running Windows Vista, you can use the integrated Windows Mobile Device Center in Control Panel but you must first download the Windows Mobile Device Center application.
|
To obtain the root certificate from Certificate Services
-
Open Internet Explorer on a domain-connected computer, and then enter the URL to connect to the Certificate Services administration Web page.
-
Select the Download a CA certificate, certificate chain or CRL option, and then select Download a CA certificate option.
-
Save the .cer file to the desktop and name the .cer file root.cer.
-
Distribute the CER file to your remote users by using e-mail, an FTP site, or other method.
To install the SSL certificate on your Outlook 2007 clients
-
Copy the root certificate to the desktop.
-
Double-click the root certificate.
-
In the Certificate dialog box, on the General tab, click Install Certificate.
-
In the Certificate Import wizard, click Next.
-
Select Place all certificates in the following store, and then click Browse.
-
In the Select Certificate Store window, select Trusted Root Certification Authorities, and then click OK.
-
Click Next, and then click Finish.
To install a certificate on a Windows Mobile device
-
Right-click the root certificate .cer file on the local computer, and then click Copy.
-
Open Windows Explorer, and then locate My Computer.
-
Double-click the Mobile Device icon to the view the folders on your device.
-
Right-click the folder where you want to copy the root certificate, and then click Paste.
-
When the root certificate has been copied to the device, close Windows Explorer.
-
On your device, open File Explorer and then locate the folder where you copied the root certificate.
-
Select the root certificate.
-
When you are prompted to install the certificate, click Yes.
Important: |
|---|
|
You will not receive a message to let you know that the installation was successful.
|
Step 4: Create the Necessary Host Records in DNS
In most cases, you will already have a host record in external DNS for the host name that your users will be using to connect to your Exchange messaging infrastructure by using Outlook Web Access, Exchange ActiveSync or Outlook Anywhere. For example, mail.contoso.com. For the Autodiscover service to function correctly, you must add an additional host record so that Outlook 2007 clients can locate and connect to the Autodiscover service when they use the Outlook Anywhere feature from the Internet. The host record you create should map to the public IP address that will be used as the entry point to your Client Access server.
Step 5: Configure the Exchange Services URLs
Now that you have configured SSL for your Autodiscover service deployment scenario, you must configure your Exchange services for external access. For more information, see How to Configure Exchange Services for the Autodiscover Service later in this white paper.
Summary of Scenario 1
After you configure Exchange to use an SSL certificate that supports multiple DNS names and modify the Exchange services URLs as needed, the domain-connected clients will reference the internal URLs for the Exchange services that were automatically set when the Client Access server role was installed. Clients that are not domain-connected will connect by using the External URLs that you entered as part of this procedure. If your certificate includes all the necessary DNS names, both domain-connected and non-domain-connected clients will be able to successfully connect to the Autodiscover service without receiving security warnings that result from mismatched names. Domain-connected clients will locate the Autodiscover service by referencing the SCP object. Conversely, clients that are not domain connected will not locate the SCP object and will fail over to using DNS.
Return to top
Scenario 2: How to Use One Single-Name Certificate
This section describes how to use one single-name certificate where the common name of the certificate references the host name users will use to connect to Exchange from the Internet, for example, mail.contoso.com.
Step 1: Install a Certificate on the Default Web Site
The procedures in the following section assume that you already have obtained a valid third-party SSL certificate that uses the common name your users will be using to connect to your Exchange Messaging infrastructure. The first option describes how to use a preexisting certificate that you would export from an existing Exchange server that runs an earlier version of Exchange. The second option describes how to use a new third-party certificate.
If you must create a certificate request, see "Step 2: Install the Certificate" in the Scenario 1: How to Use a Certificate That Supports Multiple DNS Names section earlier in this white paper.
Option 1: Using an Existing SSL Certificate
The following procedures describe how to use an existing SSL certificate which you have already implemented for an earlier version of Exchange. Using IIS Manager on your existing earlier version of Exchange, export the existing certificate in PFX format by following these steps.
To use an existing SSL certificate from an earlier versions version of Exchange
-
In IIS Manager, right-click Default Web Site, click Properties, and then click the Directory Security tab.
-
Click Server Certificate.
-
On the Web Server Certificate Wizard, select the Export the current certificate to a .pfx file option, and then click Next.
-
Name the file, and then save it to a location that you will use later.
-
Enter a password, and then click Next.
-
Click Next and then click Finish.
-
Import the certificate to the Personal Store by following these steps:
-
In the Certificates snap-in for MMC, expand the top-level Certificates (Local Computer).
-
Right-click Personal, click All Tasks, and then click Import.
-
In the Certificate Import Wizard, click Browse, locate the .pfx file that you copied to the Client Access server, and then click Next.
-
Enter the password that you applied to the .pfx file, and then select the check box next to Mark this Key as Exportable.
-
Select Place all certificates in the following store, select Personal Certificate Store, and then click Next.
-
Click Finish.
-
Determine the Thumbprint attribute of the imported certificate. To do this, open the Exchange Management Shell and run the following command:
|
Get-ExchangeCertificate | fl |
-
Locate the certificate that you just imported, copy the certificate’s thumbprint, and then run the following command:
|
Enable-ExchangeCertificate -Thumbprint <thumbprint_of_new_certificate> -Services iis |
Option 2: Using a New Single-Name Certificate
Use the Exchange Management Shell on your Client Access server to install and enable your new third-party certificate.
To use the Exchange Management Shell to install and enable a new third-party SSL certificate
Step 2: Modify the Service Connection Point
By default, the URL for the Autodiscover service stored in the SCP object in Active Directory will reference the internal FQDN for the Client Access server during Exchange 2007 Setup. You will use the Set-ClientAccessServer cmdlet to modify this URL so that it points to the new location (FQDN) for the Autodiscover service.
Important: |
|---|
|
You must repeat this step for every Client Access server that is installed in your Exchange messaging infrastructure.
|
To use the Exchange Management Shell to change the internal URL for the Autodiscover service
Step 3: Configure the Exchange Services URLs
Now that you have configured SSL for your Autodiscover service deployment scenario, you must configure your Exchange services for external and internal access. For more information, see How to Configure Exchange Services for the Autodiscover Service later in this white paper.
Step 4: Implementing the Autodiscover SRV Record for Outlook Anywhere Users
Because this solution uses one single-name certificate, clients that are not domain-connected that run Outlook 2007 will receive a security warning when they connect to the Autodiscover service. If your external DNS provider supports Autodiscover SRV records, you can address this issue with an Outlook 2007 software update. When this software update is applied, Outlook 2007 clients will perform an additional check for a DNS SRV record to locate the Autodiscover service that does not require multiple Web sites and IP addresses or a new Unified Communications SSL certificate. Although this still requires you to add a DNS record in DNS for the Autodiscover service, you will not have to use a certificate that supports multiple DNS names or have to administer a second Web site.
For more information about this software update for Outlook 2007, see Microsoft Knowledge Base article 940881, A new feature is available that enables Outlook 2007 to use DNS Service Location (SRV) records to locate the Exchange Autodiscover service. To obtain this update, see Microsoft Knowledge Base article 939184, Description of the update rollup for Outlook 2007: June 27, 2007.
Summary of Scenario 2
In this scenario you installed a single-name certificate where the common name of the certificate references the host name users will use to connect to Exchange from the Internet, for example, mail.contoso.com. This solution required that you modify the SCP and the internal URLs of the Exchange services because the FQDN on the certificate differs from the FQDN referenced in the SCP and the internal URLs for the Exchange services.
This solution is most efficient if the following conditions are true:
-
You do not want the additional administrative overhead of managing multiple Web sites and IP addresses.
-
The certificate does not include a DNS name for the Autodiscover service.
This solution also requires an Outlook 2007 software update that supports Autodiscover SRV records. If your external DNS provider supports SRV records, a client that is not domain-connected will first try to locate the Autodiscover service by using the SCP object. Because the client cannot to contact Active Directory, it will fail over and try to locate the Autodiscover service by using the following URLs using DNS: https://contoso.com/autodiscover/autodiscover.xml and then https://autodiscover.contoso.com/autodiscover/autodiscover.xml. This request will then fail over to the HTTP redirect algorithm, and will also be unsuccessful. Finally, the client will try one more method. It will check for an Autodiscover SRV record in DNS, and then connect.
Return to top
Scenario 3: How to Use Two Single-Name Certificates
This section describes how to use two single-name certificates, where the common name of one certificate references the host name users will use to connect to Exchange from the Internet, and the common name on the second certificate references the Autodiscover host name, for example: autodiscover.contoso.com. The existing certificate will typically be exported from a legacy Exchange server or will be a certificate that was recently purchased. In either case, you must obtain a second certificate for the Autodiscover Web site.
Step 1: Adding a Second IP Address to Your Network Adapter
The first step in this process involves adding a second IP address to your network adapter on your Client Access server.
To add a second IP address to your network adapter
-
On the Exchange 2007 Client Access Server, open the properties of your network adapter.
-
Select Internet Protocol, and then click Properties.
-
Click Advanced.
-
Under IP addresses, click Add, and then, in the TCP/IP Address dialog box, enter an available IP address in the text box for the IP address, as shown in the following figure.
-
After you have entered an available IP address, click Add.
Step 2: Create Required DNS Records
In most cases, you will already have a host record in external DNS for the host name that users will be using to connect to Exchange from the Internet, for example, mail.contoso.com. You must also add an additional host record for the Autodiscover service so that Outlook 2007 clients can find and connect to the Autodiscover service when they use Outlook Anywhere from the Internet. This host record should map to a second public IP address that points to another entry point to your Client Access server.
The following procedure describes how to create the host record in internal DNS for the host name that is referenced in the common name of the certificate on the Default Web Site.
To create the required host records in internal DNS
-
Open DNS Manager, and then expand the Forward Lookup Zones container.
-
Right-click your DNS zone, for example, contoso.com, and then click New Host (A).
-
Enter "mail" for the host name that is being used on the Default Web Site, for example, mail.contoso.com, and then assign it the local IP address that is assigned to the Default Web Site.
Note: |
|---|
|
If your internal DNS namespace differs from your external namespace, you must create an additional DNS zone that matches your external namespace, and then create the host record within that zone.
|
Step 3: Install a Certificate on the Default Web Site
The procedures in the following section assume that you already have obtained a valid third-party SSL certificate that uses the common name your users will be using to connect to your Exchange Messaging infrastructure. The first option describes how to use a preexisting certificate that you would export from an existing Exchange server that is running an earlier version of Microsoft Exchange. The second option describes how to use a new third-party certificate.
If you must create a certificate request, see "Step 2: Install the Certificate" in the Scenario 1: How to Use a Certificate That Supports Multiple DNS Names section earlier in this white paper.
Option 1: Using an Existing SSL Certificate
The following procedures describe how to use an existing SSL certificate that you have already implemented for an earlier version of Microsoft Exchange. Using IIS Manager on your earlier version of Exchange, export the existing certificate in PFX format by using the following procedure.
To use an existing SSL certificate from an earlier version of Exchange
-
In IIS Manager, right-click Default Web Site, click Properties and then click the Directory Security tab.
-
Click Server Certificate.
-
On the Web Server Certificate Wizard, select the Export the current certificate to a .pfx file option, and then click Next.
-
Name the file and save it to a location that you will use later.
-
Enter a password, and then click Next.
-
Click Next, and then click Finish.
-
Import the certificate to the Personal Store by following these steps:
-
In the Certificates snap-in for MMC, expand the top-level Certificates (Local Computer).
-
Right-click Personal, select All Tasks, and then click Import.
-
In the Certificate Import Wizard, click Browse, locate the .pfx file that you copied to the Client Access server, and then click Next.
-
Enter the password that you applied to the .pfx file, and then select the check box next to Mark this Key as Exportable.
-
Select Place all certificates in the following store, select Personal Certificate Store, and then click Next.
-
Click Finish.
-