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);
}
}