Update IMAP’s SSL certificate on Exchange 2013 using Powershell. This will also enable SSL for the IMAP service if it is not already enabled.
#Check the existing IMAP settings
[PS] C:\Windows\system32>Get-ImapSettings UnencryptedOrTLSBindings SSLBindings LoginType X509CertificateName ------------------------ ----------- --------- ------------------- {[::]:143, 0.0.0.0:143} {[::]:993, 0.0.0.0:993} SecureLogin <original-certificate-name>
#Point IMAP to a new, valid certificate
Set-ImapSettings -X509CertificateName '<new-certificate-name>'
#Restart the IMAP service on the mail server to pick up the new setting.
#Review the updated IMAP settings:
[PS] C:\Windows\system32>Get-ImapSettings UnencryptedOrTLSBindings SSLBindings LoginType X509CertificateName ------------------------ ----------- --------- ------------------- {[::]:143, 0.0.0.0:143} {[::]:993, 0.0.0.0:993} SecureLogin <new-certificate-name>