相关文章推荐
Android日常开发(24)[ERROR:ssl_client_socket_impl.cc(946)] handshake failed; returned -1, SSL error code
最新推荐文章于 2023-08-03 19:51:19 发布
最新推荐文章于 2023-08-03 19:51:19 发布 阅读量 2.5w

最近遇到一个棘手的问题,解决问题的方法有很多,但是最重要的是查明问题的原因。一开始我认为是webview的问题,因为这个问题在ios的手机上面没有出现,在android的手机上出现了。

[INFO:CONSOLE(0)] “The connection used to load resources from https://login.xxxxx.com:8080 used TLS 1.0 or TLS 1.1, which are deprecated and will be disabled in the future. Once disabled, users will be prevented from loading these resources. The server should enable TLS 1.2 or later. See https://www.chromestatus.com/feature/5654791610957824 for more information.”, source: https://login.xxx:8699/?redirect=https://xxxxx.yyy.com:8090/mobile/leader (0)

[ERROR:ssl_client_socket_impl.cc(946)] handshake failed; returned -1, SSL error code 1, net_error -202

日志内容分析

说是服务端配置的TLS版本不对应该启用1.2甚至更高。但是问题远远没有那么简单

使用TLS工具分析一波: 这里推荐 :https://myssl.com/ssl.html

如果开了调试,调试进去会看到错误提示: smtp_ code :"stream_socket_enable_crypto(): SSL operation failed with code 1. Open SSL Error messages:\n error :14090086: SSL routines: ssl 3_get_server_certificate:certificate verify fai 报: ERROR : ssl_client_socket_impl . cc (978)] failed ; returned - 1, SSL error code 1,错误。如题所说,跨进程传递消息,这意味着访问将尝试建立一个不安全的连接,而 ssl 证书验证失败,无法建立连接。在preload.js代码中,暴露参数给渲染线程renderer.js访问,在建立连接之前,先设置。 已解决 ERROR : ssl_client_socket_impl . cc (992)] handshake failed ; returned - 1, SSL error code 1, net_ error - 101 Linux下svn不能连接上Windows服务器: SSL handshake failed : SSL 错误:在证书中检测到违规的密钥用法。 之前已经在Windows 2003上用visualSVN配置好了SVN服务器,并且在Windows虚拟机的客户端可以正常使用。 但是,今天在Ubuntu 11.10上尝试运行svn,就装了一个subversion.但是使用时报了类似下面的错: 报错信息: [3488:1356:0512/211222.342: ERROR : ssl_client_socket_impl . cc (1098)] handshake failed ; returned - 1, SSL error code 1, net_ error - 101 Chrome浏览器解决方案: ```handlebars from selenium import webdriver if __name__ == '__main__': options=webdriver.ChromeOpti 当手机设置代理后,Webview访问网络出现问题, Log:E/chromium: [ ERROR : ssl_client_socket_impl . cc (941)] handshake failed ; returned - 1, SSL error code 1, net_ error - 202 2.错误原因 没有设置WebView的用户代理; 3.解决方案 添加用户代理设置代... out_path = r'D:\005\pdf' chrome_options = webdriver.ChromeOptions() chrome_options.add_argument( 'user - agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, net err_cleartext_not_permitted 从 Android 9.0(API级别28)开始,默认情况下禁用明文支持。因此http的url均无法在webview中加载 附上我使用的解决办法: <?xml version="1.0" encoding="utf - 8"?> <manifest ...> <uses - permission andr... 本文主要记录在使用electron访问http网址(非https)时,应用窗口不显示网页,命令行提示` handshake failed ; returned - 1, SSL error code 1,` 最近我在连接特定服务器的测试中发生了类似的错误:握手失败;返回 - 1, SSL 错误代码1,net_ error - 103我通过搜索铬源代码找到了一些有用的理由,这表明了ret代码的含义.也许它可以帮助你找到原因. SSL 错误代码5:铬// SRC / THIRD_PARTY / boring ssl / SRC /包含/ Open SSL 的/ ssl .h/ * SSL _ ERROR _SYSCALL表示库外部的操作...
 
推荐文章