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.
-
To determine the Thumprint attribute of the imported certificate, open Exchange Management Shell and run the following command:
Get-ExchangeCertificate | fl
-
Locate the certificate that you just imported, copy the thumbprint of the certificate, 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 4: Configure the Default Web Site
The next step in this process is to configure the Default Web Site by using IIS Manager. The following procedure describes this process.
To configure the Default Web Site by using IIS Manager
-
In IIS Manager, expand Web Sites, right-click Default Web Site, and then click Properties.
-
By default, the IP address will be assigned to All Unassigned. Select your primary IP address and assign it to the Default Web Site.
-
Click Advanced, click Edit, and then change the IP assignment for port 443 to the primary IP address.
Step 5: Configure the Autodiscover Web Site
The next step in this process is to configure the Autodiscover Web site by using IIS Manager. The following procedure describes this process.
To configure the new Autodiscover Web site
-
In IIS Manager, right-click Web Sites, click New, and then select Web Site.
-
When the Web Site Creation Wizard opens, click Next.
-
In the Web Site Creation Wizard, on the Web Site Description page, in the Description field, enter the name of your Web site. For example, "Autodiscover Web Site". Click Next.
-
On the IP Address and Port Settings page, select the second IP address that you added from the drop-down list, and then click Next.
-
On the Web Site Home Directory page, click Browse, select c:\Inetpub\wwwroot, and then click OK. Leave the Anonymous access check box selected, and then click Next.
-
On the Web Site Access Permissions page, accept the default setting for Read permission, click Next, and then click Finish.
Step 6: Installing a Certificate on the Autodiscover Web Site
The following procedure in this section assumes that you have already obtained a valid third-party certificate with the common name users will be using to connect to the Autodiscover service, for example, autodiscover.contoso.com. Because the Enable-ExchangeCertificate command only works for certificates installed on the Default Web Site, you must use IIS Manager to install this certificate on the Autodiscover Web site.
To use the Exchange Management Shell and IIS Manager to install and enable a new third-party SSL certificate
-
In the Exchange Management Shell, enter the following command to import the second certificate into the Personal Certificate store on the server:
Import-ExchangeCertificate -path <full_path_to_CER_file>
-
In IIS Manager, expand Web Sites, right-click the Autodiscover Web Site, and then click Properties.
-
On the Directory Security tab, click the Server Certificate button.
-
When the Web Server Certificate Wizard opens, click Next.
-
On the Server Certificate page, select Assign an existing certificate and then click Next.
-
On the Available Certificates page, select the certificate that was provided by your CA for the Autodiscover Web site and then click Next.
-
On the SSL Port page, accept the default setting of 443 and then click Next.
-
On the Certificate Summary page, confirm the details are correct, click Next and then click Finish to complete the Web Server Certificate Wizard.
Step 7: Create a New Autodiscover Virtual Directory
After you have configured the new Autodiscover Web site in IIS, you will use the Exchange Management Shell to create a new Autodiscover virtual directory.
To use the Exchange Management Shell to create a New Autodiscover virtual directory
Step 8: Modify the SCP Object
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 you install in your Exchange messaging infrastructure.
|
To use the Exchange Management Shell to change the internal URL for the Autodiscover service
Step 9: 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.
Summary of Scenario 3
After you configure Exchange to use two single-name certificates and Web sites, domain-connected clients will connect to the Autodiscover service that is hosted under the Default Web Site that is found by using the SCP object. Conversely, non-domain-connected clients will locate the Autodiscover service by using DNS and connect to the Autodiscover service hosted under the second Web site. Because each Web site contains a valid certificate, all clients should be able to connect without receiving any security warnings.
Return to top