Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kobear's avatar

Issues with Sail: curl 60 SSL certificate problem: self signed certificate in certificate chain

I am installing Laravel via Sail on a new (to me) Macbook OSX 12.6.1. The shell script is able to run and install the "laravelsail/php81-composer", and run that container. Once in that container, it tries to run "laravel run <project_name>", and that is when the error is generated:

Creating a "laravel/laravel" project at "./example-app"
    https://repo.packagist.org could not be fully loaded (curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: self signed certificate in certificate chain), package information was loaded from the local cache and may be out of date
    
    In CurlDownloader.php line 358:
                                                                               
  curl error 60 while downloading https://repo.packagist.org/p2/laravel/larav  
  el.json: SSL certificate problem: self signed certificate in certificate ch  
      ain   

I've been beating my head against a wall trying to figure this out all afternoon. Any thoughts?

Also - could it be an issue related to this commit that was done 5 hours ago? https://github.com/laravel/sail/commit/72412b14d6f4e73b71b5f3068bdb064184fbb001

Thank in advance

0 likes
3 replies
kobear's avatar

I am beginning to think that this is due to the corporate proxy server that replaces SSL certificates in order to perform deep content inspection.

kobear's avatar
kobear
OP
Best Answer
Level 4

Fixed this. Had to modify the Dockerfile to copy the corporate certificate into the container, and sex proxy credentials in Docker Desktop/.

tjebillion's avatar

please help me out, I got the same issue bro kobear... how did you copy the corporate certificate

Please or to participate in this conversation.