Created
February 4, 2026 16:13
-
-
Save justaguywhocodes/8c36933f2d356d632caf610488c4c637 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Retrieve Token-Signing Certificate | |
| $signingCert = Get-AdfsCertificate -CertificateType "Token-Signing" | |
| Export-PfxCertificate -Cert $signingCert.Certificate -FilePath "C:\temp\ADFS_Signing.pfx" -Password (ConvertTo-SecureString -String "YourSecurePassword!" -Force -AsPlainText) | |
| # Retrieve Token-Decrypting Certificate | |
| $decryptingCert = Get-AdfsCertificate -CertificateType "Token-Decrypting" | |
| Export-PfxCertificate -Cert $decryptingCert.Certificate -FilePath "C:\temp\ADFS_Decrypting.pfx" -Password (ConvertTo-SecureString -String "YourSecurePassword!" -Force -AsPlainText) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment