Beispiel #1
0
 protected CertificateGroup(
     string authoritiesStorePath,
     CertificateGroupConfiguration certificateGroupConfiguration
     )
 {
     m_authoritiesStorePath = authoritiesStorePath;
     m_authoritiesStoreType = CertificateStoreIdentifier.DetermineStoreType(m_authoritiesStorePath);
     Configuration          = certificateGroupConfiguration;
 }
 protected CertificateGroup(
     string authoritiesStorePath,
     CertificateGroupConfiguration certificateGroupConfiguration
     )
 {
     m_authoritiesStorePath = authoritiesStorePath;
     m_authoritiesStoreType = CertificateStoreIdentifier.DetermineStoreType(m_authoritiesStorePath);
     Configuration          = certificateGroupConfiguration;
     m_subjectName          = Configuration.SubjectName.Replace("localhost", Utils.GetHostName());
 }
Beispiel #3
0
        protected async Task <CertificateGroup> InitializeCertificateGroup(CertificateGroupConfiguration certificateGroupConfiguration)
        {
            if (String.IsNullOrEmpty(certificateGroupConfiguration.SubjectName))
            {
                throw new ArgumentNullException("SubjectName not specified");
            }

            if (String.IsNullOrEmpty(certificateGroupConfiguration.BaseStorePath))
            {
                throw new ArgumentNullException("BaseStorePath not specified");
            }

            CertificateGroup certificateGroup = m_certificateGroupProvider.Create(
                m_configuration.AuthoritiesStorePath, certificateGroupConfiguration);

            SetCertificateGroupNodes(certificateGroup);
            await certificateGroup.Init();

            return(certificateGroup);
        }
 public virtual CertificateGroup Create(
     string storePath,
     CertificateGroupConfiguration certificateGroupConfiguration)
 {
     return(new CertificateGroup(storePath, certificateGroupConfiguration));
 }