Topic: How to extract p12 file without the library
Right now, I want to parse the encoded p12 certification and get the decoded private key. I have successfully using the existing example to do that and get the correct data.
However, the question is this example uses the wolfssl.lib file but I want to use the function solely without transferring the library file.
My current method is checking every function the process is called and copied them into one file. After all, the file can be dealt with Visual Studio and become a executable file but the output is “return value of d2i pkcs12 = -140 FAIL”. I found that the file data hasn’t been correctly read into the structure.
Does anyone can give some idea or opinions? Thank you very much.