SSLException:收到致命警报:意外消息

问题描述

|| 我在用着:
not-yet-commons-ssl-0.3.9.jar
opensaml-2.3.1.jar
我的日志中出现以下错误:
SSLException: Received fatal alert: unexpected_message 
打开SSLDebug可以得到以下结果:
TP-Processor2,READ: TLSv1 Alert,length = 2
TP-Processor2,RECV TLSv1 ALERT:  fatal,unexpected_message
TP-Processor2,called closeSocket()
TP-Processor2,handling exception: javax.net.ssl.SSLException: Received fatal alert:  unexpected_message
%% Client cached [Session-40,SSL_RSA_WITH_RC4_128_MD5]
%% Try resuming [Session-40,SSL_RSA_WITH_RC4_128_MD5] from port 2903
*** ClientHello,TLSv1
行为是SSL连接工作五分钟-然后它们失败,并显示上述消息。我的猜测是这是SSL会话缓存问题。 有人解决了吗?     

解决方法

因此,事实证明,有弹性的城堡(opensaml的jar依赖项)在SSL协商中增加了一堆额外的密码。 TIBCO服务器使用这些额外的密码。将Bouncy Castle Jar回滚至1.3.5(椭圆前SLL密码)可以解决此问题。     

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...