Writes a CMS ContentInfo holding a SignedData over content, signed with
SHA-256 by an RSA or EC key, carrying the given certificates — or, with no
privateKey, RFC 8062's unsigned SignedData, with no signer and no
certificate.
Parameters
opts: any
contentType (an OID), content (bytes), signerCertDer,
chainDers (more certificates, the Root left out) and privateKey
Writes a CMS ContentInfo holding a SignedData over
content, signed with SHA-256 by an RSA or EC key, carrying the given certificates — or, with noprivateKey, RFC 8062's unsigned SignedData, with no signer and no certificate.