PKCS7_sign(3) | LibreSSL | PKCS7_sign(3) |
NAME
PKCS7_sign - create a PKCS#7 signedData structureSYNOPSIS
#include <openssl/pkcs7.h>
PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, BIO *data, int flags);
DESCRIPTION
PKCS7_sign() creates and returns a PKCS#7 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 PKCS#7 structure (for example any intermediate CAs in the chain).NOTES
Any of the following flags (ored together) can be passed in the flags parameter.NOTES
If the flag PKCS7_STREAM is set the returned PKCS7 structure is not complete and outputting its contents via a function that does not properly finalize the PKCS7 structure will give unpredictable results.BUGS
Some advanced attributes such as counter signatures are not supported.RETURN VALUES
PKCS7_sign() returns either a valid PKCS7 structure or NULL if an error occurred. The error can be obtained from ERR_get_error(3).SEE ALSO
ERR_get_error(3), PKCS7_verify(3)HISTORY
PKCS7_sign() was added to OpenSSL 0.9.52015-10-26 | LibreSSL |