Deploy Laravel Websockets to Amazon EC2 Instance with AWS Certificate Manager to handle SSL
In localhost with Self Signed Certificate, I can enable laravel websockets in HTTPS. However, when I deploy to the ec2 instance with ACM, I am unable to connect to the websocket server. The reason is because wtih ACM, there is no ssl key and certificate file in the instance. It is being handled by ACM behind ALB. I also tried to open the port 6001 in security groups and alb. when I try to connect to websocket via postman, it gives error 502 Bad Gateway.
To check that the port is opened, I stopped websockets server then add Listen 6001 in my vhost. Opened Domain:6001 and I can see apache test page with enabled HTTPS.
Please or to participate in this conversation.