How to fix Curl error 60 (certificate has expired) while running ‘composer update’ on a Docker conteiner?

  composer-php, curl, docker, php

I am trying to execute composer update within a Docker container (FROM php:5.6-apache) in order to download private repositories, but I am getting as result:

[ComposerDownloaderTransportException] curl error 60 while downloading SSL certificate problem: certificate has expired

I tried to download the certificate on curl website and add it on my php.ini file as curl.cainfo but the error survived.

Does anyone has any tip to help me?!

Thanks in advance.

Source: Docker Questions