Elson Jose Fritzen Posted August 31, 2022 at 01:56 PM Report Share #627046 Posted August 31, 2022 at 01:56 PM Alguém pode me ajudar com o problema abaixo? Parou de funcionar no ambiente de Homologação do nada, e sempre volta o mesmo erro: Could not connect to host <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://at.gov.pt/"> <env:Header> <wss:Security xmlns:wss="http://schemas.xmlsoap.org/ws/2002/12/secext"> <wss:UsernameToken> <wss:Username>999999999/9999</wss:Username> <wss:Password>xxxxxxxxxxxxxxxxxxxxxxxx</wss:Password> <wss:Nonce>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</wss:Nonce> <wss:Created>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</wss:Created> </wss:UsernameToken> </wss:Security> </env:Header> <env:Body> <ns1:registarSerie> <serie>AAA001</serie> <tipoSerie>N</tipoSerie> <classeDoc>SI</classeDoc> <tipoDoc>FS</tipoDoc> <numInicialSeq>1</numInicialSeq> <dataInicioPrevUtiliz>2022-10-01</dataInicioPrevUtiliz> <numCertSWFatur>1234</numCertSWFatur> <meioProcessamento>PI</meioProcessamento> </ns1:registarSerie> </env:Body> </env:Envelope> [__soap_fault] => SoapFault Object ( [message:protected] => Could not connect to host Obrigado Link to comment Share on other sites More sharing options...
am-qubit Posted September 12, 2022 at 11:49 AM Report Share #627231 Posted September 12, 2022 at 11:49 AM O servidor não consegue conectar ao serviço de registo de séries: https://servicos.portaldasfinancas.gov.pt:722/SeriesWSService Sugiro no servidor testar a ligação a https://servicos.portaldasfinancas.gov.pt:722/SeriesWSService . Se for em Linux pode-se testar com o seguinte comando: $ curl -vv https://servicos.portaldasfinancas.gov.pt:722/SeriesWSService Link to comment Share on other sites More sharing options...
Elson Jose Fritzen Posted September 12, 2022 at 01:46 PM Author Report Share #627233 Posted September 12, 2022 at 01:46 PM (edited) Obrigado pela atenção Retornou o seguinte resultado: elson@tlanpoa-nb10 ~/repositories/fusion-kinda (kinda_release_2.40.4) $ curl -vv https://servicos.portaldasfinancas.gov.pt:722/SeriesWSService * Trying 62.28.254.207... * TCP_NODELAY set * Connected to servicos.portaldasfinancas.gov.pt (62.28.254.207) port 722 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/ssl/certs/ca-certificates.crt CApath: /etc/ssl/certs * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), TLS handshake, Server key exchange (12): * TLSv1.2 (IN), TLS handshake, Request CERT (13): * TLSv1.2 (IN), TLS handshake, Server finished (14): * TLSv1.2 (OUT), TLS handshake, Certificate (11): * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * TLSv1.2 (OUT), TLS change cipher, Client hello (1): * TLSv1.2 (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS alert, Server hello (2): * error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure * stopped the pause stream! * Closing connection 0 curl: (35) error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure Edited September 12, 2022 at 01:46 PM by Elson Jose Fritzen Link to comment Share on other sites More sharing options...
am-qubit Posted September 12, 2022 at 02:43 PM Report Share #627235 Posted September 12, 2022 at 02:43 PM Viva. O comando testado foi no servidor? Se sim pelo menos o serviço da AT é reachable pelo servidor. A aplicação corre em que plataforma (Java, PHP, .NET)? O endereço HTTPS para o serviço das séries encontra-se corretamente configurado na aplicação? Os seguintes dados do cabeçalho XML estão a ser encriptados? <wss:Password>xxxxxxxxxxxxxxxxxxxxxxxx</wss:Password> <wss:Nonce>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</wss:Nonce> <wss:Created>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</wss:Created> Link to comment Share on other sites More sharing options...
Elson Jose Fritzen Posted September 12, 2022 at 03:45 PM Author Report Share #627236 Posted September 12, 2022 at 03:45 PM Sim é PHP, estava funcionando e do nada parou, vou ver agora se o certificado que eu tinha conseguido ia até hoje, vou ter que conseguir outro. Creio que os dados estejam certos, vou revisar e passar aki no chat. obrigado. Link to comment Share on other sites More sharing options...
daniel89fg Posted March 6, 2023 at 11:59 AM Report Share #630318 Posted March 6, 2023 at 11:59 AM Alguma novidade sobre isso?, estou com o mesmo problema e não consigo seguir em frente. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now