Plan AD FS Primary and Secondary Certificate Rollover
Question details
Plan the replacement of an expiring AD FS token-signing or token-decryption certificate while coordinating with relying-party vendors.
- Product
- Active Directory Federation Services (AD FS)
- Device & OS
- not provided
- Scenario
- An organization wants to add a replacement certificate as secondary so federation partners can update their metadata before the current certificate expires.
- Observed behavior
- The organization needs to determine how partners handle secondary certificates and whether SSO will continue before the replacement becomes primary.
Identify whether the expiring certificate is used for token signing or token decryption, and inventory the federation partners that depend on it. Check whether AD FS manages certificate rollover automatically and confirm each partner's metadata refresh and certificate trust process.
Stage and test the AD FS certificate before promoting it
Use a coordinated rollover to give federation partners time to prepare while the existing certificate remains primary.
For token signing, AD FS continues to sign with the primary certificate until promotion. If a relying party trusts only the new signing certificate before that point, it generally cannot validate tokens signed with the old certificate, and SSO can fail.
Token-decryption certificates serve a different purpose: AD FS uses their private keys to decrypt tokens sent to it. Confirm the sending partner's encryption behavior and test the new certificate rather than assuming it follows the signing-certificate trust process.
On an AD FS server, open PowerShell and run Get-AdfsCertificate to identify the primary and secondary token-signing and token-decryption certificates and their expiration dates.
Ask each federation partner whether it reads secondary certificates from federation metadata, refreshes metadata automatically, and can trust both old and new signing certificates during the transition. Provide the AD FS federation metadata endpoint, typically https://<federation-service-name>/FederationMetadata/2007-06/FederationMetadata.xml.
Follow your AD FS certificate management procedure to install the replacement certificate and register it as secondary for the correct certificate type. For a manually managed certificate, an administrator can use Add-AdfsCertificate with the appropriate -CertificateType and -Thumbprint; verify private-key availability and permissions on the AD FS servers.
Use a test relying party or a vendor-approved test flow to check sign-in while the old signing certificate is primary and the partner trusts both certificates. For decryption rollover, test a token encrypted to the new certificate and confirm that AD FS can decrypt it.
At the agreed cutover, promote the replacement using the applicable AD FS rollover procedure; for a manually managed certificate, use Set-AdfsCertificate with the correct -CertificateType, -Thumbprint, and -IsPrimary. Run Get-AdfsCertificate again and test sign-in with each partner before retiring the old certificate.

Document Your Certificate Rollover Plan with WPS Office
WPS Office is a free, lightweight alternative for documenting rollover tasks and tracking partner readiness. Its familiar interface and Microsoft Office format compatibility make it easy to move existing plans into WPS. It does not manage or fix AD FS certificates.

Frequently Asked Questions
Will SSO work if a vendor trusts only the new signing certificate before it is primary?
Generally, no. AD FS continues signing with the old primary certificate until promotion, so a vendor that trusts only the new certificate may reject those tokens. Ask the vendor to retain trust in the old certificate during the transition.
How can I check which AD FS certificate is primary?
Run Get-AdfsCertificate in PowerShell on an AD FS server and review the certificate types, expiration dates, and primary status.
Do relying parties automatically use secondary certificates in AD FS metadata?
Not necessarily. Vendors differ in how they read and refresh metadata and whether they accept multiple signing certificates. Confirm their behavior and test it before the cutover.
Does a token-decryption certificate rollover work the same way as a signing rollover?
No. Signing certificates let partners validate tokens issued by AD FS; decryption certificates let AD FS decrypt tokens sent to it. Coordinate with the sending partner and test encryption to the replacement certificate.




