John Black

Enabling SSL OWA 2003 using Certificate Authority

Why spend money on a 3rd party SSL certificate, when you can create your own for free? In this article I will show you step by step how you create your own SSL Certificate, which among other things is needed in order to properly secure Outlook Web Access on your Exchange 2003 Server.

The first thing to do is to decide which server should hold the Certicate Authority (CA) role, it could be any server as long as it’s at least a member server. If you have a single box setup, such as a Small Business Server (SBS), the decision shouldn’t be very hard.

Note:
In order to add the Certificate Service Web Enrollment component (subcomponent to CA), which we’re going to use in this article, the server needs to be running IIS, so if you haven’t already done so, install IIS before continuing with this article. If you plan on installing the CA component on the Exchange server itself, then there’s nothing to worry about, because as you know, Exchange 2003 relies heavily on IIS, which means It’s already installed.

To install the CA component, do the following:

  • Click Start > Control Panel > Add or Remove Programs

  • Select Add/Remove Windows Components

  • Put a checkmark in Certificate Services

Below screen will popup as a warning, just click Yes > then Next

ca1


We now have to select what type of CA to use, choose Enterprise root CA and click Next

c2

In the following screen we have to fill out the Common name for our CA, which in this article is mail.testdomain.com.

Leave the other fields untouched and click Next >

ca3

We now have the option of specifying an alternate location for the certificate database, database log, and configuration information. In this article we will use the defaults, which in most cases should be just fine.

Now click Next

ca4

The Certificate Service component will be installed, when it’s completed, click Finish

ca5

Creating the Certificate Request
Now that we have installed the Certificate Services component, it’s time to create the Certificate Request for our Default Website. We should therefore do the following:

  • Click Start > Administrative Tools > Internet Information Services (IIS) Manager

  • Expand Websites > Right-click Default Website then select Properties

  • Now hit the Directory Security tab

  • Under Secure Communications click Server Certificate…

  • ca6

    As we’re going to create a new certificate, leave the first option selected and click Next >

    ca7

    Because we’re using our own CA, select Prepare the request now, but send it later, then click Next

    ca8

    Type a descriptive name for the Certificate and click Next

    ca9

    We now need to enter our organization name and the organizational unit (which should be pretty self-explanatory), then click Next

    ca10

    In the next screen we need to pay extra attention, as the common name reflects the external FQDN (Fully Qualified Domain Name), to spell it out, this is the address external users have to type in their browsers in order to access OWA from the Internet.

    Note: As many (especially small to midsized) companies don’t publish their Exchange servers directly to the Internet, but instead runs the Exchange server on a private IP address, they let their ISP’s handle their external DNS settings. In most cases the ISP creates a so called A record named mail.domain.com pointing to the company’s public IP address, which then forwards the appropriate port (443) to the Exchange servers internal IP address.

    When your have entered a Common Name click Next

    c11

    Now it’s time to specify the Country/Region, State/Province and City/locality, this shouldn’t need any further explanation, when you have filled out each field, click Next >

    ca12

    In the below screen we have to enter the name of the certificate request we’re creating, the default is just fine, click Next

    ca13

    In this screen we can see all the information we filled in during the previous IIS Certificate Wizard screens, if you should have made a mistake, this is your last chance to correct it. If everything looks fine click Next

    ca14

    And finally we can click Finish.Getting the Pending Request accepted by our Certificate Authority, Now that we have a pending Certificate Request, we need to have it accepted by our CA, which is done the following way:

    On the server open Internet Explorer
    Type http://server/certsrv

    Note: In order to access the Certsvr virtual folder, you may be prompted to enter a valid username/password, if this is the case use the Administrator account. When you have been validated the Windows 2003 Server will most probably block the content of the CertSrv virtual folder, which means you wil have to add it to your trusted sites in order to continue.

    Now that you’re welcomed by the Certificate Services, select Request a Certificate

    ca15

    Click advanced certificate request

    ca16

    Under Advanced Certificate Request click Submit a certificate request by using a base-64-encoded CMC or PKCS #10 file, or submit a renewal request by using a base-64-encoded PKCS #7 file

    ca17

    Now we need to insert the content of the certreq.txt file we created earlier, you can do this by clicking the Browse for a file to insert or by opening the certreq.txt file in notepad, then copy/paste the content as shown in the screen below, then click Submit >

    ca18

    Now select Base 64 encoded then click Download certificate

    ca19

    Click Save

    c20

    Choose to save the certnew.cer on the C: drive > then click Save

    ca21

    Close the Microsoft Certificate Services IE window.Appending the Certificate to the Default Website
    Okay it’s time to append the approved Certificate to our Default Website, to accomplish this we need to do the following:

  • Click Start > Administrative Tools > Internet Information Services (IIS) Manager

  • Expand Websites > Right-click Default Website then select Properties

  • Now select the Directory Security tab

  • Under Secure Communications click Server Certificate… > then Next

  • ca22

    Select Process the pending request and install the certificate > click Next >

    ca23

    Unless you have any specific requirements to what port SSL should run at, leave the default (443) untouched, then click Next >

    ca24

    You will now see a summary of the Certificate, again if you should have made any mistakes during the previous wizard screens, this is the final chance to correct them, otherwise just click Next >

    ca25

    The Certificate has now been successfully installed and you can click Finish

    ca26

    Enabling SSL on the Default Website
    We have now appended the Certificate to our Default Website, but before the data transmitted between the clients and the server is encrypted, we need to click the Edit… button under Secure Communications.

    Here we should put a checkmark in Require Secure Channel (SSL) and Require 128-bit encryption just like below:

    ca27

    Now click OK.Testing our SSL enabled Default Website
    Now that we have gone through all the configuration steps necessary to enable SSL on our Default Website, it’s time to test if our configuration actually works.

    From the server (or a client) open Internet Explorer, then type:

    http://exchange_server/exchange

    You should get a screen similar to the one shown below:

    ca28

    This is absolutely fine, as we shouldn’t be allowed to access the Default Website (and any virtual folders below) through an unsecure connection. Instead we should make a secure connetion which is done by typing https, therefore type below URL instead:

    https://exchange_server/exchange

    The following box should appear:

    ca29

    Note: You may have noticed the yellow warning sign, this informs us The name on the security certificate is invalid or does not match the name of the site. Don’t worry there’s nothing wrong with this, the reason why it appears is because we aren’t accessing OWA through the common name, which we specified when the certificate was created. When you access OWA from an external client through mail.testdomain.com/exchange, this warning will disappear. Click Yes

    You will now be prompted for a valid username/password in order to enter your mailbox, for testing purposes just use the administrator account, like shown below:

    ca30

    Now click OKWe should now see the Administrator mailbox.

    ca31

    Notice the yellow padlock in the lower right corner, a locked padlock indicates a secure connection, which means OWA now uses SSL.

      None Found
    8 Comments
    • John
      April 3, 2008
      Reply #1

      Great site and useful content! Could you leave some opinion about my sites

    • Detroit
      May 23, 2008
      Reply #2

      We are what we repeatedly do.

    • isal
      December 11, 2008
      Reply #3

      Great Tutorial. Thanks alot

    • Anonymous
      April 15, 2009
      Reply #4

      My friend on Facebook shared this link and I’m not dissapointed at all that I came here.

    • Валера
      April 26, 2009
      Reply #5

      Наша компания занимается арендой ноутбуков, аренда компьютеров и арендой компьютерного класса.
      Аренда ноутбуков в большом городе.

    • exhadvath
      January 2, 2011
      Reply #6

      Sick of obtaining low amounts of useless visitors for your site? Well i want to tell you about a fresh underground tactic which makes myself $900 per day on 100% AUTOPILOT. I could be here all day and going into detail but why dont you simply check their site out? There is really a great video that explains everything. So if your serious about making hassle-free hard cash this is the site for you.

    • exhadvath
      January 3, 2011
      Reply #7

      It’s every webmasters dream to have large amounts of traffic isn’t it? I would like to to share with you a fresh new program that came out Dec 28 2010 that is make people a HUGE amount of money.

    • gyhoneymourgy
      October 2, 2011
      Reply #8

      Hi all!
      I want to know how to solve problems

    Leave a Reply:




    Similar Posts
      None Found
    Latest Comments My Flickr
    DSC_0771flickr_12    DSC_0752flickr_11    Bangkok_flickr_10    DSC_0717flickr_09    DSC_0668flickr_08    DSC_0636flickr_07