zarok13
zarok13

Reputation: 15

Why client in google chrome can not connect to websocket with ssl

client can't connect to secure websocket with google chrome

error: WebSocket connection to wss://web:port failed

but can connect to secure websocket with firefox.

I'm using reactphp and ratchet libraries

Upvotes: -2

Views: 521

Answers (1)

zarok13
zarok13

Reputation: 15

I solved by ignoring peer verification 'verify_peer' => false

$options = ['local_cert' => '...', 'local_pk' => '...', 'verify_peer' => false];
$socket = new SecureServer($socket, $loop, $options);

Upvotes: 0

Related Questions