javax.net.ssl.SSLProtocolException: handshake alert:unrecognized_name
来源:互联网 发布:mac装了双系统怎么切换 编辑:程序博客网 时间:2024/06/04 19:20
今天研究网上的java版的微信模拟登录群发消息的代码时,运行报错handshake alert:unrecognized_name,调试发现完整的错误为javax.net.ssl.SSLProtocolException: handshake alert:unrecognized_name 在百度上发现有网友说是因为JDK的版本不对导致,笔者更换了jdk的版本发现问题依旧,最后看到另一个网友的解决方案
设置系统属性:System.setProperty ("jsse.enableSNIExtension", "false");
如果是tomcat,则catalina.sh增加:-Djsse.enableSNIExtension=false
* jsse.enableSNIExtension system property. Server Name Indication (SNI) is a TLS extension, defined in RFC 4366. It enables TLS connections to virtual servers, in which multiple servers for different network names are hosted at a single underlying network address.
jsse.enablesniextension系统属性. SNI是一个在RFC 4366中定义的TLS扩展。它使TLS连接到虚拟服务器,其中为不同的网络名称的多个服务器托管在一个单一的底层网络地址。
Some very old SSL/TLS vendors may not be able handle SSL/TLS extensions. In this case, set this property to false
to disable the SNI extension.
一些非常旧的SSL / TLS供应商可能无法处理SSL / TLS扩展。在这种情况下,此属性设置为false禁用SNI扩展
转自: http://blog.csdn.net/wx_mdq/article/details/46473227
阅读全文
0 0
- javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name
- javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name
- javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name
- javax.net.ssl.SSLProtocolException: handshake alert:unrecognized_name
- 出现javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name
- javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name解决
- 出现javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name
- jenkins配置SVN时报错:javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name
- javax.net.ssl.SSLProtocolException: handshakealert: unrecognized_name
- javax.net.ssl.SSLProtocolException:SSL handshake aborted
- OkHttpUtils: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0xb8f02e68: Failure in S
- 关于javax.net.ssl.SSLProtocolException
- SSL/TLS的Handshake过程与javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure异常
- SSL/TLS的Handshake过程与javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure异常
- SSL/TLS的Handshake过程与javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure异常
- javax.net.ssl.SSLHandshakeException: Handshake failed
- 关于volley javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: 错误
- javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
- Python学习3-数据类型
- RTMP直播点播-基于开源crtmpserver
- 文章标题
- iOS内购(IAP,In App Purchases-在APP内部支付),设置及使用
- 仿新浪微博,qq,微信等的"长图"预览
- javax.net.ssl.SSLProtocolException: handshake alert:unrecognized_name
- Swagger集成Springboot生成Restful api
- POJ 2781 The mysterious X network 笔记
- python 的日志logging模块学习
- jenkins搭建测试环境
- css知识
- [Usaco2006 Feb]Stall Reservations 专用牛棚
- 欢迎使用CSDN-markdown编辑器
- 程序员如何选择未来的职业路线