if(pDebug)e.WebTest.AddCommentToResult("Certificate is TRUSTED");
myCertTrusted=true;
}else
{
if(pDebug)e.WebTest.AddCommentToResult("Waring: Certificate is NOT TRUSTED by client. Might not be trusted on server either. Check that the Issuer/CA root and intermediary certificates are installed on the client and server.");
if(pDebug)e.WebTest.AddCommentToResult("Certificate is TRUSTED");
myCertTrusted=true;
}else
{
e.WebTest.AddCommentToResult("Warning: Certificate is NOT TRUSTED by client. Might not be trusted on server either. Check that the Issuer/CA root and intermediary certificates are installed on the client and server.");
myCertTrusted=false;
}
// Check that the certificate exists in the cert store
X509StorecuStore=newX509Store();
cuStore.Open(OpenFlags.ReadWrite);
if(cuStore.Certificates.Contains(cer)){
if(pDebug)e.WebTest.AddCommentToResult("Certificate is INSTALLED");