devilbox: cURL error 60: SSL certificate problem: unable to get local issuer certificate

If you encounter a bug and something does not work, make sure you have done the following and check those boxes before submitting an issue - thank you!

  • [X ] Pull latest dockers (e.g.: docker pull cytopia/<used_docker>) before running docker-compose up
  • [X ] Specify used docker versions (php, web and database)
  • [ X] Attach logs for php, mysql and webserver (found in log/ directory)
  • [ X] Start with debug mode and attach docker-compose output (.env setting DEBUG_COMPOSE_ENTRYPOINT=1)
  • [ X] Never use different mysql|mariadb versions on the same HOST_PATH_MYSQL_DATADIR on existing database files. Different mysql|mariadb versions might upgrade/corrupt existing database files. If you have done that already, start with a different path of HOST_PATH_MYSQL_DATADIR (to an empty directory) and try again.

Please also specify the following info:

  • [X ] Which operating system are you at (Linux, OSX or Windows) – Windows 10 Pro version 1803
  • [ X] docker version – Docker version 18.03.1-ce, build 9ee9f40
  • [X ] docker-compose version – docker-compose version 1.21.1, build 7641a569

I am getting this notification on my Updraft options pages.

Errors occurred when trying to connect to UpdraftPlus.Com:
cURL error 60: SSL certificate problem: unable to get local issuer certificate

I looked for a solution and tried a couple of things, but no luck figuring this out on my own.

I Downloaded the latest curl recognized certificates here: https://curl.haxx.se/ca/cacert.pem and placed the file in devilbox\ca. Then I added curl.cainfo = "certificate ./ca/cacert.pem" to my devilbox/cfg/php-ini.7.0/devilbox-custom.ini I also tried ‘certificate .\ca\cacert.pem’

After this, the error changed to:

Errors occurred when trying to connect to UpdraftPlus.Com:
cURL error 77: error setting certificate verify locations: CAfile: certificate ./ca/cacert.pem CApath: /etc/ssl/certs

I used the devilbox shell script to open a shell and executed curl api.wordpress.com and the contents output to the terminal. Next, I opened a shell into the PHP container with docker exec -it 3c88083befd0 /bin/bash and executing curl api.wordpress.com. This time there was no output, but there was also no error. I just got a new command prompt.

docker-compose generated no debug output when started.

php-fpm-7.0.zip mariadb-5.5.zip dev.cacherz-error.log.zip

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 24 (12 by maintainers)

Most upvoted comments

I switched my TLD_SUFFIX to loc and now I can curl.

Is there any way that I can have it as .com and still be able to curl?