Curl falha na conexão TLS: sslv3 alert bad record mac

1

Estou executando uma nova instalação do estiramento debian em uma VM usando o QEMU em um host do Ubuntu 14.04. Quando eu uso curl em qualquer recurso HTTPS, como

curl -vL https://get.rvm.io/

Eu recebo este erro:

*   Trying 2600:3c03::f03c:91ff:fedb:6957...
* TCP_NODELAY set
*   Trying 97.107.133.48...
* TCP_NODELAY set
* Connected to get.rvm.io (2600:3c03::f03c:91ff:fedb:6957) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (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, Server finished (14):
* 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:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac
* Curl_http_done: called premature == 1
* stopped the pause stream!
* Closing connection 0
curl: (35) error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac

O mesmo acontece em qualquer outro recurso HTTPS, não apenas no instalador do RVM. O que funciona:

  • executando curl em um recurso HTTP,
  • executando wget em qualquer recurso,
  • executando qualquer coisa no host.

Qualquer ajuda seria apreciada.

Atualizar

Acontece que eu esqueci de ativar o KVM ao iniciar o QEMU. A adição da opção -enable-kvm ao meu script de lançamento resolveu o problema.

No entanto, ainda estou curioso: como essas duas questões podem estar relacionadas?

    
por Andreas K 24.10.2017 / 23:20

0 respostas