Quantcast
Channel: efexare.com
Viewing all articles
Browse latest Browse all 10

update ssl certificates in exchange 2013 with powershell

$
0
0

How to update certificates in exchange 2013 using powershell. note the below command marks the cerficates as exportable on your exchange server.
Also, you can remotely update other exchange servers by specifying $server.
I have not specified the SMTP service as i do not use encryption on the smtp server.

Lastly, you will be prompted for a username/password. the username doesnt matter, the password does as it’s the pfx import password.


$pfxfile = "d:\certs\2015\certificate.pfx"
$friendlyname = "friendlyname.com"
$server = "server1"
$certificate = Import-ExchangeCertificate -FileData ([Byte[]]$(Get-Content -Path $pfxfile -Encoding byte -ReadCount 0)) -Password:(Get-Credential).password -FriendlyName $friendlyname -PrivateKeyExportable $true -server $server

Enable-ExchangeCertificate -thumbprint $certificate.thumbprint -Services POP,IMAP,IIS -server $server


Viewing all articles
Browse latest Browse all 10

Trending Articles