public CertificateIdentifier ShowDialog(
CertificateStoreIdentifier targetStore,
string issuerKeyFilePath,
string issuerCertificatePassword)
{
CertificateStoreCTRL.StoreType = null;
CertificateStoreCTRL.StorePath = null;
IssuerKeyFilePathTB.Text = issuerKeyFilePath;
IssuerPasswordTB.Text = issuerCertificatePassword;
SubjectNameCK.Checked = false;
DomainNameTB.Text = System.Net.Dns.GetHostName();
KeySizeCB.SelectedIndex = 0;
LifeTimeInMonthsUD.Value = 60;
if (targetStore != null)
{
CertificateStoreCTRL.StoreType = targetStore.StoreType;
CertificateStoreCTRL.StorePath = targetStore.StorePath;
}
if (ShowDialog() != DialogResult.OK)
{
return null;
}
return m_certificate;
}