CMS_sign(3) | LibreSSL | CMS_sign(3) |
NAME
CMS_sign - create a CMS SignedData structureSYNOPSIS
#include <openssl/cms.h>
CMS_ContentInfo *CMS_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, BIO *data, unsigned int flags);
DESCRIPTION
CMS_sign() creates and returns a CMS SignedData structure. signcert is the certificate to sign with, pkey is the corresponding private key. certs is an optional additional set of certificates to include in the CMS structure (for example any intermediate CAs in the chain). Any or all of these parameters can be NULL, see NOTES below.NOTES
Any of the following flags (ored together) can be passed in the flags parameter.BUGS
Some attributes such as counter signatures are not supported.RETURN VALUES
CMS_sign() returns either a valid CMS_ContentInfo structure or NULL if an error occurred. The error can be obtained from ERR_get_error(3).SEE ALSO
ERR_get_error(3), CMS_verify(3)HISTORY
CMS_sign() was added to OpenSSL 0.9.82015-10-26 | LibreSSL |