title: Windows, cURL 60 unable to get local issuer certificate
body: <p>I have already tried a lots of options available for this problem on stackoverflow, unfortunately nothing is working for me so far.</p>
  
  <p>It started with composer installation. My env details are listed below:</p>
  
  <ol>
  <li>OS: Windows 7</li>
  <li>PHP V 7.1.10, XAMPP version</li>
  <li><p>I am running MINGW64, (which was installed with git v2.1.5)</p>
  
  <blockquote>
    <p>curl --version</p>
    
    <p>curl 7.56.1 (x86_64-w64-mingw32) libcurl/7.56.1 OpenSSL/1.0.2l (WinSSL) zlib/1.2.11 libidn2/2.0.4 libssh2/1.8.0 nghttp2/1.26.0</p>
    
    <p>Release-Date: 2017-10-23</p>
    
    <p>Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp</p>
    
    <p>Features: AsynchDNS IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz TLS-SRP HTTP2 HTTPS-proxy MultiSSL Metalink</p>
  </blockquote></li>
  </ol>
  
  <p>Now here it seems <code>CURL</code> with <code>OpenSSL</code> is installed correctly.
  When I was doing <code>composer require or install</code> it was reported me an error as follows:
  <a href="https://i.stack.imgur.com/19llj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/19llj.png" alt="enter image description here"></a></p>
  
  <p>I searched and figured out that its the local certificate problem so I downloaded the certificate/bundle from <a href="https://curl.haxx.se/docs/caextract.html" rel="noreferrer">https://curl.haxx.se/docs/caextract.html</a>, placed the certificate under <code>C:\xampp\php\extras\ssl\</code> and changed the PHP.ini </p>
  
  <blockquote>
    <p>curl.cainfo="C:\xampp\apache\bin\curl-ca-bundle.crt"
    openssl.cafile="C:\xampp\php\extras\ssl\curl-ca-bundle.crt"</p>
  </blockquote>
  
  <p>this never worked. Then I placed my certificates under <code>C:\Windows\System32\curl-ca-bundle.crt</code>, changed the ini still it didn't work.</p>
  
  <p>Then I downloaded <code>cacert.pem</code> from </p>
  
  <blockquote>
    <p><a href="https://gist.github.com/VersatilityWerks/5719158/download" rel="noreferrer">https://gist.github.com/VersatilityWerks/5719158/download</a></p>
  </blockquote>
  
  <p>and repeated steps to make it work with <code>pem</code> file.
  However I am afraid still no success here.
  Can anyone help me whats wrong going on here? Any help in this direction is much 
  appreciated.</p>