Ejemplo n.º 1
0
 private void smtp1_VerifyServer(object sender, CleverComponents.InetSuite.VerifyPeerEventArgs e)
 {
     if (!e.Verified && (MessageBox.Show(e.StatusText + "\r\n Do you wish to proceed ?", "Verify certificate",
                                         MessageBoxButtons.YesNo) == DialogResult.Yes))
     {
         e.Verified = true;
     }
 }
 private void http1_VerifyServer(object sender, CleverComponents.InetSuite.VerifyPeerEventArgs e)
 {
     if (!e.Verified && (MessageBox.Show(e.StatusText + "\r\n Do you wish to view / install the certificate ?", "Certificate confirmation",
                                         MessageBoxButtons.YesNo) == DialogResult.Yes))
     {
         if (ViewCertificate(e.Certificate))
         {
             e.Verified = true;
         }
     }
 }