sign

fun sign(plaintext: ByteArray, privateKey: PrivateKey, signerCertificate: Certificate): ByteArray

Sign the plaintext and return the CMS SignedData serialized.