1 year ago

#286847

test-img

Poorya

Curl 60 error when enabling SSL on Laradock multiproject setup

I set Laradock as multiproject and enabled SSL on the sites using nginx. The websites load successfully with HTTPS, but the PHP curl calls fail with:

cURL error 60: SSL certificate problem: self signed certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

I have already tried this:

downloaded cacert-2022-02-01.pem and appended the local CA pem file to it as well

php-fpm/Dockerfile COPY cacert-2022-02-01.pem /certs/cacert.pem

php-fpm/php7.3.ini curl.cainfo = /certs/cacert.pem

I also tried adding the local CA .crt file to ca-certificates in both nginx and php-fpm and am still getting the same error.

php

laravel

ssl

curl

laradock

0 Answers

Your Answer

Accepted video resources