Installing an SSL Certificate: Exchange 2010 (PowerShell)

Option 1

From the Exchange Management Shell, run the following command to install the server, root and intermediate certificates to their respective certificate scores:

Import-ExchangeCertificate -FileData ([Byte[]]$(Get-Content -Path c:\certificates\YOUR_CERTIFICATE.cer -Encoding byte -ReadCount 0))

Please Note: If you received .crt files instead of one .cer file, then you will want to ensure that YOUR_CERTIFICATE.cer is YOUR_ORDER_NUMBER.crt or YOUR_FQDN.crt. As a result of this format, you may need to install the Root & Intermediate certificates on your server manually.

Make sure there are no spaces in your path. As a result of running this command, it should output a thumbprint. 

Now, to enable the services, run the following:

Enable-ExchangeCertificate -Thumbprint $your-thumbprint -Services "POP,IMAP,SMTP,IIS"

(This assumes that you"ll be running the above services)

Option 2

Alternatively, you can run the following command to import & enable services in one line.

Import-ExchangeCertificate -FileData ([Byte[]]$(Get-Content -Path c:\certificates\YOUR_CERTIFICATE.cer -Encoding byte -ReadCount 0)) | Enable-ExchangeCertificate -Services "IIS,POP,IMAP,SMTP"

Is article helpful?