[Eppnicbr] Fw: Chave .pem

ivo linsmeyer filho linsmeyer at gmail.com
Mon Dec 5 17:14:22 BRST 2011


Opa ai é tudo diferente.

Estou no gtalk: linsmeyer at gmail.com

Em 5 de dezembro de 2011 16:57, Ricardo Bressan <ricardo at bressan.ws>escreveu:

> **
> Sim, estou usando o sistema em php.. ja fiz todos os procedimentos e tenho
> observado através dos logs do apache que o sistema fica aguardando pela
> inclusão dos dados passphrase, etc... Só q, como estou fazendo via php, não
> estou entendendo bem aonde incluo esses dados.. Sou obrigado a usar o
> shepp?.. Veja um código de teste q fiz para testar essa conexão:
>
> $cert = 'certificado/key.pem';
> $ssl = stream_context_create(array('ssl' => array('allow_self_signed' =>
> TRUE, 'local_cert' => $cert)));
>
> stream_socket_client('tls://epp.registro.br:700', $errno, $errstr, 10,
> STREAM_CLIENT_CONNECT, $ssl);
> Obrigado,
>
> Ricardo B.
>
>
> ----- Original Message -----
> *From:* ivo linsmeyer filho <linsmeyer at gmail.com>
> *To:* EPP no .br - protocolo e operacao <eppnicbr at eng.registro.br>
> *Sent:* Monday, December 05, 2011 4:41 PM
> *Subject:* Re: [Eppnicbr] Fw: Chave .pem
>
> Respostas são sempre difíceis de encontrar. rsrs
> Vou tentar ajudar. Tem um sistema em php que gera as chaves
> automaticamente bastando vc indicar o campinho do pem.
> Ele verifica se é válido e gera as chaves sem erros. pode ser? Você tem
> como utilizar o php para rodar o sistema?
>
> Att
>
> Em 5 de dezembro de 2011 16:00, Ricardo Bressan <ricardo at bressan.ws>escreveu:
>
>> **
>> Boa tarde pessoal,
>>
>> Após as "muitas" respostas que recebi, consegui encontrar algo a respeito
>> no google.. rsrs.. segui os procedimentos para gerar a chave através do
>> openssl, entretanto, após muitas tentativas, estou recebendo o erro abaixo.
>> Alguém já passou por isso?
>>
>> Warning: stream_socket_client() [function.stream-socket-client<http://www.hphost.com.br/testeregistro/function.stream-socket-client>]:
>> Unable to set private key file
>> `/home/xxx/public_html/testeregistro/certificado/key.pem' in
>> /home/xxx/public_html/testeregistro/client.php on line 64
>>
>> Warning: stream_socket_client() [function.stream-socket-client<http://www.hphost.com.br/testeregistro/function.stream-socket-client>]:
>> failed to create an SSL handle in
>> /home/xxx/public_html/testeregistro/client.php on line 64
>>
>> Warning: stream_socket_client() [function.stream-socket-client<http://www.hphost.com.br/testeregistro/function.stream-socket-client>]:
>> Failed to enable crypto in /home/xxx/public_html/testeregistro/client.php
>>  on line 64
>>
>> Warning: stream_socket_client() [function.stream-socket-client<http://www.hphost.com.br/testeregistro/function.stream-socket-client>]:
>> unable to connect to tls://epp.registro.br:700 (Unknown error) in
>> /home/xxx/public_html/testeregistro/client.php on line 64
>> Error trying to connect: Error connecting to tls://epp.registro.br:700:
>> (code 0
>>
>> Obrigado,
>>
>> Ricardo Bressan
>>
>> _______________________________________________
>> eppnicbr mailing list
>> eppnicbr at eng.registro.br
>> https://eng.registro.br/mailman/listinfo/eppnicbr
>>
>>
>  ------------------------------
>
> _______________________________________________
> eppnicbr mailing list
> eppnicbr at eng.registro.br
> https://eng.registro.br/mailman/listinfo/eppnicbr
>
>
> _______________________________________________
> eppnicbr mailing list
> eppnicbr at eng.registro.br
> https://eng.registro.br/mailman/listinfo/eppnicbr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://eng.registro.br/pipermail/eppnicbr/attachments/20111205/c3c8e8c7/attachment.html>


More information about the eppnicbr mailing list