Exchange Exchange 2016 certificate

image_pdfimage_print

Exchange certificate expired

It should occur that forget the SSL certificate to have exchanged before expiration.

In a few small steps, this malady is resolved.

# Read current certificate
Get-ExchangeCertificate | Where {$ _. IsSelfSigned -eq $ false} | FL FriendlyName, CertificateDomains, Thumbprint, NotAfter

# Base the existing request
Get-ExchangeCertificate -Thumbprint 559642FCD3DD4769D79A457D11875AF9E6E49F3C | New-ExchangeCertificate -GenerateRequest -RequestFile "\\ ex16 \ c $ \ users \ NDS \ desktop \ certreq.txt" -PrivateKeyExportable: $ true

# Import new certificate
Import-ExchangeCertificate -FileName "\\ ex16 \ c $ \ users \ NDS \ desktop \ ex16.cer" -PrivateKeyExportable: $ true

# Bind imported certificate
Enable-ExchangeCertificate -Thumbprint 95194B92F3CFFC9CE7F3C8A94B48E3973D472195 services "IIS, SMTP, POP, IMAP"

# Control
Get-ExchangeCertificate | where {$ _. IsSelfSigned -eq $ false} | Format-List FriendlyName, Thumbprint, NotAfter, Services

# Delete old certificate
Remove-ExchangeCertificate -Thumbprint 559642FCD3DD4769D79A457D11875AF9E6E49F3C

Exchange Exchange 2016 certificate