Opc.Ua.Configuration.CreateSslCertificateDlg.ShowDialog C# (CSharp) Method

ShowDialog() public method

Displays the dialog.
public ShowDialog ( CertificateStoreIdentifier targetStore, string issuerKeyFilePath, string issuerCertificatePassword ) : CertificateIdentifier
targetStore CertificateStoreIdentifier
issuerKeyFilePath string
issuerCertificatePassword string
return CertificateIdentifier
        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;
        }