Exemple #1
0
 public CrlDistributionPointsExt(DistributionPointEntry ent)
 {
     if (ent.Issuer)
     {
         throw new ArgumentException("This is not a valid crl distribution point");
     }
     NativeName = "crlDistributionPoints";
     Value      = ent.Name;
     sections   = Environment.NewLine + ent.SectionCode + Environment.NewLine;
 }
Exemple #2
0
 public IssuingDistributionPointsExt(DistributionPointEntry ent)
 {
     if (!ent.Issuer)
     {
         throw new ArgumentException("This is not a valid issuer distribution point");
     }
     NativeName = "issuingDistributionPoint";
     Value      = "@" + ent.Name;
     sections   = Environment.NewLine + ent.SectionCode + Environment.NewLine;
 }
Exemple #3
0
        private void buttonX13_Click(object sender, EventArgs e)
        {
            try
            {
                if (crlacc != null || checkBoxX1.Checked)
                {
                    List <GlobalName> gn = new List <GlobalName>();
                    foreach (ListViewItem it in listView1.Items)
                    {
                        if (it.Tag is GlobalName)
                        {
                            gn.Add((GlobalName)it.Tag);
                        }
                    }


                    if (!checkBoxX1.Checked && crlacc != null)
                    {
                        List <GlobalName> crli = new List <GlobalName>();
                        crli.Add(crlacc);

                        DPoint = new DistributionPointEntry(GetFlags(), gn, crli);
                    }
                    else if (listView1.Items.Count > 0)
                    {
                        //    DistributionPointName dpn = new DistributionPointName(new GeneralNames(crlacc));
                        DPoint = new DistributionPointEntry(GetFlags(), gn, indirectcrl.Checked, cattcerts.Checked, cattcerts.Checked, usercerts.Checked);
                    }

                    this.Close();
                }
                else
                {
                    MessageBoxEx.Show("Please add a CRL access point (URL, IP...)", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
            }
            catch (Exception ex)
            {
                MessageBoxEx.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }