Man, this can be a pain in the butt – and I know that a few people have blogged about the stages required in order to accomplish this, however I thought that I would Blog about my own process on how to do this – which – after practice was pretty painless.
Essentially the scenario is as such:
You have x 1 Exchange 2003 Front End Server (published via a Firewall to the Internet) which is currently proxying all OWA, OMA and Active Sync traffic to your Exchange 2003 backend servers (no other protocols)
You have a single Forest / Domain with (lucky as I am) a single site.
You have installed the Exchange 2007 Client Access server role into your Exchange organisation and wish to move all of the duties from your Exchange 2003 Front End Server to the new Exchange 2007 Client Access Servers (which again lucky for me amount to pure OWA / Active Sync Traffic).
You also have an existing third party SSL certificate (issued from a company such as VeriSign or Thwate) that you need to move across to the new CAS – to make things fun you are also using Windows 2008 (I suspect that this method will also work on Windows 2003 – but I have chosen Windows 2008 to be the focal O/S for this article as it is part of my migration strategy).
What I would like to take you through is how you can port your SSL certificate from OWA on a Exchange 2003 FES to providing SSL support for OWA requests via a Exchange 2007 CAS.
Step 1 – Export the Existing SSL Certificate:
There are two stages to this process:
- Creating a .pfx file from IIS on your Exchange 2003 Server – this is then imported into IIS 7 on the Exchange 2007 CAS
- Ensuring that you have a copy of the original .cer file (the SSL certificate) from your issuer – this is not essential but really does help remove an element of complexity during the migration process – this article will assume that you have the original .cer file (if you do not have it e-mail me and I will elaborate on what you can do with the .pfx file).
Exporting the SSL Certificate from your Exchange 2003 FES:
From the Windows 2003 Start Menu on your Exchange 2003 Front End Server go to [ Start -> Programs -> Administrative Tools -> Internet Information Services (IIS) Manager ] – see below:

When the IIS manager opens expand the <Local Computer> -> Web Sites and then right click on the “Default Web Site” then from the context menu that appears choose the “Properties” option – see below:

From the dialog box that appears choose the “Directory Security” tab – then from the “Secure Communications” area click on the “Server Certificate” button:

You will then be presented with the “Web Server Certificate Wizard” welcome page – click on the “Next” button to begin the export process:

From the dialog box that appears choose the “Export the Current certificate to a .pfx file” and then click on the “Next” button:

You will be asked to provide a path for the .pfx export file – you can choose any path – but ensure that it can be referenced by your CAS server via UNC – for example below I have exported the .pfx file to the local C: drive on my Exchange 2003 FES server – therefore when I need it on my CAS server later I would access it using the following: \\<FESserver>\c$ when you are happy with the path click on the “Next” button:

The next dialog box requires you to provide a personal password (or private encryption key) for the .pfx file – enter in your password – but make sure that you remember it – as you need it for the import process later on in the article when you are happy with the password click on the “Next” button:

You will then be provided with a summary of the certificate that you have chosen to export from your FES – it should look similar to below (although please note that I have removed certain identifying detail from my example for security reasons) – review the detail and click on the “Next” button:

You will then be presented with the “Wizard completed” dialog box – click on the “Finish” button to complete this stage of the process.

Now that you have the exported .pfx file stored locally on your Exchange 2003 FES – you should now also locate your original .cer file which was issued by your certification authority then place it in the same location as the .pfx file ready to be copied over to your Exchange 2007 SP1 CAS server running on Windows 2008.
Step 2 – Import the SSL Certificate to the CAS and make it functional:
At this stage we should now have an exported SSL certificate and indeed the original certificate as issued by your root certification provider located on the same UNC path where they can be copied to the CAS server.
Logon to your Windows 2008 / Exchange 2007 SP1 Client Access Server then open [ START -> RUN ] – see below:

Then within the “RUN” dialog box that appears type in the UNC path which corresponds to where the .pfx and .cer files on the Exchange 2003 Front End Server are located – see below:

From the Explorer window that opens – copy the .pfx and the .cer file to a location on your CAS server – see below for an example of the UNC window open at the location where the required files reside in my test rig.

When the files have been copied over from your Exchange 2003 server to you Exchange 2007 / Windows 2008 server – on the Windows 2008 CAS server open the IIS 7.0 management snap – [ START -> Programs -> Administrative Tools -> Internet Information Services (IIS) Manager ] – see below:

When the IIS 7.0 manager opens click on the <Your CAS Server Name / Domain\Account> node and then right hand plane will change to display a number of options – see below:

Double click on the “Server Certificates” option – this will change the screen to display the currently installed (and self generated) Client Access Server SSL certificate for your CAS. – Right click on the entry and from the context menu that appears choose the “REMOVE” option. – see below:

When the certificate has been removed “MINIMISE” the IIS Management console (don’t close it).
From the Start Menu open the Exchange Management Shell [ START -> Programs -> Microsoft Exchange Server 2007 -> Exchange Management Shell ] – see below:

When the management shell opens type in the following command:
Import-ExchangeCertificate -Path <path to the .cer file that you copied from the Exchange 2003 FES> – below is an example output from my environment:

Ensure that you take a note (or copy into Notepad) the Thumbprint (this is the large number) that is displayed in the Management Shell Output.

Restore the IIS 7.0 manager from the task-bar (or if you closed the IIS 7 manager reopen it from Administrative Tools) – as described above then navigate to “Server Certificates” (this is accomplished by clicking on the Name of you server in the left hand place and then choosing the “Server Certificates” icon) the middle Window will change – right click and from the context menu that appears choose “Import” – see above.

You will then be presented with the “Import Certificate” dialog box – click on the “…” button and navigate to the location where you stored the .pfx file that you Exported and then copied from your Exchange 2003 FES to your Exchange CAS server – you will then need to provide the private key (or password) that you specified during the export process.
When you have successfully imported the certificate the IIS “Server Certificates” Window will change to display the imported certificate.
At this stage you will need the “Thumbprint” of the certificate (you should have take a note of it earlier in the process) – if you did not then don’t worry – locate and then double click on your certificate file (the .cer file) and the from the dialog box that appears choose the “Details” Tab – scroll down to the “Thumbprint” entry and then copy the value into NOTEPAD and remove the spaces.
Close the IIS manager and the open an Exchange Management Shell window [ START -> Programs -> Microsoft Exchange Server 2007 -> Exchange Management Shell ] and then type in the following command:
Enable-ExchangeCertificate -Thumbprint <paste the thumbprint of the certificate> -Services IIS – see below

When you have completed the above you should now have ported your existing SSL certificate from your Exchange 2003 FES server to your new Exchange 2007 CAS server. You will now need to change all DNS entries and hosts headers to point to you new CAS server (otherwise you will get a certificate mismatch based around the host name) – so for example;
If the FQDN of your Original Exchange 2003 FES was http://owa.mydomain.com (and your SSL certificate was issued to that domain [ Friendly name / Host ]) you will need to change all IP and DNS settings so that they point to the new addresses of your CAS server (or indeed if you have used NLB with you CAS servers – the published NLB address).
Obviously this article represents a very simple scenario, however it does form the basis of a simple SSL certificate migration from Exchange 2003 to Exchange 2007 – if you are interested in more complicated scenarios please post a comment describing your situation and I will be happy to expand in further detail.

[...] Exporting Existing SSL OWA Certificates from Exchange 2003 FES to Exchange 2007 SP1 CAS on Windows 2… [...]
By: Weekend reading - subject: exchange on April 4, 2008
at 7:30 pm
Using this method, don’t ol2007 clients return Cert errors as your cert doesn’t have the fully qualified internal name?
By: jesse on April 8, 2008
at 4:05 am
Hiya Jesse, Sorry for the delay – I guess it depends on how you have you CAS servers and DNS name spaces configured.
Although the article was based around how to move the Certificate only from one server to another – the way in which my clients connect to the CAS server both Internally and Externally is via the same DNS Namespace – which can be configured in the “Autodiscover.xml” file (so I have not had any issues).
Although one thing that I will admit to is that my network does not have that many Outlook 2007 clients on it at the moment (only mine which seems to work fine).
Cheers
A
By: Andy Grogan on April 9, 2008
at 6:32 pm
Care to expand on this? I do not have a .cer file.
Ensuring that you have a copy of the original .cer file (the SSL certificate) from your issuer – this is not essential but really does help remove an element of complexity during the migration process – this article will assume that you have the original .cer file (if you do not have it e-mail me and I will elaborate on what you can do with the .pfx file).
Thanks,
R
By: Richard on August 5, 2008
at 7:07 pm
Then you will need to export the existing certificate from your Front end server using IIS to a PFX file.
IIS will ask you to provide a private key – during the import you will be prompted for this key.
A
By: Andy Grogan on August 5, 2008
at 7:34 pm
I can export from the 03 server to a pfx – I am prompted to create a password when I do so. But when I import it to the 08 server I provide the password, the import completes but if I look at the cert its status is ‘This certificate is expired or not yet valid’
(Valid from 4/3/08 through 4/3/11)
Am I missing something?
By: Richard on August 5, 2008
at 7:41 pm
I Just got it – it appears that MS ships window 2008 with an expired intermediate cert from VeriSign…brilliant.
updated the intermediate cert (which expired in 2004) and that fixed it.
By: Richard on August 5, 2008
at 8:07 pm
[...] Exporting Existing SSL OWA Certificates from Exchange 2003 FES to Exchange 2007 SP1 CAS on Windows 2… [...]
By: Networknet.nl » Blog Archive » SSL certificate Windows Server 2008 and Exchange 2007 SP1 on August 27, 2008
at 12:21 pm
I don’t have the orginal cer file either. I know how to export/import the pfx file but the article also mentions importing the cer file from the command shell as well as the tumbprint. Is this required if I only have the pfx file and import it through IIS?
I have a single exchange 2007 server.
Thank you.
By: Fl on October 29, 2008
at 1:33 am
Thank you very much for posting instructions on how to perform the SSL certificate migration from Exchange 2003 to Exchange 2007. I’m astonished at how a simple task has become so convuluted with the introduction of Exchange 2007 and IIS 7.0. This task was easier to accomplish between Exchange 2003 servers.
By: Stanford on January 31, 2009
at 7:46 pm
Excellent blog, was very helpful for getting my certificate moved. I was going from Windows 2003 x32 Exchange 2003 to Windows 2003 x64 with Exchange 2007. The screens with your output did now appear in Firefox, but the instructions were definitely clear enough for me to accomplish the task.
Again, Thank you
Rich
By: Rich on May 29, 2009
at 4:42 pm
[...] e-mail (use another Gmail pop account or something). The link I found that shows how to export is here. I’m too tired to test until tomorrow AM. Guess I’ll be going in [...]
By: tylerbrenner.com » Blog Archive » iPhones on July 22, 2009
at 3:56 am
Great Article – thanks
By: Lord Melch on September 29, 2009
at 12:03 pm
Dear Sir:
I installed windows 2008 64 bit & exchange 2007.
pop3/smtp & exhange users using this.
now my exchange users getting mail from pop3/smtp users in junk folder. how can i solve this ?
lot of spam mail also coming.
i configured CAS,Mail box server, Hub transport server.
Please help me on the following issue
Sincerely
Bijoy
By: Bijoy on October 28, 2009
at 7:05 am
Just wanted to say thanks for the invaluable doc. Your scenario matched mine perfectly and you saved me a lot of time.
By: Matt on November 11, 2009
at 3:50 pm