I would like to use OpenSSL’s cms library to encrypt a file with a certain certificate using the CMS_encrypt() method. (I guess this should be the right one)
Does anyone has a small sample about using CMS_encrypt()?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve found a demo in C in the openssl download folder in openssl…/demos/cms/cms_enc.c
With the following code (property of openssl):