title: How to programmatically create a Certificate Signing Request (CSR)?
body: <p>How to implement it in C?</p>
  
  <p><code>openssl req -new -key cert.key -out cert.csr</code></p>
  
  <pre><code>openssl x509 -req -in cert.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out cert.crt -days 5000
  </code></pre>