Closed kpebron closed 7 months ago
I'm facing the same issue, the solution was set proper permission to my certificates and putting their path on env. After that i configure the websockets start command with sudo and voilá, problem solved
I don't have certificates in my ec2 instance since we are using aws certificate
@kpebron To use SSL handled by AWS Certificate Manager, you can simply Go to "Certificate Manager" on your AWS console. Select your desired certificate Copy the ARN provided.
And then you can use copied ARN in your config/websockets.php
...
...
'ssl' => [
...
'local_cert' => <copied ARN here>,
]
Better if you set ARN in env and use value from .env inside websockets.php.
Running with:
I used Laravel websockets and working in localhost with a self signed certificate to enable SSL. Below is the code that is used in websockets.php
Now I deployed laravel websockets code to my test server. Everything except the SSL Cert and Private Key. I was not the one who enabled the SSL in the test server. I was told that SSL is being handled by AWS Certificate Manager. Meaning there is no Certificate and Private Key file in the server(I think). How should I proceed with the installation? I got error message
WebSocket connection to 'wss://domain.name:6001/app/PUSHER_APP_KEY?protocol=7&client=js&version=7.4.0&flash=false' failed: WebSocket is closed before the connection is established.
Port number enabled in server
When running the supervisord, I can see on the logs that websockets is running on port 6001 and queues are also being logged when running the events in tinker