gpt4 book ai didi

apache - 有人可以帮我解码 SSL 相关的堆栈跟踪吗?

转载 作者:太空宇宙 更新时间:2023-11-03 15:03:57 26 4
gpt4 key购买 nike

我有一个带有自签名证书的小型 HTTPServer。当我使用 Chrome 发送 GET 请求时,我收到了预期的安全异常。然后在握手过程中出现以下错误:

如何解读?版本 32 是什么意思? SSL = 3 和 TLS = 2?

05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): Error fetching file from server., Stack Trace : javax.net.ssl.SSLException: Error occured in delegated task:javax.net.ssl.SSLHandshakeException: PROTOCOL VERSION. Unsupported client version 32
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.apache.harmony.xnet.provider.jsse.HandshakeProtocol.fatalAlert(HandshakeProtocol.java:319)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.apache.harmony.xnet.provider.jsse.HandshakeProtocol.wrap(HandshakeProtocol.java:271)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.apache.harmony.xnet.provider.jsse.SSLEngineImpl.wrap(SSLEngineImpl.java:695)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:464)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.handler.ssl.SslHandler.wrapNonAppData(SslHandler.java:1018)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1137)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.handler.ssl.SslHandler.decode(SslHandler.java:814)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:422)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:84)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:471)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:332)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at java.lang.Thread.run(Thread.java:1019)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): Caused by: org.apache.harmony.xnet.provider.jsse.AlertException: javax.net.ssl.SSLHandshakeException: PROTOCOL VERSION. Unsupported client version 32
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.apache.harmony.xnet.provider.jsse.HandshakeProtocol.fatalAlert(HandshakeProtocol.java:308)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.apache.harmony.xnet.provider.jsse.ServerHandshakeImpl.processClientHello(ServerHandshakeImpl.java:356)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.apache.harmony.xnet.provider.jsse.ServerHandshakeImpl$1.run(ServerHandshakeImpl.java:124)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.apache.harmony.xnet.provider.jsse.ServerHandshakeImpl$1.run(ServerHandshakeImpl.java:122)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at java.security.AccessController.doPrivileged(AccessController.java:182)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.apache.harmony.xnet.provider.jsse.DelegatedTask.run(DelegatedTask.java:52)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.handler.ssl.SslHandler$2.run(SslHandler.java:1258)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.handler.ssl.ImmediateExecutor.execute(ImmediateExecutor.java:31)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.handler.ssl.SslHandler.runDelegatedTasks(SslHandler.java:1255)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): at org.jboss.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1140)
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): ... 12 more
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): Caused by: javax.net.ssl.SSLHandshakeException: PROTOCOL VERSION. Unsupported client version 32
05-07 10:16:12.510: W/HttpDefaultRequestHandler(26591): ... 22 more

最佳答案

版本 32:

3 => 协议(protocol)的主要版本号
2 => 协议(protocol)的次要版本号(对于 SSLv3,这似乎等于 0,对于 TLSv1,这似乎等于 1,2 尚未定义,这就是您出现错误的原因)

引用资料:

  1. 草稿 - The SSL Protocol Version 3.0
  2. 源代码 - ProtocolVersion.java
  3. 源代码 - ServerHandshakeImpl.java
  4. 源代码测试 - ProtocolVersionTest.java

关于apache - 有人可以帮我解码 SSL 相关的堆栈跟踪吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15262569/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com