【问题标题】:SSLException: Received fatal alert: unexpected_messageSSLException:收到致命警报:unexpected_message
【发布时间】:2011-05-24 02:07:40
【问题描述】:

我正在使用:

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 会话缓存问题。

有人解决了吗?

【问题讨论】:

  • 引用规范:“unexpected_message... 总是致命的,不应该在正确实现之间的通信中观察到。”

标签: java ssl tibco opensaml


【解决方案1】:

结果证明 bouncy-castle(opensaml 的 jar 依赖项)在 SSL 协商中添加了一堆额外的密码。 TIBCO 服务器会喷出这些额外的密码。将 Bouncy Castle Jar 回滚到 1.3.5(椭圆前 SLL 密码)解决了这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-11-18
    • 2018-09-02
    • 1970-01-01
    • 2012-03-18
    • 2023-04-07
    • 2015-10-06
    相关资源
    最近更新 更多