hi bruno. what does it mean "not work well". any error messages?
Sent from my iPhone On 29 Apr 2013, at 18:14, Bruno Warmling <[email protected]> wrote: > 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)); > >
