I’m working on an embedded MCU and I these is what I want to do:
Generate a new private key (RSA or ECC)
Generate a CSR starting from the private key.
My question is: is it possible to generate a RSA private key with mbedTLS?
Is also possible to generate the Certificate Signing request (CSR) from the private key?
Note these articles explain how to use the example reference applications to do what you need, but you can look at these examples, and see how to gerenrate a keypair, and how to generate a CSR.
I recommend you also look at the Mbed TLs tutorial if you are relatively new to Mbed TLS.
Regards,
Mbed TLs Team member
Ron