How to troubleshoot issue with Entra application certificate update
When a managed Microsoft 365 tenant is added to Cayosoft Guardian using Entra application, Cayosoft Guardian creates an application in the tenant and uses a certificate for authentication. Cayosoft Guardian is expected to rotate this certificate automatically when it is nearing expiration.
In some scenarios, the Health Check job reports that the certificate was rotated, however the certificate is not actually updated, causing Cayosoft Guardian to lose access to the tenant once the certificate expires.
NOTE: Cayosoft Guardian version 7.1 includes improvements to Entra application authentication and certificate rotation logic. If you are running an earlier version, Cayosoft strongly recommends upgrading to version 7.1 or later before applying the manual workaround described in this article.
Symptoms
- Health Check runs successfully but does not actually rotate the certificate.
- Cayosoft Guardian can no longer collect data from the tenant after the certificate expires.
- Health Check job displays messages similar to:
- The credentials are assigned to Managed Tenant <tenant name>.
- Authentication certificate is expired.
- Failed to connect to https://graph.microsoft.com… No connection could be made because the target machine actively refused it.
- The Managed Tenant component shows Health Check failures related to authentication.
Root cause
Cayosoft Guardian attempts to rotate Entra application certificates during the Health Check job. In some configurations, the rotation logic executes but does not apply the new certificate to the tenant application, even though Health Check logs indicate that rotation occurred.
As a result:
- The old certificate remains active.
- When it expires, Guardian loses access to the tenant.
- Subsequent Health Check runs may still report that the certificate was rotated.
Impact
- Guardian cannot authenticate to the managed tenant.
- Microsoft Graph data collection fails.
- Threat Detection ingestion and other tenant-related jobs may fail.
- The tenant appears unhealthy in Health Check until credentials are renewed.
Resolution
In case the certificate has not expired yet, update the certificate with the 'Renew service principal credentials' action:
- Open the affected Managed tenant in Cayosoft Guardian.
- Open the Credentials tab and double-click Account name.
Click Renew service principal credentials.
- In the confirmation dialog, set the Certificate rotation period (days) as needed.
Click Update.
TIP: This action forces regeneration of a new certificate, updates the Entra App Registration, and restores Cayosoft Guardian’s ability to authenticate and collect data.
- To reduce the risk of future expiration issues, configure an appropriate rotation period. Cayosoft Guardian will schedule the next certificate rotation based on this value.
- Run Check Health for the tenant.
- Open the Health check history tab.
- Confirm that:
- The new certificate is shown as applied.
- No authentication failures are reported.
Allow several minutes for Entra propagation before reviewing the results.
If the certificate has already expired or the Renew service principal credentials action is failing:
- Click Grant Access.
Then click Grant. Enter credentials of an Entra Global Administrator.
- Click Save.
Contact support
Contact support in case:
- The certificate does not update even after manual renewal.
- Health Check reports successful rotation, but the Entra App Registration certificate remains unchanged.
- Tenant authentication continues to fail despite valid Entra application credentials.
Comments
0 comments
Please sign in to leave a comment.