Warning: stream_socket_client() [function.stream-socket-client]: Unable to set local cert chain file `/epp/client.pem'; Check that your cafile/capath settings include details of your certificate and its issuer in C:\Documents and Settings\...\client.php on line 64
Warning: stream_socket_client() [function.stream-socket-client]: failed to create an SSL handle in C:\Documents and Settings\...\client.php on line 64
Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in C:\Documents and Settings\...\client.php on line 64
Meu código:
<?php $fc = stream_context_create(); stream_context_set_option($fc, 'ssl', 'local_cert', "/epp/client.pem"); stream_context_set_option($fc, 'ssl', 'allow_self_signed', true); stream_context_set_option($fc, 'ssl', 'verify_peer', false); $target = "beta.registro.br:700"; $socket = stream_socket_client($target,$errno,$errstr,10,STREAM_CLIENT_CONNECT,$fc); print_r($socket) ?>