Hello Dev Team,
Currently we are generating certificates in PKCS12 format using the API
PKCS12_create() but we need to generate certificates in PEM format but
didn't find any alternative API by looking at pem.h in the source code.

Can you please help us ? We are programming in C/C++. I am aware that I
can invoke a system command to convert from PKCS12 format to PEM format but
I want to programatically create one in PEM itself.

Thanks,
Prateek