/ / the message you want to sign so that recipient can be sure it was you that / / sent it $data = EOD You have my authorization to spend $10,000 on dinner expenses.
flags can be used to alter the output - see PKCS7 constants - if not specified, it defaults to PKCS7_DETACHED.