Forum Discussion

Nikolas_Athanasakis's avatar
Nikolas_Athanasakis
Copper Contributor
Jul 14, 2021
Solved

Exchange Server error in '/owa' application

 

ASSERT: HMACProvider.GetCertificates:protectionCertificates.Length<1
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.Exchange.Diagnostics.ExAssertException: ASSERT: HMACProvider.GetCertificates:protectionCertificates.Length<1

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ExAssertException: ASSERT: HMACProvider.GetCertificates:protectionCertificates.Length<1]
Microsoft.Exchange.Diagnostics.ExAssert.AssertInternal(String formatString, Object[] parameters) +241
Microsoft.Exchange.Clients.Common.HmacProvider.GetCertificates() +478
Microsoft.Exchange.Clients.Common.HmacProvider.GetHmacProvider() +143
Microsoft.Exchange.Clients.Common.HmacProvider.ComputeHmac(Byte[][] messageArrays) +16
Microsoft.Exchange.HttpProxy.FbaModule.SetCadataCookies(HttpApplication httpApplication) +826
Microsoft.Exchange.HttpProxy.FbaFormPostProxyRequestHandler.HandleFbaFormPost(BackEndServer backEndServer) +2776
Microsoft.Exchange.HttpProxy.FbaFormPostProxyRequestHandler.ShouldContinueProxy() +20
Microsoft.Exchange.HttpProxy.ProxyRequestHandler.BeginProxyRequestOrRecalculate() +229
Microsoft.Exchange.HttpProxy.ProxyRequestHandler.InternalOnCalculateTargetBackEndCompleted(TargetCalculationCallbackBeacon beacon) +1379
Microsoft.Exchange.HttpProxy.<>c__DisplayClass3f.<OnCalculateTargetBackEndCompleted>b__3e() +311
Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch(TryDelegate tryDelegate, FilterDelegate filterDelegate, CatchDelegate catchDelegate) +35
Microsoft.Exchange.HttpProxy.Diagnostics.SendWatsonReportOnUnhandledException(MethodDelegate methodDelegate, LastChanceExceptionHandler exceptionHandler) +121
Microsoft.Exchange.HttpProxy.ProxyRequestHandler.CallThreadEntranceMethod(MethodDelegate method) +69

[AggregateException: One or more errors occurred.]
Microsoft.Exchange.HttpProxy.ProxyRequestHandler.EndProcessRequest(IAsyncResult result) +416
System.Web.CallHandlerExecutionStep.InvokeEndHandler(IAsyncResult ar) +231
System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +172

 

56 Replies

  • Matt-Freeman's avatar
    Matt-Freeman
    Copper Contributor
    I went ahead and updated the cert even though mine wasn't expired. After the other steps it started to work right away.
  • KarlT700's avatar
    KarlT700
    Copper Contributor

    Nikolas_Athanasakis 

     

    Our cert is an externally signed cert that is due to expire next year so we wanted to keep using it and not have to generate a new self sign one.

    We worked around this by just running the three PS commands below in Exchange PS

    Set-AuthConfig -NewCertificateThumbprint <WE JUST USED OUR CURRENT CERT THUMPRINT HERE> -NewCertificateEffectiveDate (Get-Date)
    Set-AuthConfig -PublishCertificate
    Set-AuthConfig -ClearPreviousCertificate

     

    Note: that we did have issues running the first command because our cert had been installed NOT allowing the export of the cert key. once we reinstalled the same cert back into the (local Computer) personal cert store but this time using the option to allow export of the cert key, the commands above worked fine.

    We then just needed to restart ISS and everything was golden. 😄

    • Duke-Laton's avatar
      Duke-Laton
      Copper Contributor

      KarlT700 

      Excellent! I got my cert thumbprints using this PS cmd:
      Get-ChildItem -Path Cert:LocalMachine\MY
      and then ran the three PS cmds as outlined by Karl, then ran IISreset to bounce the IIS on the exchange server and SHAZAM! was able to immediately get back into the Exchange console like before.
      Thanks for the help!

  • Sunux's avatar
    Sunux
    Copper Contributor
    FYI, Update:
    Since our cert wasn't expired I tried and installed CU10 and that solved it for me.
    • Trevor_Moon's avatar
      Trevor_Moon
      Copper Contributor

      installed exchange 2019 c11 error re certificate error.

  • Asterofus's avatar
    Asterofus
    Copper Contributor

    Nikolas_Athanasakis  Hi i have the same problem it started today at 2 am on our server. We can't log in to owa and ecp. I tried to create new auth-Config certificate becouse i couldn't display the thumprint but it didin't work too. im thinking about cu 10 bot not sure if this will fix problem.

Resources