title: How to generate RSA private key using OpenSSL?
body: <p>I want to know how to generate RSA private key using OpenSSL library in my C source file. I know how to generate it using terminal command.</p>
  
  <p>Actually my server.c file will generate a private key and send to client.c
  Please help me with some source code if possible, otherwise any help will be appreciated.</p>
  
  <p>I'm working on Linux machine.</p>