SAML STS WSE 3.0 Problems replacing the SAML Authority Certificate



Hello, I'm hoping that someone can point me in the right direction. I'm
trying to use the SAML STS WSE framework from GotDotNet and I want to
replace the certificate that is used to sign the SAML tokens. Currently the
framework uses a generated certificate, but if I replace it with my own
certificate, then I get this error message 'The signature or decryption was
invalid'. Essentially the VerifySignedTokenXml function throws an exception
because SecurityTokenManager.GetTokenFromKeyInfo returns null.

File: SamlToken.cs, Function: VerifySignedTokenXML

_signingToken =
SecurityTokenManager.GetTokenFromKeyInfo(signedXml.KeyInfo);
bool result = (_signingToken != null) ? true : false;

I'm not sure I understand why this is happening. Any help would be
appreciated.

Thank you,

MS


.