BizTalk Utilities CV ,   Jobs ,   Code library
 
Go to the front page to continue learning about XML or select below:

Contents

ReBlogger Contents

Previous posts in WSCF/WCF

 
 
Page 9516 of 19626

MutualCertificate with server x509 cert in the response

Blogger : hongmeigs WebLog
All posts : All posts by hongmeigs WebLog
Category : WSCF/WCF
Blogged date : 2006 Dec 06

If you are getting error from the client saying certain token provider is not registered to deserialize the token, and if you are happening to be using this security binding:

SecurityBindingElement element = SecurityBindingElement.CreateMutualCertificateBindingElement(MessageSecurityVersion.WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10);

Then a very likely reason is that your server has included the x509 certificate in the response. The following flag is going to allow this scenario:

((AsymmetricSecurityBindingElement)element).AllowSerializedSigningTokenOnReply = true; 

If the client already has the server's certificate, it typically won't expect it in the response. That is why by default, WCF client is not expecting the server cert in the response.


Read comments or post a reply to : MutualCertificate with server x509 cert in the response
Page 9516 of 19626

Newest posts
 

    Email TopXML