You may encounter the following error in your laravel.log
when working with Valet, Websockets (Echo + Reverb) with a SSL certificate setup locally.
Laravel Websockets in valet cURL error 60: SSL certificate problem: unable to get local issuer certificate
To fix run the following command in a terminal:
cat ~/.config/valet/CA/LaravelValetCASelfSigned.pem >> /opt/homebrew/etc/openssl@3/cert.pem
Note: If the terminal reports no such file or directory, your cert.pem likely lives in a different location. dd(openssl_get_cert_locations());
should help you discover it.