Jump to content


Photo

Ssl, Certificado Local


  • Faça o login para participar
Nenhuma resposta neste tópico

#1 hisamu

hisamu

    Normal

  • Usuários
  • 117 posts
  • Sexo:Não informado

Posted 24/04/2007, 15:56

Olá, estou desenvolvendo um script pra interagir com o protocolo EPP, e o local ao qual eu tenho que me conectar é o tsl://beta.registro.br, o qual usa SSL local, e obtive os seguintes erros:

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)
?>





1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq