ssl - PHP Secure Websocket server can't read data from clients -


trying secure websocket server communicate clients. it's working fine exception of 2 problems. i'm using this script.

my first problem when client sends handshake request, first letter in clients header gets removed.

get /echobot http/1.1

becomes

et /echobot http/1.1

now, have managed temporarily botch changing et on line 193 , 194 in websockets.php, making server accept request.

my other problem recieving data clients. when send client.html, thing recieve server-side "ΓΌ" (or ascii character 129).

when try running normal "non-tls" server, works fine.

this current options array, should need it:

$options = array(     'ssl' => array(         'peer_name' => 'my.url',         'verify_peer' => false,         'local_cert' => '/etc/letsencrypt/live/my.url/cert.pem',         'local_pk' => '/etc/letsencrypt/live/my.url/privkey.pem',         'disable_compression' => true,         'sni_enabled' => true,         'protocol_version' => 'tls1'     ) ); 

i have tried debugging, tweaking values, googling , updated debian server jessie stretch in order apache 2.4.25 in case solve problem.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -