title: error reading X.509 key or certificate file: Error in parsing when sending certificate in Curl Request
body: <p>I used the openssl to generate a self-signed certificate using following command</p>
  
  <pre><code>openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365ls
  </code></pre>
  
  <p>I am  sending this cert.pem with the curl command </p>
  
  <pre><code>curl --header 'Accept: application/json' --header 'Authorization: Bearer 043473b9-5cf4-3dcc-b7a6-32813f6e4df2' 'https://localhost:8243/pizzashack/1.0.0/menu' --cert cert.pem --key key.pem -k -v
  </code></pre>
  
  <p>But this fails with the error: error reading X.509 key or certificate file: Error in parsing when sending certificate in Curl Request</p>
  
  <p>How can i overcome this issue?</p>