Installing a Certificate on Exchange 2007 (Powershell)
Once you have purchased your certificate, and the domains have been validated as under your ownership, you will receive an email containing the certificate.
The certificate file should be copied onto your Exchange 2007 server. It is then installed using the Import-ExchangeCertificate cmdlet.
Note: do NOT use the Certificates snap-in for the MMC to install the certificate.
This will not work for Exchange 2007!
Open the Exchange Management Shell.
This can be done by doing the following:
- Click Start,
- click Programs, and then
- click Microsoft Exchange Server 2007. Then click Exchange Management Shell.
In this example, the certificate file is copied to the server as the
ilec:\exchange_example_net.crt
Import-ExchangeCertificate -Path c:\exchange_example_net.crt | Enable-ExchangeCertificate -Services SMTP ; where c:\exchange_example_net.crt is your certificate that you got from PKI Partner.
The ‘Services’ flag sets which services the certificate is enabled for.
Valid options include: SMTP IMAP POP IIS UM
To enable multiple services:
Import-ExchangeCertificate -Path c:\exchange_example_net.crt | Enable-ExchangeCertificate -Services “SMTP, POP, IMAP, IIS” ; wherec:\exchange_example_net.crt is your certificate that you got from PKI Partner.
Note: Once you have installed the site certificate you may need to follow the procedure outlined in “Root and Intermediate Certificate installation via MMC” with the other files that you have been sent in order to complete the installation.