Hi @Андрей Михалевский ,
In some environments, it may take an hour for the OAuth certificate to be published.
So you can clear the old certificate after you deploy the new certificate to the Exchange server:
Set-AuthConfig -ClearPreviousCertificate
Then restart the Microsoft Exchange Service Host Service and run the following command (in elevated mode) to recycle the OWA and ECP app pools:
Restart-WebAppPool MSExchangeOWAAppPool
Restart-WebAppPool MSExchangeECPAppPool
For detailed steps on this error, please refer to the Workaround section in this link:
You can't access OWA or ECP after you install Exchange Server 2016 CU6 - Microsoft Support
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread