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.

Share

Re: How to extract p12 file without the library

Hello steins,

Thanks for joining the wolfSSL Support forums. You are trying to isolate all the functions for parsing and decoding a certificate? Any particular reason? The compiler tools should allow you to optimize any unused functionality.

What is the environment you are building in / for?

Thank,
Eric @ wolfSSL Support

Re: How to extract p12 file without the library

Hello Eric,
Thank you for your replying.
Right now I am trying to embed the function into the vehicles so that can receive the certification. The requirement is that the function should run solely without using static or dynamic library.
By the way, I think I can do that work, just need a lot of time to do that.
Thank you

Share

Re: How to extract p12 file without the library

Hi steins,

Thanks for the project details. If you get stuck, please send an email to support@wolfssl.com where we can better prioritize your request.

Cheers,
Eric @ wolfSSL Support