Skip to content

Instantly share code, notes, and snippets.

@lewislarsen
Created June 5, 2024 09:35
Show Gist options
  • Save lewislarsen/6e9a136228b3d97e4467f416f2bab2e2 to your computer and use it in GitHub Desktop.
Save lewislarsen/6e9a136228b3d97e4467f416f2bab2e2 to your computer and use it in GitHub Desktop.
fix cURL error 60: SSL certificate problem: unable to get local issuer certificate

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment