title: Unable to load Private Key
body: <p>I am new to SSL/OpenSSL and I'm working on Windows 7. I'm trying to configure HTTPS for my ElasticBeanstalk environment following <a href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https.html" rel="noreferrer">these instructions</a>.</p>
  
  <p>I'm at Step 2 in "Create a Private Key".  After I issue the command to generate the key pair:</p>
  
  <pre><code>openssl genrsa 2048 &gt; privatekey.pem
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>Generating RSA private key, 2048 bit long modulus
  ........................................+++
  ...............................+++
  unable to write 'random state'
  e is 65537 (0x10001)
  </code></pre>
  
  <p>However, it does write a key to my directory. But after the second command:</p>
  
  <pre><code>openssl req -new -key privatekey.pem -out csr.pem
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>unable to load Private Key
  6312:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:647:Expecting: ANY PRIVATE KEY
  </code></pre>
  
  <p>I've tried Googling this a bit, but none of the solutions I've found seem to be relevant for me.  I checked the generated key and it looks like </p>
  
  <pre><code>-----BEGIN RSA PRIVATE KEY-----
   {lots of characters}
  -----END RSA PRIVATE KEY-----
  </code></pre>
  
  <p>What am I doing incorrectly?</p>