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

Mubeenali's avatar

Laravel-echo-server on production not working Error:Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID

Getting Error in Console:

Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID
:6001/socket.io/?EIO=3&transport=polling&t=NFSQxVT:1

Laravel-echo-server.json:

{
	"authHost": "https://example.com/",
	"authEndpoint": "/broadcasting/auth",
	"clients": [
		{
			"appId": "************",
			"key": "*********************"
		}
	],
	"database": "redis",
	"databaseConfig": {
		 "redis": {
        "port": "6379",
        "host": "0.0.0.0"
    },
		"sqlite": {
			"databasePath": "/database/laravel-echo-server.sqlite"
		}
	},
	"devMode": false,
	"host": "0.0.0.0",
	"port": "6001",
	"protocol": "https",
	"socketio": {},
	"secureOptions": 67108864,
	"sslCertPath": "/home/ssl/certs/mycert.crt",
	"sslKeyPath": "/home/ssl/keys/my.key",
	"verifyAuthPath": true,
    "verifyAuthServer": false,
	"sslCertChainPath": "",
	"sslPassphrase": "",
	"subscribers": {
		"http": true,
		"redis": true
	},
	"apiOriginAllow": {
		"allowCors": true,
		"allowOrigin": "https://example.com:6001",
		"allowMethods": "GET, POST",
		"allowHeaders": "Origin, Content-Type, X-Auth-Token, X-Requested-With, Accept, Authorization, X-CSRF-TOKEN, X-Socket-Id"
	}
}

Maybe,m giving wrong crt file path.?please help me how to configure it with SSL?

0 likes
13 replies
Sinnbeck's avatar

Looks like a certificate error. Might be an issue with your chain

Try testing the certicate here https://www.ssllabs.com/ssltest/

And i assume this is different on your server?

"authHost": "https://example.com/",
Sinnbeck's avatar

.. Did you test it? Without knowledge of the domain or anything else, it is quite hard to guess what the issue is :)

Mubeenali's avatar

-i-have-given-the-ssl-cert-file-path-then-why-it-is-not-working..can-this-be-a-wrong-path-m-giving--how-can-i-find-the-ssl-cert-and-key-file-path??

Sinnbeck's avatar

Well you can start by checking that both of these files exist

/home/ssl/certs/mycert.crt

/home/ssl/keys/my.key

Also.. How did you get the cert? Lets encrypt? Or did you buy it? Or something else?

Mubeenali's avatar

No,we-have-purchased-this-and-there-are-2-cert-files-inside-my-cpanel-i-dnt-know-whic-one-is-actual-and-will-do-the-job.maybe-m-giving-correct-path-but-problem-with-laravel-echo-server.?

Sinnbeck's avatar

Well find out where they are placed on the server. Perhaps you can see the path inside cpanel

What are the files in cpanel called?

Sinnbeck's avatar

... ok you are really not giving us alot to go by.. I have asked several questions and you dont really seem to anwer them.

  1. Are the files in the directories specified in your config?
  2. What error are you getting if you run an ssl check using the supplied url (ssllabs)
Mubeenali's avatar

@sinnbeck m-not-getting-any-error-if-i-check-with-your-given-ssl-server-test..

Yes,files-in-the-directories-specified-in-config. no,error-i-get-if-i-run-ssl..

Mohsin Ahmad's avatar

@sinnbeck i am having same error, when i run laravel-echo-server start at project directrory its working perfect, when i run it through supervisor it return me this error on browser. net::ERR_CERT_DATE_INVALID .... any clue ?

Please or to participate in this conversation.