DEV Community

Luigui Moreno
Luigui Moreno

Posted on • Edited on

7

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 (4)

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

Collapse
 
hermanschutte profile image
Herman Schutte

Thank you! Been struggling with this the entire day.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay