Troubleshoot AD FS Signing Certificate Rollover for Office 365
Question details
Determine why Office 365 has not picked up a renewed AD FS token-signing certificate.

- 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.
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.
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.
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.
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.
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.
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.
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.

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.

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.




