laravel-websockets icon indicating copy to clipboard operation
laravel-websockets copied to clipboard

Laravel web socket not working on cpanel

Open spartyboy opened this issue 3 years ago • 1 comments

I get the error

GuzzleHttp\Exception\RequestException with message 'cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://127.0.0.1:6001/apps/goldtransact/events?auth_key=1234567890&auth_timestamp=1660044346&auth_version=1.0&body_md5=e576c97145cb17d989f2a57c3547a033&auth_signature=bc3484ad2454ea6135e33af63062463a9d5dcf083fdc028fb4186cbbdeeb6b10'

here are my configs

broadcasting.php

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'=>'127.0.0.1',
                'port'=>6001,
                'encrypted'=>false,
                'scheme'=>'https',
                'curl_options' => [
                    CURLOPT_SSL_VERIFYHOST => 0, 
                    CURLOPT_SSL_VERIFYPEER => 0, 
           ]
      ],
  ],

.env

LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT="/home/kwaratp/transact.gold/cert/cert.crt"
LARAVEL_WEBSOCKETS_SSL_LOCAL_PK="/home/kwaratp/transact.gold/cert/cert.key"

what do i do. i use let's encrypt

spartyboy avatar Aug 09 '22 12:08 spartyboy

Use nginx or apache redirection

erikn69 avatar Aug 11 '22 13:08 erikn69