'composer install' command fails on Docker giving 'SSL Operation Failed with code 1' error 'composer install' command fails on Docker giving 'SSL Operation Failed with code 1' error docker docker

'composer install' command fails on Docker giving 'SSL Operation Failed with code 1' error


Finally, got the issue sorted out. Actually, I never had to set the curl.cainfo OR openssl.cafile or any other updates for that matter like downloading the certificate to use in container etc. After I create a Self Signed Certificate, I had to Configure Apache to Use SSL and Make those changes related SSL into Apache server and we're all set.


You may try:

1.Add this to your Dockerfile and build the image again

RUN apt-get update && apt-get install -y libssl-devRUN apt-get install -y libcurl4-gnutls-devRUN apt-get install -y libcurl4-openssl-devRUN apt-get install -y libcurl4

2.Download certificate via browser, and copy it to the containerread about Mount volume (-v, --read-only)

3.use wget in insecure mode (not recommended) - use flag --no-check-certificate