Opc.Ua.Configuration.MainForm.CreateCertificateAuthorityBTN_Click C# (CSharp) Method

CreateCertificateAuthorityBTN_Click() private method

private CreateCertificateAuthorityBTN_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void CreateCertificateAuthorityBTN_Click(object sender, EventArgs e)
        {
            try
            {
                CertificateStoreIdentifier store = new CertificateStoreIdentifier();
                store.StoreType = ManagedStoreCTRL.StoreType;
                store.StorePath = ManagedStoreCTRL.StorePath;
 
                CertificateIdentifier certificate = new CreateAuthorityDlg().ShowDialog(store);

                if (certificate != null)
                {
                    IssuerKeyFilePathTB.Text = certificate.GetPrivateKeyFilePath();
                    Utils.UpdateRecentFileList("CA Key File", IssuerKeyFilePathTB.Text, 1);
                }
            }
            catch (Exception exception)
            {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }