title: unable to set private key file: './cert.pem' type PEM
body: <p>I am using curl to download data from a https site using public certificate files.</p>
  
  <p>System information:</p>
  
  <ul>
  <li><strong>OS:</strong> fedora 14</li>
  <li><strong>curl:</strong> curl 7.30.0</li>
  <li><strong>openssl:</strong> OpenSSL 1.0.0a-fips</li>
  </ul>
  
  <p>The command is,</p>
  
  <pre><code>curl -v "https://&lt;ip:&lt;port&gt;" --cert "./cert.pem" --cacert "./cacert.pem" --cert-type PEM
  * About to connect() to kng.com port 443 (#0)
  *   Trying 11.19.37.123...
  * Adding handle: conn: 0x8189e68
  * Adding handle: send: 0
  * Adding handle: recv: 0
  * Curl_addHandleToPipeline: length: 1
  * - Conn 0 (0x8189e68) send_pipe: 1, recv_pipe: 0
  * Connected to fkng.com (11.19.37.123) port 443 (#0)
  * unable to set private key file: './cert.pem' type PEM
  * Closing connection 0
  curl: (58) unable to set private key file: './cert.pem' type PEM
  </code></pre>
  
  <p>I have have given all the permission to the <code>.pem</code> file, still curl is throwing an error.</p>