Laravel echo server - net::ERR_SSL_KEY_USAGE_INCOMPATIBLE


  • | 344 points

    Hello,

    I installed Laragon, and I want to use https://github.com/tlaverdure/laravel-echo-server.
    I have this server config

    {
    	"authHost": "https://barrk.test",
    	"authEndpoint": "/broadcasting/auth",
    	"clients": [],
    	"database": "redis",
    	"databaseConfig": {
    		"redis": {},
    		"sqlite": {
    			"databasePath": "/database/laravel-echo-server.sqlite"
    		}
    	},
    	"devMode": true,
    	"host": null,
    	"port": "6001",
    	"protocol": "https",
    	"socketio": {},
    	"sslCertPath": "../../laragon/etc/ssl/laragon.crt",
    	"sslKeyPath": "../../laragon/etc/ssl/laragon.key",
    	"sslCertChainPath": "",
    	"sslPassphrase": "",
    	"subscribers": {
    		"http": true,
    		"redis": true
    	},
    	"apiOriginAllow": {
    		"allowCors": true,
    		"allowOrigin": "https://barrk.test",
    		"allowMethods": "GET, POST",
    		"allowHeaders": "Origin, Content-Type, X-Auth-Token, X-Requested-With, Accept, Authorization, X-CSRF-TOKEN, X-Socket-Id"
    	}
    }
    

    bootstrap.js

    window.io = require('socket.io-client');
    
    import Echo from 'laravel-echo'
    
    // window.Pusher = require('pusher-js');
    if (Laravel.chat_enabled && typeof io !== 'undefined')
    {
    window.Echo = new Echo({
        broadcaster: 'socket.io',
        host: window.location.hostname + ':6001'
    });
    }
    

    And I get this error

    GET https://barrk.test:6001/socket.io/?EIO=3&transport=polling&t=MktUSyu net::ERR_SSL_KEY_USAGE_INCOMPATIBLE

    Any idea, what si wrong?
    Thank you

    Thank you
    Jan


  • | 75 points

    @TorchSK I am getting the same error in the latest version of Chrome -Version 75.0.3770.100. and chrome canary. IE Edge works fine. Note that accessing the virtual host (domain.test) works perfectly. The error appears for me when accessing a browsersync generated proxy page at https://localhost:3000/


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.