At a client they wanted to deploy an add-in from OWA and the Exchange Admin Center and it just wouldn’t give me the option to download and when trying from the OWA you just get a blank page.

Upon further investigation, we checked the event logs and were presented with Event ID 2005:

Exchange 2016/2019:- event id 2005, microsoft exchange server auth certificate
Exchange 2016/2019:- Event ID 2005, Microsoft Exchange Server Auth Certificate 1

There is our problem. It is actually not difficult to fix, there are a few commands that need to be run.

Firstly, you need to create a New-ExchangeCertificate and you can do so running this command:

  • New-ExchangeCertificate -KeySize 2048 -PrivateKeyExportable $true -SubjectName “cn=Microsoft Exchange Server Auth Certificate” -FriendlyName “Microsoft Exchange Server Auth Certificate” -DomainName “domainname”
Exchange 2016/2019:- event id 2005, microsoft exchange server auth certificate
Exchange 2016/2019:- Event ID 2005, Microsoft Exchange Server Auth Certificate 2

Next we need use the Certificate Thumbprint from the previous command to run the next one:

  • Set-AuthConfig -NewCertificateThumbprint <ThumbPrint> -NewCertificateEffectiveDate (Get-Date)
Exchange 2016/2019:- event id 2005, microsoft exchange server auth certificate
Exchange 2016/2019:- Event ID 2005, Microsoft Exchange Server Auth Certificate 3

Now we need to run the 3rd last command, we need to Publish the Certificate:

  • Set-AuthConfig –PublishCertificate
Exchange 2016/2019:- event id 2005, microsoft exchange server auth certificate
Exchange 2016/2019:- Event ID 2005, Microsoft Exchange Server Auth Certificate 4

Now for the final command to remove the previous certificate:

  • Set-AuthConfig -ClearPreviousCertificate
Exchange 2016/2019:- event id 2005, microsoft exchange server auth certificate
Exchange 2016/2019:- Event ID 2005, Microsoft Exchange Server Auth Certificate 5

You can either recycle the app pools for ECP and OWA or do an IISReset.

Event ID 2005 should then not be showing in the event logs anymore.

Hope it helps.

    wpChatIcon

    Discover more from COLLABORATION PRO

    Subscribe now to keep reading and get access to the full archive.

    Continue reading