Re: Decrypting pkcs7 messages

2005-08-18 Thread Tan Eng Ten
Hi, U can loop through every PKCS7_RECIP_INFO object in P7->d.enveloped->recipientinfo stack and print the issuer and serial like: X509_NAME_print(bio, recp_info->issuer_and_serial->issuer, ) i2a_ASN1_INTEGER(bio, recp_info->issuer_and_serial->serial, .) Hadmut Danisch wrote: Hi, a q

Decrypting pkcs7 messages

2005-08-18 Thread Hadmut Danisch
Hi, a question about pkcs7 decryption: An encrypted pkcs7 message (enveloped) contains a list of recipient info objects (i.e. the subject name of the issuer and the serial number of the certificates used for encryption). When I pass a certificate and a private key to the library, the library