I need to generate a Certificate Signing Request given that I already have my private key, I can generate PKI with my MCU using hardware acceleration crypto engine.
What I need to do is assemble a CSR from the private key (already in pem format) in my firmware.
I tried the wolfssl suite, but I can not compile it (e2 studio, eclipse based), also was looking at the Chilkat suite, again is distributed in lib packages and are anyway too much for what I need.
I also thought about compiling from OpenSSL source to understand the minimum includes/ functions I would need to generate the CSR, but seems like looking for a needle in the haystack.
Is there a minimum set of functions/includes that I can use to generate the CSR given that I already have the capability of producing keys?
All is for an embedded environment, so a minimum set of functions would be greatly appreciated. Basically, I'm trying to port the minimum set of functions to an embedded platform to just generate a CSR from a private key (key is Elyptic ECC 2048).