Forum Discussion
lug-ms
Dec 17, 2020Copper Contributor
Cant set smtp tls certificate for send-connector
I have an Exchange in Hybrid Mode with O365. After renewing the certificate (not self signed, its from sectigo) I cant assign it to SMTP, and therefore I cannot assign it to the "Outbound to O365" C...
MarkusOE
Dec 22, 2022Brass Contributor
Summary:
Export your certificate including private key as .pfx and then re-import it either using Exchange Management Shell or ECP (not: MMC!).
Approved solution method:
a) [PS] $bincert = Export-ExchangeCertificate -BinaryEncoded -Thumbprint <Certificate Thumbprint> -Password (Get-Credential).password
b) [PS] [System.IO.File]::WriteAllBytes('C:\users\user\desktop\wildcard23.pfx', $bincert.FileData)
c) Delete the certificate from your computer using MMC
d) [PS] Import-ExchangeCertificate -Server <servername> -FileData ([System.IO.File]::ReadAllBytes('\\localhost\c$\users\user\desktop\wildcard23.pfx')) -Password (Get-Credential).password