QtWebEngine:自定义Yocto图像上的ERR_SSL_PROTOCOL_ERROR

时间:2018-05-15 13:52:24

标签: openssl qt5 chromium yocto qtwebengine

我目前无法从QML WebEngineView访问任何基于HTTPS的网站...我获得了以下错误页面:

  

此网站无法提供安全连接

     

(site-name-here)发送了无效回复

     

ERR_SSL_PROTOCOL_ERROR

在控制台上我有以下错误:

  

错误:ssl_client_socket_impl.cc(1101)]握手失败;返回-1,   SSL错误代码1,net_error -107

我正在制作自定义的Yocto(摇滚)图片,包括qt5ca-certificates食谱。

是否在图像上配置了允许QtWebEngine(Chromium)访问已安装证书的内容?

如何查看QtWebEngine(Chromium)可用的已安装证书列表?

由于错误消息非常通用,如何增加(如果可能)错误的详细程度?

我还需要了解其他类似的东西吗?

*更新*

我试图从相同的设备中切换和WGET相同的Web服务器,一切都很好......所以我认为这个问题与QtWebEngine(和/或Chromium)严格相关。

cURL输出:

root@imx6dl:~# curl -v https://www.youtube.com -o output.html
* Rebuilt URL to: https://www.youtube.com/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 216.58.205.110...
* TCP_NODELAY set
* Connected to www.youtube.com (216.58.205.110) port 443 (#0)
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* found 148 certificates in /etc/ssl/c
erts/ca-certificates.crt
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_ECDSA_CHACHA20_POLY1305
*        server certificate verification OK
*        server certificate status verification SKIPPED
*        common name: *.google.com (matched)
*        server certificate expiration date OK
*        server certificate activation date OK
*        certificate public key: EC/ECDSA
*        certificate version: #3
*        subject: C=US,ST=California,L=Mountain View,O=Google LLC,CN=*.google.com
*        start date: Tue, 24 Apr 2018 10:34:31 GMT
*        expire date: Tue, 17 Jul 2018 09:27:00 GMT
*        issuer: C=US,O=Google Trust Services,CN=Google Internet Authority G3
*        compression: NULL
* ALPN, server accepted to use http/1.1
> GET / HTTP/1.1
> Host: www.youtube.com
> User-Agent: curl/7.54.1
> Accept: */*
> 
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=utf-8
< Strict-Transport-Security: max-age=31536000
< Expires: Tue, 27 Apr 1971 19:44:06 EST
< P3P: CP="This is not a P3P policy! See http://support.google.com/accounts/answer/151657?hl=it for more info."
< X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Cache-Control: no-cache
< Date: Wed, 16 May 2018 06:04:40 GMT
< Server: YouTube Frontend Proxy
< Set-Cookie: VISITOR_INFO1_LIVE=ZnHYI40gIu0; path=/; domain=.youtube.com; expires=Mon, 12-Nov-2018 06:04:40 GMT; ht
tponly
< Set-Cookie: YSC=WB62WY8_qvg; path=/; domain=.youtube.com; httponly
< Set-Cookie: PREF=f1=50000000; path=/; domain=.youtube.com; expires=Mon, 14-Jan-2019 17:57:40 GMT
< Alt-Svc: hq=":443"; ma=2592000; quic=51303433; quic=51303432; quic=51303431; quic=51303339; quic=51303335,quic=":4
43"; ma=2592000; v="43,42,41,39,35"
< Accept-Ranges: none
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
< 
{ [376 bytes data]
100  472k    0  472k    0     0   380k      0 --:--:--  0:00:01 --:--:--  380k
* Connection #0 to host www.youtube.com left intact
root@imx6dl:~# 

WGET输出:

root@imx6dl:~# wget -v https://www.youtube.com
--2018-05-16 06:26:57--  https://www.youtube.com/
Resolving www.youtube.com... 216.58.205.78, 216.58.205.110, 216.58.205.142, ...
Connecting to www.youtube.com|216.58.205.78|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'index.html.3'

index.html.3                   [  <=>     ] 453.84K   702KB/s    in 0.6s

2018-05-16 06:26:58 (702 KB/s) - 'index.html.3' saved [464732]

root@imx6dl:~#

0 个答案:

没有答案