EPP server - TLS conection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm trying to connect in a EPP server (TLS), but I'm getting the message:

Warning: stream_socket_client() [function.stream-socket-client]: SSL
operation failed with code 1. OpenSSL Error messages: error:14094410:SSL
routines:SSL3_READ_BYTES:sslv3 alert handshake failure in testepp.php on
line 9


My test code is:
<?php
ini_set("display_errors",1);
$fc = stream_context_create(array(
  'tls'=>array(
     'allow_self_signed'=>'TRUE',
     'local_cert'=>'client.pem'
  )
));
$fp = stream_socket_client("tls://beta.registro.br:700
",$errno,$errstr,30,STREAM_CLIENT_CONNECT,$fc);
if (!$fp) {
    echo "$errstr ($errno)<br />\n";
} else {
echo "connected";
}
?>

Thanks for any help,

[]s

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux