search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
How to import SSL certificate to Exchange Server 2010 with Powershell?
Posted in Exchange Server, Windows Powershell | No Comment | 6,420 views | 04/10/2009 02:48

We generated a certificate request before. Now, we’ll import our SSL certificate to Exchange Server 2010 with Powershell.

Import-ExchangeCertificate -FileData ([Byte[]]$(Get-Content -Path C:\Exchange.p7b
-Encoding byte -ReadCount 0)) -Password:(Get-Credential).password

As you see, we can’t use -Path command with Import-ExchangeCertificate anymore.

Importing SSL certificate in Exchange Server 2007:

Import-ExchangeCertificate -path C:\Exchange.p7b

If you try to execute Exchange Server 2007 command, you get this error:

A positional parameter cannot be found that accepts argument ‘-path’.
+ CategoryInfo : InvalidArgument: (:) [Import-ExchangeCertificate], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Import-ExchangeCertificate

After importing SSL certificate, you can use Enable-ExchangeCertificate to enable SSL on services.



Leave a Reply