title: cURL SSL Certificate working on Linux but not on Windows
body: <p>I am using cURL to do a GET Request to a URL using HTTPS protocol. I retrieved the CA Cert file from the owners of the webservice. The .crt file works in RHEL5 but not in windows, using the same command. Below are the commands I am using:</p>
  
  <p>RHEL5 without specifying --cacert</p>
  
  <pre><code>bash-3.2$ curl -i "https://&lt;url&gt;"
  curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
  error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
  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). The default
   bundle is named curl-ca-bundle.crt; 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>RHEL5 with specifying --cacert</p>
  
  <pre><code>bash-3.2$ curl -i "https://&lt;url&gt;" --cacert ca-bundle.crt 
  HTTP/1.1 200 OK
  Transfer-encoding: chunked
  Cache-control: no-cache
  Content-type: text/html
  Pragma: no-cache
  Date: Thu, 02 Jun 2016 03:06:32 GMT
  
  &lt;data&gt;
  </code></pre>
  
  <p>Windows without specifying --cacert</p>
  
  <pre><code>curl -i "https://&lt;url&gt;"
  curl: (35) schannel: next InitializeSecurityContext failed: SEC_E_UNTRUSTED_ROOT
   (0x80090325) - The certificate chain was issued by an authority that is not trusted.
  </code></pre>
  
  <p>Windows with specifying --cacert</p>
  
  <pre><code>curl -i "https://&lt;url&gt;" --cacert C:\&lt;path&gt;\ca-bundle.crt
  curl: (35) schannel: next InitializeSecurityContext failed: SEC_E_UNTRUSTED_ROOT
   (0x80090325) - The certificate chain was issued by an authority that is not trusted.
  </code></pre>
  
  <p>I am using exactly the same .crt file. Any suggestions on what might be the issue?</p>