2016-12-13 22:54 GMT-03:00 Salz, Rich <rsalz@xxxxxxxxxx>:
> Is there some equivalent to PHP's openssl_sign_pkcs7 function for C/C++ users?
Look at the apps/pkcs7.c file as a starting point. Get the command line doing what you want, and then work through the code to pull out only the bits you need.
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
A Valid X509 structure with the PEM file.
A Valid EVP_PKEY structure with the KEY file.
Created a BIO with BIO_new(BIO_s_mem()) and used BIO_read_filename with it.
Now I get to the part where I need to call PKCS7_sign() right?
If so, I'm missing something, because:
PKCS7_sign(cert,key,NULL,fileBIO,NULL) produces NULL as a result.
Any hints?
-- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users