Decode PKCS#7 Signature via Windows API?
问题 I wish to parse and display the contents of an Authenticode PKCS#7 signature as extracted from a Window PE binary's Security Directory. I can use OpenSSL to do this on the command line with " openssl pkcs7 -text -in extracted_signature.pks -inform DER -print_certs ", however I need to do this via C/C++ and the Windows API. I cannot use the OpenSSL library itself. Using the CryptDecodeObjectEx API I can begin to decode the extracted signature: CRYPT_CONTENT_INFO * content_info; DWORD len;