Olá companheiros(as), tudo bem?<div><br></div><div>Estou trabalhando em um módulo para a NFSe, mas estou com problemas no acesso ao webservice,</div><div>segue o código:</div><div><br></div><div><div>$ENV{HTTPS_DEBUG} = 1;</div>
<div><br></div><div># Client PKCS12 cert support</div><div>$ENV{HTTPS_PKCS12_FILE} = &#39;mycert.pfx&#39;;</div><div>$ENV{HTTPS_PKCS12_PASSWORD} = &#39;mypass&#39;&#39;;</div></div><div><br></div><div><div>my $userAgent = LWP::UserAgent-&gt;new();</div>
<div>my $request = HTTP::Request-&gt;new(POST =&gt; &#39;<a href="https://bhisshomologa.pbh.gov.br/bhiss-ws/nfse?wsdl&#39;">https://bhisshomologa.pbh.gov.br/bhiss-ws/nfse?wsdl&#39;</a>);</div><div>$request-&gt;content($message);</div>
<div>$request-&gt;content_type(&quot;text/xml; charset=utf-8&quot;);</div><div>my $response = $userAgent-&gt;request($request);</div><div><br></div><div>if($response-&gt;code == 200) {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>print $response-&gt;as_string;</div>
<div>}</div><div>else {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>print $response-&gt;error_as_HTML;</div><div>}</div><div><br></div><div><br></div><div><br></div><div>Mas sempre o obtenho o seguinte erro:</div>
<div><br></div><div><div>SSL_connect:before/connect initialization</div><div>SSL_connect:SSLv3 write client hello A</div><div>SSL_connect:SSLv3 read server hello A</div><div>SSL_connect:SSLv3 read server certificate A</div>
<div>SSL_connect:SSLv3 read server key exchange A</div><div>SSL_connect:SSLv3 read server done A</div><div>SSL_connect:SSLv3 write client key exchange A</div><div>SSL_connect:SSLv3 write change cipher spec A</div><div>SSL_connect:SSLv3 write finished A</div>
<div>SSL_connect:SSLv3 flush data</div><div>SSL_connect:SSLv3 read finished A</div><div>&lt;html&gt;</div><div>&lt;head&gt;&lt;title&gt;An Error Occurred&lt;/title&gt;&lt;/head&gt;</div><div>&lt;body&gt;</div><div>&lt;h1&gt;An Error Occurred&lt;/h1&gt;</div>
<div>&lt;p&gt;500 SSL read timeout: &lt;/p&gt;</div><div>&lt;/body&gt;</div><div>&lt;/html&gt;</div><div><br></div><div>Já pesquisei, alterei o tempo de timeout, mas nada. Alguém sabe o caminho das pedras?</div></div><div>
<br></div><div>Desde já grato.</div><div><br clear="all">--<br>Geovanny Junio<br>Consultor de Tecnologia<br>geovanny (at) <a href="http://eutsiv.com.br">eutsiv.com.br</a><br>+55 31 9422-8885<br>+55 31 3393-9132<br><a href="http://www.eutsiv.com.br">www.eutsiv.com.br</a><br>
<br>Este e-mail pode conter informação privilegiada e confidencial. Se você não é destinatário da<br>mensagem, por favor apague a mensagem e comunique-nos o fato de imediato.<br><br>This e-mail contains information that may be<br>
privileged and confidential. If you are not the intended recipient, please<br>delete the e-mail and notify us immediately.<br>
</div></div>