How can i set the document name of CMS Message? I trying to use this code, but not work well.
byte[] textBytes = System.Text.Encoding.Unicode.GetBytes("test.pdf");
DerOctetString berOctetString = new DerOctetString(textBytes);
Org.BouncyCastle.Asn1.Cms.Attribute documentName = new
Org.BouncyCastle.Asn1.Cms.Attribute(dnOid, new BerSet(berOctetString));
