I want to create pkcs7 signed envelop having S/MIME format and also want to read it. The file extension is pk7.
How to do it with the OpenSSL library?
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.
The
SMIME_read_PKCS7()andSMIME_write_PKCS7()functions can be used to convert an SMIME message into a PKCS7 structure and vice-versa.You can use
PKCS7_sign()/PKCS7_encrypt()to create PKCS7 structures, andPKCS7_verify()/PKCS7_decrypt()to consume them.