Example #1
0
        public static CertSubject Parse(string subject)
        {
            var certSubject = new CertSubject();
            if (!string.IsNullOrEmpty(subject))
            {
                var mathes = Parser.Matches(subject);
                foreach (Match match in mathes)
                {
                    certSubject._params[match.Groups["name"].Value.Trim()] = match.Groups["value"].Value.Trim();
                }
            }

            return certSubject;
        }
Example #2
0
        public static CertSubject Parse(string subject)
        {
            var certSubject = new CertSubject();

            if (!string.IsNullOrEmpty(subject))
            {
                var mathes = Parser.Matches(subject);
                foreach (Match match in mathes)
                {
                    certSubject._params[match.Groups["name"].Value.Trim()] = match.Groups["value"].Value.Trim();
                }
            }

            return(certSubject);
        }