All,
I've implemented a class that inherits the ICertificatePolicy interface. I
then set ServicePointManager.CertificatePolicy = this. In my
CheckValidationResult(), I log server cert info and return true. Now say for
example, the CN name on the server cert does not match the site name, my
CheckValidationResult() function is called. After returning true, if I go to
the same site- my CheckValidationResult() is not called again. I assume
because I returned true, and it has cached that information.
My question is can I change this behavior so it will always call my
CheckValidationResult() on each new request, if there is a cert problem?
I've checked ServicePointManger and ServicePoint but do not see any method
that would clear, flush, reset, etc. this information.
Regards
Erin.