Minha cara @elisabetebach, tudo bem?
Conforme solicitado, segue o que ocorre quando eu executo o código citado:
* Added adn.nfse.gov.br:443:189.9.169.76 to DNS cache
* Hostname adn.nfse.gov.br was found in DNS cache
* Trying 189.9.169.76:443...
* Connected to adn.nfse.gov.br (189.9.169.76) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Request CERT (13):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Certificate (11):
* TLSv1.3 (OUT), TLS handshake, CERT verify (15):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_CHACHA20_POLY1305_SHA256 / X25519 / RSASSA-PSS
* ALPN: server did not agree on a protocol. Uses default.
* Server certificate:
* subject: CN=adn.nfse.gov.br
* start date: Aug 24 21:25:29 2026 GMT
* expire date: Nov 22 21:25:28 2026 GMT
* subjectAltName: host "adn.nfse.gov.br" matched cert's "adn.nfse.gov.br"
* issuer: C=US; O=Let's Encrypt; CN=YR1
* SSL certificate verify ok.
* Certificate level 0: Public key type RSA (4096/152 Bits/secBits), signed using sha256WithRSAEncryption
* Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Certificate level 2: Public key type RSA (4096/152 Bits/secBits), signed using sha256WithRSAEncryption
* Certificate level 3: Public key type RSA (4096/152 Bits/secBits), signed using sha256WithRSAEncryption
* using HTTP/1.x
> GET /echo HTTP/1.1
> Host: adn.nfse.gov.br
> User-Agent: curl/8.5.0
> Accept: */*
>
* TLSv1.3 (OUT), TLS alert, bad record mac (532):
* OpenSSL SSL_read: OpenSSL/3.0.13: error:0A000119:SSL routines::decryption failed or bad record mac, errno 0
* Closing connection
curl: (56) OpenSSL SSL_read: OpenSSL/3.0.13: error:0A000119:SSL routines::decryption failed or bad record mac, errno 0
Pude reparar na apuração do CURL também Elisabete, que aparentemente está envolto de um “Load Balancer” (O que é racional), porém, quando ele aponta para esse IP 189.9.169.76 o mesmo retorna erro, mas fiz novamente o mesmo comando um tempo depois, retornou com sucesso o /echo porém para o IP 189.9.177.202, sendo esse com resultado do REQUEST 200. Mesmo eu tentando forçar TLS1.2, o mesmo permanece retornando erro caso o mesmo esbarre no primeiro servidor citado.