【发布时间】:2021-11-20 22:35:56
【问题描述】:
在 wsl 2 窗口中运行此命令会提供以下输出。 谁能解释为什么混合了 TLSv1.3 和 TLSv1.2 IN 和 OUT,这是它无法获得本地颁发者证书的潜在原因。 Windows 主机操作系统是企业版
我已经安装了 ca-certificates 并运行了 update-ca-certificates
curl -v https://google.com:443/
* Trying 172.217.169.78...
* TCP_NODELAY set
* Connected to google.com (172.217.169.78) port 443 (#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 (OUT), TLS alert, unknown CA (560):
* SSL certificate problem: unable to get local issuer certificate
* Closing connection 0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
【问题讨论】:
标签: ssl curl windows-subsystem-for-linux tls1.2