当前位置:   article > 正文

SSL - SSLHandshakeException: Unrecognized SSL message, plaintext connection?

sslhandshakeexception: unrecognized ssl message, plaintext connection?

一、异常日志

 

  1. javax.net.ssl.SSLHandshakeException: SSL handshake failed.
  2. Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
  3. at com.sun.net.ssl.internal.ssl.EngineInputRecord.bytesInCompletePacket(EngineInputRecord.java:152)
  4. at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:806)
  5. at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:721)
  6. at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:607)
  7. at org.apache.mina.filter.ssl.SslHandler.unwrap(SslHandler.java:725)
  8. at org.apache.mina.filter.ssl.SslHandler.unwrapHandshake(SslHandler.java:663)
  9. at org.apache.mina.filter.ssl.SslHandler.handshake(SslHandler.java:549)
  10. at org.apache.mina.filter.ssl.SslHandler.messageReceived(SslHandler.java:349)
  11. at org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:476)
  12. ... 15 more

 

二、问题原因

    客户端产生该异常,是因为对方提供的不是 https 服务的端口
    服务端产生该异常,是因为客户端以 http 协议访问服务端的 https 服务

 

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/650896
推荐阅读
相关标签
  

闽ICP备14008679号