DEV Community

Luigui Moreno
Luigui Moreno

Posted on • Updated on

Laravel Websockets in valet cURL error 60: SSL certificate problem: unable to get local issuer certificate

To fix the above exception you should add the valet certificate to the end of the openssl cert.pem file:

cat ~/.config/valet/CA/LaravelValetCASelfSigned.pem >> /usr/local/etc/ca-certificates/cert.pem

You can find the cert.pem location running this dd(openssl_get_cert_locations()); anywhere in the Laravel app.

Top comments (3)

Collapse
 
iamroi profile image
Raja

Genius!! Thank you 🙏

Collapse
 
luisgmoreno profile image
Luigui Moreno

In "pusher/pusher-php-server": "~5.0" and above version curl_options is ignored, Guzzle Client is used instead of curl.

Collapse
 
maxcelos profile image
Marcelo Barros da Silva

This is a life saving! Thank you very much