O'Reilly logo

Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition by Mike Pfeiffer, Jonas Andersson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing certificates and enabling services

After you've generated a certificate request and have obtained a certificate from a certificate authority, you will need to install the certificate on your server using the Import-ExchangeCertificate cmdlet. This recipe will show you how to install certificates issued from a certificate authority and how to assign services to the certificate using the Exchange Management Shell.

How to do it...

  1. Let's say that you have requested and downloaded a certificate from an Active Directory Enterprise CA and downloaded the file to the root of C:\. First, read the certificate data into a variable in the shell:
    $certificate = Get-Content -Path c:\certnew.cer `
    -Encoding Byte `
    -ReadCount 0
    
  2. Next, we can import the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required