JAVA_javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name
tomcat访问https请求返回:
- javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name
- at sun.security.ssl.ClientHandshaker.handshakeAlert(ClientHandshaker.java:1292)
- at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1952)
- at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)
- at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
- at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
- at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
- at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:275)
- at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:254)
- at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117)
- at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314)
- at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
- at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
- at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
- at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
- at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
- at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)
- at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
- at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:214)
- at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:160)
- at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:136)
服务器java版本:
- java version "1.7.0_51"
解决办法:
在TOMCAT_HOME/bin/catalina.sh中加入-Djsse.enableSNIExtension=false设置
- JAVA_OPTS="$JAVA_OPTS -Djsse.enableSNIExtension=false
重启Tomcat,问题解决
问题原因参考:
http://stackoverflow.com/questions/7615645/ssl-handshake-alert-unrecognized-name-error-since-upgrade-to-java-1-7-0/11043871#11043871
JAVA_javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name的更多相关文章
- 快钱报错:javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name解决
jdk1.7提示:javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name //方案1:设置系统属性:System. ...
- SSL handshake alert: unrecognized_name error since upgrade to Java 1.7
今天将jdk从1.6升级到1.7,但是HttpUrlConnection连接https出现问题了. javax.net.ssl.SSLProtocolException: handshake aler ...
- There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping
Could not fetch URL https://pypi.python.org/simple/xlrd/: There was a problem confirming the ssl cer ...
- mac下python环境pip报错[SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) 的解决方法
1.mac下python环境pip报错: issuserdeMacBook-Pro:~ issuser$ pip install pyinstallerCollecting pyinstaller ...
- findbug、p3c、checkstyle、sonar安装使用
idea插件安装方式: Preferences—>Plugins—>查找插件—>Install Preferences—>Plugins—>Install plug fr ...
- Jersey框架三:Jersey对HTTPS的支持
Jersey系列文章: Jersey框架一:Jersey RESTful WebService框架简介 Jersey框架二:Jersey对JSON的支持 Jersey框架三:Jersey对HTTPS的 ...
- java sni support result in svn fail
svn: E175002: handshake alert: unrecognized_name http://stackoverflow.com/questions/7615645/ssl-han ...
- eclipse tomcat maven
jdk jre eclipse 略过 下载maven和tomcat 上apache官网下载maven:http://maven.apache.org/download.cgi. 上apache官网下载 ...
- 如何打包ANE
来源:http://blog.sina.com.cn/s/blog_6471e1bb01012aql.html 首先先说一下打包ANE必须的部件: 1.ActionScript扩展库SWC 2.本机扩 ...
随机推荐
- css_随笔
1 css 基础语法: 2 派生选择器 li strong { font-style: italic; font-weight: normal; } <p><strong>我是 ...
- MySQL备份mydumper的原理
本文来自:http://baiyangtx.net/2016/09/04/mydumper-principle/ 相对于MySQL官方提供的逻辑备份工具 mysqldump , mydumper最大的 ...
- tp框架实现验证码
今天来看一个小插件. tp框架是怎么实现验证码的. 又到了我们千篇一律的时候了,首先呢,先做一个用来显示的html界面名为:zhuce.html <!DOCTYPE html PUBLIC &q ...
- css3 自定义字体 @font-face
CSS3 @font-face 规则 在 CSS3 之前,web 设计师必须使用已在用户计算机上安装好的字体. 通过 CSS3,web 设计师可以使用他们喜欢的任意字体. 当您您找到或购买到希望使用的 ...
- ios语音识别
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; color: #000000; min-height: 15.0px } p.p ...
- MySQLFabric连接的编码问题
今天解决的一个小问题.最终的解决方案很简单,主要是讲一下解决问题的思路. 测试人员在服务器上测试,页面提交的中文内容存入数据库中以后,是乱码. 开发人员在本机上测试,没有问题. 服务器上使用的是Mys ...
- 素数的平方阶群必为Abel群
定理 设$p$为素数,则$p^2$阶群$G$必为Abel群.
- C#做上位机软件——绘图并传输给下位机
拿到任务之后首先分成了几个部分: 1.绘图.学习了GDI+ 2.图片保存. 3.将图片转换成byte[].由于使用Socket通信,只能传输byte[]数据,所以这一步是向下位机传输的关键. 相应地, ...
- Lintcode 166. 主元素
----------------------------------- Moore's voting algorithm算法:从一个集合中找出出现次数半数以上的元素,每次从集合中去掉一对不同的数,当剩 ...
- log4net配置
1.configuration配置 <configSections> <section name="log4net" type="log4net.Con ...