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
Post a Comment