wolfSSL can't parse Authenticode PKCS7 SignedData but OpenSSL can
Version
5.8.2
Description
When I try to parse PKCS7 SignedData from PE file authenticode signatures, wolfSSL fails but OpenSSL works fine with the same data. The failure happens here
To reproduce:
- Get a PE file with an authenticode signature
- Extract the PKCS7 SignedData from it
- Try to parse it with wolfSSL - it fails with ASN_PARSE_E
- Same data works fine with OpenSSL
These are just standard PKCS7 SignedData structures so wolfSSL should be able to handle them.
Hi @vanddlf-debug ,
Please share an example PE file, it would also be helpful if you can share your full reproducer. Alternatively a debug log would be helpful (--enable-debug --enable-debug-trace-errcodes and run wolfSSL_Debugging_ON() at the beginning of your program).
How are you building wolfSSL? Please share your build settings.
Hi @vanddlf-debug ,
Please share an example PE file, it would also be helpful if you can share your full reproducer. Alternatively a debug log would be helpful (
--enable-debug --enable-debug-trace-errcodesand runwolfSSL_Debugging_ON()at the beginning of your program). How are you building wolfSSL? Please share your build settings.
Thanks for the followup. I'm assigning this issue to my colleague who will review it further.
In the meantime, can you give us more information about your project? Are you using wolfSSL in a commercial or personal project?