- Generate a new certificate for the Entra ID fedefration adapter in the TruU Admin Console
- Run a PowerShell script to stage the new certificate in Entra (enabling trust for both old and new certificates)
- Rotate the certificate used for assertion signing in the TruU Admin Console (now TruU begins signing assertions with the new certificate)
- Validate that federation continues functioning properly
- Run a PowerShell script to promote the new certificate into the primary slot
- Finalize the transaction in the TruU Admin Console to mark the rotation as complete
Prerequisites
- Global administrator role in the Entra ID tenant
- Access to the TruU Admin Console for the environment being updated
- The domain must already be federated with TruU (see Federating Entra ID Domain to TruU for Authentication)
- PowerShell or PowerShell ISE, run as administrator, on a Windows machine with network access to Entra ID
- The Microsoft Graph PowerShell module installed, with an active
Connect-MgGraphsession authenticated as an account with permission to manage domain federation settings (Domain.ReadWrite.All)
Generating a New Federation Signing Certificate
- Navigate to Integrations and find the appropriate Entra ID adapter
- Click on the adapter to open the Edit dialog window
- Click Rotate signing certificate to generate the new certificate
Note: You can keep Edit Adapter dialog window open. If you close it, you can click on the adapter to open the dialog and resume.
Stage the New Certificate Using stage.ps1 PowerShell
- Run PowerShell ISE
- Copy the
stage.ps1script below into a new file - Copy the
Domainvalue from the Edit Adapter dialog in the TruU Admin Console - Paste the copied
Domainvalue as the value for the$domainvariable in thestage.ps1script - Do the same with the new signing certificate, pasting it into the
$nextCertificatevariable in the PowerShell script - On the PowerShell command line, execute
Connect-MgGraph -Scopes "Domain.ReadWrite.All" - Run the
stage.ps1PowerShell script
Note: The script will output a few lines describing the steps being executed. Analyze and correct any errors before continuing.
stage.ps1 PowerShell Script
Begin Using the New Certificate
- Click the I’ve run the stage script - Confirm button in the TruU Admin Console
- In a minute or two TruU will begin using the new certificate
- Open a new browser (and optionally a SAML tracer extension) and test SSO by logging into https://login.microsoftonline.com/ or any federated application
- If using a SAML tracer, you should see the new certificate in the WS-Fed/SAML assertion sent to
https://login.microsoftonline.com/login.srf
Note: You can keep the Edit Adapter dialog open and proceed to the next step.
Promoting the New Certificate
At this point you should see a note in the Edit Adapter dialog window stating, “TruU is now signing with the new certificate.” Now it is time to promote the new certificate, removing the old certificate from your federation configuration in Entra ID.- Copy the
promote.ps1PowerShell script below into a new file in PowerShell ISE - Update the
$domainand$signingCertificatevariables in the script with the values from the Edit Adapter dialog (copy the Domain and New Signing Certificate values from the dialog window into thepromote.ps1script) - Run the
promote.ps1script
Note: The script will output a few lines describing the steps being executed. Analyze and correct any errors before continuing.
promote.ps1 PowerShell Script
Finalizing the Rotation
- Click the I’ve run the promote script - Confirm button in the Edit Adapter dialog
- Click Accept on the Complete Rotation confirmation dialog window
Note: The old certificate is no longer paired with this Entra ID federation adapter. You may delete the old certificate and private key from the Integrations > Key Store page in the TruU Admin Console.

