title: Add password to openssl .pem file from -password
body: <p>I am generating a <code>.pem</code> file using openssl using the command:</p>
  
  <pre><code>openssl genrsa -aes256 -out ca.key.pem 4096
  </code></pre>
  
  <p>It is working great but when I do this:</p>
  
  <pre><code>openssl genrsa -aes256 -out ca.key.pem 4096 -password pass:abcd
  </code></pre>
  
  <p>It is still asking me for a password in the terminal and not automatically taking the supplied password.</p>
  
  <p>I've tried generating certificates before and it works for them eg.</p>
  
  <pre><code>openssl pkcs12 -name username -inkey cert/key.key -in abc.pem -export -out cert.p12 -password pass:abcd
  </code></pre>