Skip to main content
Over time you may need to update the federation configuration between your Entra ID domain and TruU — most commonly because the signing certificate on the existing adapter is nearing expiration and needs to be rotated. This guide walks through generating a fresh configuration and applying it to your existing federated domain. Updating federation does not require you to re-register your custom domain in Entra ID or repeat the initial onboarding steps. The process is performed through a combination of actions in the TruU Admin Console and PowerShell scripts. You will generate a new certificate for the Entra ID federation adapter in the TruU Admin Console, stage that certificate in Entra using PowerShell (so your federation accepts assertions signed by both the old and new certificate), rotate the
  1. Generate a new certificate for the Entra ID fedefration adapter in the TruU Admin Console
  2. Run a PowerShell script to stage the new certificate in Entra (enabling trust for both old and new certificates)
  3. Rotate the certificate used for assertion signing in the TruU Admin Console (now TruU begins signing assertions with the new certificate)
  4. Validate that federation continues functioning properly
  5. Run a PowerShell script to promote the new certificate into the primary slot
  6. 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-MgGraph session authenticated as an account with permission to manage domain federation settings (Domain.ReadWrite.All)

Generating a New Federation Signing Certificate

  1. Navigate to Integrations and find the appropriate Entra ID adapter
  2. Click on the adapter to open the Edit dialog window
  3. 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

  1. Run PowerShell ISE
  2. Copy the stage.ps1 script below into a new file
  3. Copy the Domain value from the Edit Adapter dialog in the TruU Admin Console
  4. Paste the copied Domain value as the value for the $domain variable in the stage.ps1 script
  5. Do the same with the new signing certificate, pasting it into the $nextCertificate variable in the PowerShell script
  6. On the PowerShell command line, execute Connect-MgGraph -Scopes "Domain.ReadWrite.All"
  7. Run the stage.ps1 PowerShell 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

  1. Click the I’ve run the stage script - Confirm button in the TruU Admin Console
  2. In a minute or two TruU will begin using the new certificate
  3. Open a new browser (and optionally a SAML tracer extension) and test SSO by logging into https://login.microsoftonline.com/ or any federated application
  4. 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.
  1. Copy the promote.ps1 PowerShell script below into a new file in PowerShell ISE
  2. Update the $domain and $signingCertificate variables in the script with the values from the Edit Adapter dialog (copy the Domain and New Signing Certificate values from the dialog window into the promote.ps1 script)
  3. Run the promote.ps1 script
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

  1. Click the I’ve run the promote script - Confirm button in the Edit Adapter dialog
  2. 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.