March 23 2024

Exchange create new cert, powershell

$certrequest = New-ExchangeCertificate -GenerateRequest -FriendlyName “WC_3-1-2024” -SubjectName “c=US,o=Absolute Computers,cn=*.wildcard.example.com” -DomainName *.wildcard.example.com -PrivateKeyExportable $true

[System.IO.File]::WriteAllBytes(‘\\EX1\temp\certrequest.txt’, [System.Text.Encoding]::Unicode.GetBytes($certrequest))

Import-ExchangeCertificate -FriendlyName “WC_3-1-2024” -FileData ([System.IO.File]::ReadAllBytes(‘\\EX1\temp\signedcert.crt’)) -PrivateKeyExportable $true


Get-ExchangeCertificate | Format-Table FriendlyName, Status, PrivateKeyExportable

Assign it: (Thumbprint)
Get-ExchangeCertificate | Format-Table Subject, Thumbprint
Enable-ExchangeCertificate -Server EX1 -Thumbprint 3CCE909364222906E8CDEE3765188FABD8851A89 -Services IIS,SMTP


Copyright 2021. All rights reserved.

Posted March 23, 2024 by reggie goldman in category "Uncategorized