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
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
Copyright © 2021 Jogjafile Inc.
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):