Ejemplo n.º 1
0
        private void sslCreate_Click(object sender, EventArgs e)
        {
            SslClear();
            SslPopulateCerts(null);
            SslPopulateIPs();
            this.sslPort.Text = "443";
            string store;

            this.sslCertHash.Text           = CertificatePicker.FindFirstValidCert(out store);
            this.sslCertStore.Text          = store;
            this.sslCheckRevocation.Checked = true;
            SslSetEditing(true);
        }
Ejemplo n.º 2
0
        private void sslBrowse_Click(object sender, EventArgs e)
        {
            CertificatePicker cp     = new CertificatePicker();
            DialogResult      result = cp.ShowDialog();

            if (result == DialogResult.Cancel || string.IsNullOrEmpty(cp.Store) || string.IsNullOrEmpty(cp.Hash))
            {
                return;
            }
            this.sslCertHash.Text  = cp.Hash;
            this.sslCertStore.Text = cp.Store;
            SslSetEditing(true);
        }