camino (sent by Nabble.com) wrote:
i have a signed letter, how can i extract the certificate from it ? [...] but i wonder how to achieve it in program
The openssl documentation is somewhat lacking on this subject.
Still http://www.openssl.org/docs/crypto/PKCS7_verify.html# gives you a starting point on what to look for, and then you can check in the application and example code how it is used. http://www.koders.com point to some interesting example of use of PKCS7_verify inside "cryptonit <http://www.koders.com/info.aspx?c=ProjectInfo&pid=2ZS8UD4SZWU8FM4812TTAHRFGF>" and "The OSP client Toolkit <http://www.koders.com/info.aspx?c=ProjectInfo&pid=86UW22T2KU8XWL89Q61WNN2KLH>" that also demonstrate what you want to do.
Or you go the easy way and buy the book. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
