javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name解决
来源:互联网 发布:广州天拓网络 编辑:程序博客网 时间:2024/06/09 21:36
jdk1.7提示:javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name
//方案1:设置系统属性:System.setProperty("jsse.enableSNIExtension", "false");
//方案2:如果是tomcat:
// 1. linux,在catalina.sh加上JAVA_OPTS="$JAVA_OPTS -Djsse.enableSNIExtension=false"
// 2. win,在catalina.bat加上JAVA_OPTS="$JAVA_OPTS -Djsse.enableSNIExtension=false"
方案3:
修改:linux/etc/init.d/jenkinsJAVA_CMD="$JENKINS_JAVA_CMD $JENKINS_JAVA_OPTIONS -DJENKINS_HOME=$JENKINS_HOME -Djsse.enableSNIExtension=false -jar $JENKINS_WAR"加入红色字体部分
方案4:
快钱反馈是由于他们的JDK版本是1.6,我们开发采用的JDK版本是1.7,需要在代码中设置系统属性:System.setProperty ("jsse.enableSNIExtension", "false"); 但实际中发现,有时候(小概率)还是无效。LBS切换ECS,或者重启对应Tomcat才能生效。 快钱建议,linux系统的话,在tomcat的catalina.sh文件中找到JAVA_OPTS配置,第二行加上: JAVA_OPTS="$JAVA_OPTS -Djsse.enableSNIExtension=false"
重启Tomcat,问题解决。 ps aux | grep tomcat; kill -9 进程号(root权限) tomcat进程,重启。
方案5:(jenkins配置SVN时报错:javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name)
在jenkins里面用下面的方法解决:1.如果通过命令行启动则在启动时添加(绝色部分):@echo offset JENKINS_HOME=D:\jenkinsD:\jdk1.7.0_40\bin\java -Djsse.enableSNIExtension=false -jar %JENKINS_HOME%\jenkins.war --httpPort=80002.通过windows 服务启动时先打开jenkins目录下的jenkins.xml文件,在如下部分添加:<arguments>-Djsse.enableSNIExtension=false -Xrs -Xmx256m -jar "%BASE%\jenkins.war" --httpPort=8000 -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle</arguments>
阅读全文
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
- HTML标签语义
- MongoDB数据库设计准则
- Ajax自己的 属性提示错误 error:function(){} $.post().error() .ajaxError()
- bootstap 3.x+springMVC 发生图标不出来,样式还有
- Windows Server 2008 R2安装IIS
- javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name解决
- 暑期C++03 之匿名对象
- H5微信聊天案例、html5+css3仿微信聊天界面对话框 微信红包-打赏-霸屏
- Neither user 10029 nor current process has android.permission.WRITE_MEDIA_STORAGE.
- 使用Kotlin开发Android应用
- 回溯法——旅行商(TSP)问题
- 理解ARP协议以及IP与MAC地址的关系
- The Solution to Leetcode 463 Island Perimeter
- bzoj 3101: N皇后