/ Microsoft Exchange

Exchange Online: Publish S/MIME certificate

Requirements

  • S/MIME Certificate as file
  • Remote Powershell connection to Exchange Online
  • S/MIME-Browser-Addon for sending Emails over OWA

Commands

$cert=New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("C:\certs\smime.cer")
$certArray = New-Object System.Collections.ArrayList
$certArray.Insert(0,$cert.GetRawCertData())
Set-Mailbox -Identity testuser@olli.la -UserCertificate $certArray