cURL error 60: SSL certificate problem: unable to get local issuer certificate

Operating System & Version
CentOS v7.9.2009 STANDARD standard
cPanel & WHM Version
110.0.5

zerexei

Registered
May 8, 2023
2
0
1
n/a
cPanel Access Level
Root Administrator
The WebSocket Secure (WSS) connection appears to be functioning, but when attempting to use Laravel's broadcasting events (as defined in the documentation here: https://laravel.com/docs/10.x/broadcasting#defining-broadcast-events), a cURL error is encountered.

Additionally, I followed the instructions outlined in the documentation (https://beyondco.de/docs/laravel-websockets/basic-usage/ssl) to correctly configure the SSL path.

openssl s_client -connect subdomain.domain.com:443 (working)

openssl s_client -connect subdoman.domain.com:6001 (error)

already tried
- php.ini using curl.cainfo=/path/to/cacert.pem
- verify=false
- httpd/apache conf
- guzzleHttp: verify=false
- laravel-websockets: verify=false
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,617
2,624
363
cPanel Access Level
Root Administrator
Hey there! cPanel doesn't provide support for Laravel, so I'm not going to be familiar with their software configuration options.

To me, this would indicate Laravel isn't properly listening on port 6001 since the basic curl connection isn't working. You could confirm that by running the following and seeing if the service is listening:

Code:
netstat -lpn | grep 6001
 

zerexei

Registered
May 8, 2023
2
0
1
n/a
cPanel Access Level
Root Administrator
Hey there! cPanel doesn't provide support for Laravel, so I'm not going to be familiar with their software configuration options.

To me, this would indicate Laravel isn't properly listening on port 6001 since the basic curl connection isn't working. You could confirm that by running the following and seeing if the service is listening:

Code:
netstat -lpn | grep 6001
I have discovered a discrepancy: the CN domain for port :443 differs from that of port :6001

I believe this is an ssl problem, Is there a related instance for local issuer error that could be caused by an SSL problem?

1683596333585.png
 
Last edited: