PHP socket server that uses ADH. How? -


i'm trying create socket server using stream_socket_server().

normal connections work fine, want make server encrypts connection without certificate. know can accomplished adh cipher, , yes, know it's theoretically less secure certificate...

the reason i'm making server in first place mock different server client connects (over this protocol, if you're wondering).

the client configured ask certificate first, , fallback adh - i've tested real thing, , connects without problems, problem socket server.

everything i've tried far has resulted in "handshake failure" error.

some of configurations i've tried:

<?php $server = stream_socket_server(         "tls://127.0.0.1:6667",         $errorno,         $errstr,         stream_server_bind | stream_server_listen,         stream_context_create(             array('ssl' => array('ciphers' => 'adh'))         )     ); ?>  <?php $server = stream_socket_server(         "tls://127.0.0.1:6667",         $errorno,         $errstr,         stream_server_bind | stream_server_listen,         stream_context_create(             array('ssl' => array('ciphers' => '-complementofall adh'))         )     ); ?> 

i've tried adjust client unconditionally use adh (as second example above), testing's sake, fails.

this happens every php version i've tried, latest of 5.5.0.

any ideas?

i use tool wireshark examine bits going on wire determine going wrong handshake. without ability, going flying (or debugging) blind.

once know going wrong handshake, can figure out "why".


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -