예제 #1
0
 public X509Name(Asn1Sequence node)
 {
     foreach (var subnode in node.Nodes)
     {
         var set  = (Asn1Set)subnode;
         var item = new X509RelativeDistinguishedName(set);
         _items.Add(item);
     }
 }
예제 #2
0
        private void Set(Asn1ObjectIdentifier id, string value)
        {
            var item = _items.FirstOrDefault(i => i.Id == id);

            if (item == null)
            {
                item = new X509RelativeDistinguishedName(id);
                _items.Add(item);
            }
            item.Value = value;
        }