private void http1_GetCertificate(object sender, CleverComponents.InetSuite.GetCertificateEventArgs e)
        {
            clientCertificateStore.Close();
            clientCertificateStore.Open("MY");

            SelectCertificateForm dlg = new SelectCertificateForm();

            foreach (Certificate cert in clientCertificateStore.Items)
            {
                dlg.listBox1.Items.Add(cert.IssuedTo);
            }

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                e.Certificate = clientCertificateStore.Items[dlg.listBox1.SelectedIndex];
            }
            e.Handled = true;
        }
Beispiel #2
0
 private void btnClose_Click(object sender, System.EventArgs e)
 {
     certificateStore1.Close();
     LoadCertificateList();
     isOpened = false;
 }