title: Curl does not take into consideration the given certificate(using --cert option)
body: <p>I am trying to call an URL using <strong>curl</strong>, I used below command:</p>
  
  <pre><code>curl https://testenvironment/login --cert Qa1Certificate.pem
  </code></pre>
  
  <p>The result I get is:</p>
  
  <pre><code>curl: (60) Peer certificate cannot be authenticated with known CA certificates
   More details here: http://curl.haxx.se/docs/sslcerts.html
  
  curl performs SSL certificate verification by default, using a "bundle"
   of Certificate Authority (CA) public keys (CA certs). If the default
   bundle file isn't adequate, you can specify an alternate file
   using the --cacert option.
  If this HTTPS server uses a certificate signed by a CA represented in
   the bundle, the certificate verification probably failed due to a
   problem with the certificate (it might be expired, or the name might
   not match the domain name in the URL).
  If you'd like to turn off curl's verification of the certificate, use
   the -k (or --insecure) option.
  </code></pre>
  
  <p>The <strong>Qa1Certificate.pem</strong> is placed in the current directory, and I believe that it is not taken into consideration because when I run the same command with a file name which does not exist:</p>
  
  <pre><code>curl https://testenvironment/login --cert ThisFileDoesNotExist.pem
  </code></pre>
  
  <p>I get the same result. </p>
  
  <p>I am aware that I can obtain what I need using the -k or --insecure options( or other ways of disabling curl's verification of the certificate), but I 
  want to find out how can I use the certificate in order to perform a successful GET to my test environment.</p>
  
  <p>The test environment uses a self signed certificate which I obtained using openSSL.</p>