Could be a problem of version of curl /openssl
https://github.com/curl/curl/issues/7535
Can you test on another platform and/or change the version of the software you use?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello Everyone, I've been having issues regarding Laravel Websockets.
Let me give you some context on my code. I am using Laravel Valet for local setup, but when I am trying to post anything, it gives me an error Pusher error: cURL error 35:
This is how my ```app.js```` file looks like
window.Echo = new Echo({
broadcaster: 'pusher',
key: process.env.MIX_PUSHER_APP_KEY,
wsHost: process.env.MIX_PUSHER_APP_HOST,
encrypted: true,
wsPort: 6001,
wssPort: 6001,
disableStats: true,
enabledTransports: ['ws', 'wss']
})
This is how my broadcasting.php file looks like.
'connections' => [
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'encrypted' => true,
'host' => '127.0.0.1',
'port' => 6001,
'scheme' => 'https',
'curl_options' => [
CURLOPT_SSL_VERIFYHOST => 0,
CURLOPT_SSL_VERIFYPEER => 0,
],
],
],
Illuminate\Broadcasting\BroadcastException
Pusher error: cURL error 35: error:0407008A:rsa routines:RSA_padding_check_PKCS1_type_1:invalid padding (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://127.0.0.1:6001/apps/local/events?auth_key=local&auth_timestamp=1651145851&auth_version=1.0&body_md5=8ceeb6d337c0a5620b6eff137c370edb&auth_signature=74d7c6353ada4819121e30d45ec7d9e283481d38d1f30c0f97d93697f1dc7df8.
I switched to Soketi/soketi library instead. Thanks everyone for the help, but Laravel Websockets package didn’t work for me in local environment.
Please or to participate in this conversation.