Security Policy Errors

Troubleshoot AD FS Signing Certificate Rollover for Office 365

Natalie TaylorNatalie Taylor Nov 14, 2026 869 views

Question details

Determine why Office 365 has not picked up a renewed AD FS token-signing certificate.

Troubleshoot AD FS Signing Certificate Rollover for Office 365
Product
Office 365 and AD FS
Device & OS
Windows Server (version not provided)
Scenario
A federation administrator needs Office 365 to recognize a new AD FS signing certificate after local rollover.
Observed behavior
The certificate rolls over locally, but Office 365 continues using the previous certificate. Federation management tasks may be disabled, and WinRM access to the primary server may fail.
Before you start

Identify the federated domain, the AD FS servers, and the server running Microsoft Entra Connect. Use an account authorized to inspect AD FS, WinRM, and the domain's federation settings.

Solution 1Recommended

Restore WinRM access and verify the AD FS certificate rollover

Use this method when the primary AD FS server is unknown, federation management tasks are disabled, or the WinRM listener reports ListeningOn=null.

1
Check the signing certificates

On an AD FS server, open PowerShell and run Get-AdfsCertificate -CertificateType Token-Signing and Get-AdfsProperties. Record the primary and secondary certificates and check the AutoCertificateRollover setting.

2
Identify the primary server

Run Get-AdfsSyncProperties on an AD FS server and inspect its Role and, on a secondary server, PrimaryComputerName. In Microsoft Entra Connect, review the federation management configuration and confirm that it points to the primary AD FS server.

3
Test WinRM connectivity

From the Microsoft Entra Connect server, run Test-WSMan -ComputerName <primary-server> -Authentication Negotiate -Credential (Get-Credential). If access is denied, check the account's permissions and WinRM authorization on the AD FS server. Ensure the configured WinRM port is reachable: HTTP typically uses 5985 and HTTPS uses 5986.

4
Inspect the listener and policy

On the primary AD FS server, run winrm enumerate winrm/config/listener. If ListeningOn is null, check Group Policy under Computer Configuration > Administrative Templates > Windows Components > Windows Remote Management (WinRM) > WinRM Service > Allow remote server management through WinRM. Correct the IPv4 filter to include the server's local addresses; use * only if your security policy permits it. Apply the policy with gpupdate /force and inspect the listener again.

5
Retest synchronization

Retry the applicable federation management task in Microsoft Entra Connect after WinRM access is restored. Then compare the AD FS token-signing certificates with the federated domain's signing and next-signing certificates in Microsoft Entra ID, using the Microsoft Graph PowerShell command Get-MgDomainFederationConfiguration -DomainId <domain> after connecting with appropriate permissions.

Restore WinRM access and verify the AD FS certificate rollover
Listener and certificate checks: The WinRM IPv4 filter controls local listener addresses, not the remote client's allowed IP addresses. A listener may also be managed by Group Policy; correct the policy before attempting to recreate it. Allow time for federation metadata changes to propagate before concluding that synchronization has failed.
Free Microsoft Office alternative

Work with Office documents in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface and support for common Microsoft Office formats, making it easy to move existing documents. It does not repair AD FS federation or certificate synchronization.

Open and edit documents without relying on the affected Office 365 federation configurationCompatible with Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTXUse a familiar interface for everyday document workMove existing Office files into a lightweight productivity suite
microsoft office alternative - wps office

Frequently Asked Questions

Why can AD FS roll over a certificate while Office 365 still uses the old one?

Local certificate rollover and cloud federation updates are separate processes. Check the AD FS token-signing certificates, federation management access, and the domain's signing certificates in Microsoft Entra ID.

What does ListeningOn=null mean in a WinRM listener?

It can indicate that the listener has no matching local address. Check the WinRM Service Group Policy IPv4 filter and run winrm enumerate winrm/config/listener on the AD FS server.

Which WinRM ports should I check?

Check the port used by the configured listener and firewall rules. WinRM commonly uses TCP 5985 for HTTP and TCP 5986 for HTTPS; HTTPS also requires an appropriately configured listener and certificate.

How do I find the primary AD FS server?

Run Get-AdfsSyncProperties on an AD FS server. Check Role, and on a secondary server check PrimaryComputerName for the configured primary.

Can WPS Office fix the AD FS certificate rollover?

No. WPS Office is an alternative for working with Office documents; the federation administrator must resolve the AD FS, WinRM, or Microsoft Entra configuration issue.