title: curl SSL certificate issue - Go Daddy secure certificate authority - g2
body: <p>I need to connect to a 3rd party API signed by <strong>Go Daddy secure certificate authority - G2</strong>. (I verified that in the Chrome browser).</p>
  <p>When I try to issue a curl request to that API over port 8443 (which is opened) I receive the following error:</p>
  <blockquote>
  <p>SSL certificate problem: unable to get local issuer certificate
  Closing connection 0 curl: (60) SSL certificate problem: unable to get local issuer certificate More details here:
  <a href="https://curl.haxx.se/docs/sslcerts.html" rel="nofollow noreferrer">https://curl.haxx.se/docs/sslcerts.html</a></p>
  </blockquote>
  <p>I checked and in the default curl cacert store there is <strong>Go Daddy secure certificate authority - G2</strong> listed.
  I also downloaded the latest cacert store from <a href="https://curl.se/docs/caextract.html" rel="nofollow noreferrer">https://curl.se/docs/caextract.html</a> and used that by supplying --cacert option to curl command and again I received the same error.</p>
  <p>By using -v option with curl command in output I receive which cacert store is used so with that I am sure it is using the one I explicitly added to the command.</p>
  <p>Since the certificate exists in cacert store that I am telling curl to use, what else am I missing here?</p>