我正在 Ubuntu 14.04 主机上使用 QEMU 在虚拟机中运行全新的 debianstretch 安装。当我curl
在任何 HTTPS 资源上使用时,例如
curl -vL https://get.rvm.io/
我收到此错误:
* 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
同样的情况也发生在任何其他 HTTPS 资源上,而不仅仅是 RVM 安装程序上。什么有效:
curl
在 HTTP 资源上运行,wget
在任何资源上运行,- 在主机上运行任何东西。
任何帮助,将不胜感激。
更新
原来我在启动 QEMU 时忘记启用 KVM。将-enable-kvm
开关添加到我的启动脚本中解决了问题。
但我还是很好奇:这两个问题怎么会有联系呢?