WIF Error: ID4036

ID4036: The key needed to decrypt the encrypted security token could not be resolved from the following security key identifier ‘<KeyInfo xmlns=”….. {omitted}…Ensure that the SecurityTokenResolver is populated with the required key.
-SOLUTION: you have the wrong signing credentials for this STS, use the same credentials as the RP is expecting (from the other working sts’s)—specifically

federation = (WebConfigurationManager.GetSection(“federation”) as Federation);

scope.EncryptingCredentials = new X509EncryptingCredentials(
           CertificateUtility.GetCertificate(StoreName.My, StoreLocation.LocalMachine,

About Larry Louisiana

I'm a Microsoft Partner Consultant.
This entry was posted in Programming and tagged , , . Bookmark the permalink.

2 Responses to WIF Error: ID4036

  1. Pingback: WIF Errors & Fixes Index | Ely Bob's space

  2. Pingback: WIF Error: ID1044 | Ely Bob's space

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s