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.

Discussion (1)

Collapse
luisgmoreno profile image
Luigui Moreno Author

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