title: how to convert ssl private-key.txt to private.key extension
body: <p>I got pvt-key.txt, certificate.crt and bundle.crt files from godaddy.
  I am setting ssl for node js backend using <code>https</code> options</p>
  
  <pre><code>var httpsoptions = {
      key: fs.readFileSync("pvt-key.txt"),
      cert: fs.readFileSync("certificate.crt")
  };
  </code></pre>
  
  <p>but it is not working.</p>
  
  <p><code>Error: error:0906D06C:PEM routines:PEM_read_bio:no start line</code></p>
  
  <p>I also converted .txt to .pem but there is same error. if I generate key from this command </p>
  
  <p><code>openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey2.key -out certificate2.crt</code></p>
  
  <p>then it works. I think there should be <code>.key</code> extension instead of <code>.pem</code> or <code>.txt</code>. Please help me to convert file into <code>.key</code> extension. Thank you in advance.</p>