Ejemplo n.º 1
0
        //[Ignore]
        public void FindCA()
        {
            var templateName = "WebServer";
            var keyLength    = 2048;

            var caServer      = @"ad.lab.local\lab-ca";
            var certification = new Certification();

            certification.SelectCA();
        }
Ejemplo n.º 2
0
        private void SelectCA_Button_Click(object sender, EventArgs e)
        {
            var caConfig      = this.CaConfigBindingSource[0] as CaConfig;
            var certification = new Certification();

            try
            {
                caConfig.Server = certification.SelectCA();
                this.templateNameComboBox.DataSource = certification.GetCaTemplates(caConfig.Server);
            }
            catch (Exception ex)
            {
                MessageBox.Show($"{ex},{ex.HResult}");
            }
        }