cURL to DropBox using Symfony 3

I use the Gaufrette Bundle of Symfony to access DropBox API.
The code in my controller is

$dropbox = $this->get('acme.dropbox.api');

I get an error
Curl error: (77) error setting certificate verify locations:
CAfile: rootca
CApath: /etc/ssl/certs
500 Internal Server Error – Dropbox_Exception_NotFound

I used Docker so not sure if it’s with the way I configured the certificates on my Docker. I used bundle for Docker.

  • Swarm mode rolling updates progress
  • Enable CORS on Cloudant local
  • Kill a running process like a webserver inside a Docker container without killing the container
  • Setting ssh public keys on Docker image
  • Tensorflow docker container predictions won't work outside of container
  • docker pull failing with = FATA[0001]: x509: not
  • Can I bundle the Oracle JDBC driver JAR in a Docker image?
  • Dockerfile make error code 2
  • Docker Mount Volume Directory with Install Files
  • Improving Docker security
  • Docker dotnet image container do not allow me to rebuild after change
  • Automate service (couchbase) configuration of a docker container
  • One Solution collect form web for “cURL to DropBox using Symfony 3”

    The problem was it couldn’t find the certificate file.

            curl_setopt($ch, CURLOPT_CAINFO, "/etc/ssl/certs/ca-certificates.crt");

    On my docker box the certificates are in folder /etc/ssl/certs and I had to write the file extension as well.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.