开发者

How to create and read pkcs7 signed envelop with smime format?

开发者 https://www.devze.com 2023-03-11 14:25 出处:网络
I want to create pkcs7 signed envelop having S/MIME format and also want to read it. The file extensi开发者_运维技巧on is pk7.

I want to create pkcs7 signed envelop having S/MIME format and also want to read it. The file extensi开发者_运维技巧on is pk7.

How to do it with the OpenSSL library?


The SMIME_read_PKCS7() and SMIME_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, and PKCS7_verify() / PKCS7_decrypt() to consume them.

0

精彩评论

暂无评论...
验证码 换一张
取 消