小编Enz*_*rix的帖子

Java SSL SSLHandshakeException handshake_failure

我正在使用java 8并使用SSLSocket请求此URL:https: //www.flixbus.de/sites/default/files/6_jetzt_buchen_button_tiny.png

我总是遇到握手错误.socket.setEnabledProtocols()强制使用特定协议没有帮助.

顺便说一句,所有其他Web服务器都运行良好.所以它可能与我的代码无关.

没有任何ssl/tls协议限制也会发生此错误.

有任何想法吗?

选项"javax.net.debug = all"的输出如下:

DEBG getSecureScocket: Supported protocols:
- SSLv2Hello
- SSLv3
- TLSv1
- TLSv1.1
- TLSv1.2
DEBG getSecureScocket: Enabled protocols:
- TLSv1.2
Http Client, setSoTimeout(120000) called
Allow unsafe renegotiation: false
Allow legacy hello messages: true
Is initial handshake: true
Is secure renegotiation: false

%% No cached client session
*** ClientHello, TLSv1.2
RandomCookie:  GMT: 1426330417 bytes = { 229, 161, 185, 11, 136, 85, 35, 88, 166, 144, 191, 126, 10, …
Run Code Online (Sandbox Code Playgroud)

java ssl sslhandshakeexception

4
推荐指数
1
解决办法
9229
查看次数

标签 统计

java ×1

ssl ×1

sslhandshakeexception ×1