c# - Implement client-specific WCF ServicePointManager ServerCertificateValidationCallback? -


servicepointmanager.servercertificatevalidationcallback allows custom validation of service-side certificates.

this works fine when there 1 custom validator. have multiple clients , need able specify different validators each client.

now, best can tell, there 1 servicepointmanager clientbase objects, so, default, clients pass through same service-side certificate validation chain.

if have to, suppose could:

  1. hook validators chain , add logic each understand when validate , when return true

  2. maintain collection of validators (ugh!) , invoke appropriately

i'm hoping avoid both ... there extensible component built wcf supports multiple servicepointmanagers?

help! suggestions or pointers welcome!


Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

Spring Boot + JPA + Hibernate: Unable to locate persister -