Mubeenali
2 months ago

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

Posted 2 months ago by Mubeenali

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?

Please sign in or create an account to participate in this conversation.