Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shakir_memon's avatar

Issue in deploying the laravel websocket in server with WSS

can anyone help to deploy the my project on server with laravel websocket WSS i am getting the issue this

cURL error 60: SSL certificate problem: self signed certificate

my broadcast config

'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'),
                'useTLS' => true,
                'host' => env("APP_HOST","127.0.0.1"),
                'port' => env("LARAVEL_WEBSOCKETS_PORT","6001"),
                'scheme' => 'https'
            ],
            'client_options' => [
                // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
            ],
        ],

using supervisor

[root]# supervisorctl status
websocket_server                 RUNNING   pid 1332303, uptime 0:25:17
[root]# 

websocket_serve config

[program:websocket_server]
directory=/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/
command=php artisan websockets:serve
numprocs=1
user=root
autostart=true
autorestart=true
stderr_logfile=/xxxxxxxxxxxxxxxxxx/storage/logs/websockets.err.log
stdout_logfile=/xxxxxxxxxxxxxxxxxx/storage/logs/websockets.out.log
0 likes
1 reply
shakir_memon's avatar
shakir_memon
OP
Best Answer
Level 1

Solved by checking the path of wss certificate files and also checked the supported ports with cloudflare

Please or to participate in this conversation.