I'm using the below code (trimmed a bit of unimportant stuff out) to check a given page on a site, and validate the server certificates. However, it seems to not call the callback at all for some sites, despite the url being https, and manual checking of the site indicates a valid certificate.
I'm using an instance level function and a mutex so I can ensure that I'm checking one at a time. I've even stepped through the code, and the callback just doesn't get called for some sites.
Any ideas why?
private bool checkedCertificate;
public void RunTest(object url)
Mutex mutex = new Mutex(false, "WebsiteLock");