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.

  • How to run docker on mac offline
  • Are changes to Docker images automatically transferred to deployed containers?
  • How do I link a container in docker only if it exists when starting the container?
  • Keeping PostgreSQL data in docker and OSX
  • Is there any definitive guide on how to pass all the arguments to Docker containers while starting a container through kubernetes?
  • Docker overlay network doesn't clean up removed containers
  • Docker installation on Ubuntu 12.04 -> cannot connect to daemon
  • docker-machine create breaks at `DBG | Filling zeroes`
  • How to configure Docker to communicate over the network?
  • Installing Postgres 9.6 in centos docker
  • Jenkins docker cache not working
  • Docker and http url of started web application
  • 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.