ESP32 and OpenVPN Certificate Authority

Hi,

I need to generate RSA private key and certificate signing request in ESP32 and send the csr file to OpenVPN certificate authority for signature.

Is there a way to generate RSA private key and certificate signing request in ESP32 using any Arduino library? Has anyone come across such issue? If so then could you please help me how to progress. Also please let me know whether this is possible or not?

I am already able to generate the private key, certificate signing request and sign the csr in OpenVPN CA ( using ./build-key client) but now I need to generate the key and csr file in ESP32 and sign it separately by OpenVPN CA to generate the public certificate.

Any help will be much appreciated!!!

Thanks

Is there a way to generate RSA private key and certificate signing request in ESP32 using any Arduino library?

Wrong choice of platform. An ESP32 won't be able to run OpenVPN. Choose a Linux-based device as p.e. the Raspberry Pi for such projects. It has enough processing power and enough memory to support the necessary encryption algorithms.

It's not necessary to generate the CSR and the private key on the target platform, you can generate them anywhere if you have a secure way to transfer them to the target platform.