Topic: Create a CSR(Certificate Signing Request) minimum size fw
Hi all,
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 for some reason (nx_api not found..), e2 studio, is for a S5D9 MCU.
I thought to make a start even from an Arduino build (in IDE folder) and STM32 Keil, but I don't think Synergy Pack will like it.
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 Elliptic ECC 2048).
The command that I need to "replicate" is the following:
openssl req -new -sha256 -key ecc_private.pem -out ecc_cert.csr -subj "/CN=unused"
This caught my eye: https://github.com/wolfSSL/wolfssl-exam … _example.c
The problem I'm facing is compile the wolfssl suite as a minimum set (don't need TLS for example) and include the relative headers that I need and the library into e2studio.
I'm really struggling with this at the moment, any hint or direction would be greatly appreciated.
Thanks,
S