title: Unable to load Private Key. OpenSSL on Windows Server 2012 R2
body: <p>I was setting up my MySQL server to use SSL, and followed the guide <a href="http://www.chriscalender.com/setting-up-ssl-for-mysql/" rel="nofollow">here</a>.</p>
  
  <p>After a creating a ca-key.pem, I encountered a problem: unable to load Private Key.</p>
  
  <p>The only similar problems I could find had to do with 'random state' error and permission errors. None of those applied in my case, as the key is created without problems.</p>
  
  <p>Here's the output after creation:</p>
  
  <pre><code>Loading 'screen' into random state - done
  Generating RSA private key, 2048 bit long modulus
  .....................................................+++
  ....................................+++
  e is 65537 (0x10001)
  </code></pre>
  
  <p>When I try the next command, I get the following error:</p>
  
  <pre><code>unable to load Private Key
  3056:error:0906D06C:PEM routines:PEM_read_bio:no start line:.\crypto\pem\pem_lib.c:701:Expecting: ANY PRIVATE KEY
  </code></pre>
  
  <p>My commands are exactly as in the guide, except the path to the key. To make sure, I copied the path each time, so no mistakes where made. The file was created, and looked like this:</p>
  
  <pre><code>-----BEGIN RSA PRIVATE KEY-----
  [Jibberish]
  -----END RSA PRIVATE KEY-----
  </code></pre>
  
  <p>I later tried the guide at <a href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https.html" rel="nofollow">Amazon</a> (Which where posted in alot of the places with similar problems) with the same result.</p>
  
  <p>I have basically no idea what i'm doing, so any tips would be helpful!</p>
  
  <p>The server is a fresh install of Windows Server 2012 R2, with only MySQL Server and OpenSSL on it.</p>