title: Generate RSA private key from n, e, d, p, q values in bash with OpenSSL
body: <p>I have calculated n, e, d, p, q values of an RSA key.
  Now, how can I generate a private key file (pem or der) with openssl command line tools?</p>
  
  <p>I was thinking about </p>
  
  <pre><code>openssl asn1parse -genconf asn1.cnf -noout -out asn1.der
  </code></pre>
  
  <p>but I cannot understand how to build the conf file.</p>