public static void Asn1SetTrialJunk() { Asn1Encodable foo = null; Asn1Encodable bar = null; DerSequence subjectAlternativeNames = new DerSequence(new Asn1Encodable[] { new GeneralName(GeneralName.DnsName, "localhost"), new GeneralName(GeneralName.DnsName, System.Environment.MachineName), new GeneralName(GeneralName.DnsName, "127.0.0.1") }); Asn1EncodableVector v = new Asn1EncodableVector(); v.Add(Org.BouncyCastle.Asn1.X509.X509Extensions.SubjectAlternativeName); // v.Add(DerBoolean.True); v.Add(subjectAlternativeNames); // var ds = new DerSet(v); //var ds = new DerSet(new DerSequence(new DerSequence(new DerSequence(v)))); // byte[] der = new DerSequence(v).GetDerEncoded(); // var ds = new DerSet(new DerSequence(v)); // System.Collections.Generic.Dictionary<DerObjectIdentifier, string> dict = new System.Collections.Generic.Dictionary<DerObjectIdentifier, string>(); // AttributeTable att = new AttributeTable(dict); // Asn1Set derSet = new DerSet(foo, bar, subjectAlternativeNames); Asn1Set derSet = new DerSet(subjectAlternativeNames); // Asn1Set derSet1 = new DerSet(att.to); string asn1st = subjectAlternativeNames.ToString(); System.Console.WriteLine(asn1st); }