SSL - SSLHandshakeException: Unrecognized SSL message, plaintext connection?
一、異常日誌
javax.net.ssl.SSLHandshakeException: SSL handshake failed.
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.net.ssl.internal.ssl.EngineInputRecord.bytesInCompletePacket(EngineInputRecord.java:152)
at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:806)
at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:721)
at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:607)
at org.apache.mina.filter.ssl.SslHandler.unwrap(SslHandler.java:725)
at org.apache.mina.filter.ssl.SslHandler.unwrapHandshake(SslHandler.java:663)
at org.apache.mina.filter.ssl.SslHandler.handshake(SslHandler.java:549)
at org.apache.mina.filter.ssl.SslHandler.messageReceived(SslHandler.java:349)
at org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:476)
... 15 more
二、問題原因
客戶端產生該異常,是因為對方提供的不是 https 服務的埠
服務端產生該異常,是因為客戶端以 http 協議訪問服務端的 https 服務
相關文章
- SSL - SSLHandshakeException: No subject alternative names presentException
- SSL - SSLHandshakeException: unable to find valid certification path to requested targetException
- SSL - SSLHandshakeException: No subject alternative names matching IP address foundException
- 解決 javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateExceptionJavaException
- ‘OpenSSL SSL_read: Connection was reset, errno 10054’
- Establishing SSL connection without server's identity verification is not recommended.ServerIDE
- ERROR 2026 (HY000): SSL connection error: unknown error numberError
- kafka ssl sasl_ssl 配置Kafka
- ssl
- Vesta 安裝SSL – HTTPS SSL 教程HTTP
- 阿里雲站點升級提示:OpenSSL SSL_connect: Connection reset by peer in connection to www.pbootcms.com:443阿里boot
- phpStudy安裝ssl證照 – HTTPS SSL 教程PHPHTTP
- Tomcat 安裝SSL證書 – HTTPS SSL 教程TomcatHTTP
- Nginx的SSL配置優化 – HTTPS SSL 教程Nginx優化HTTP
- SSL證書轉PEM格式 – HTTPS SSL 教程HTTP
- SSL證書格式轉換 – HTTPS SSL 教程HTTP
- SSL證書安裝指引教程 – HTTPS SSL 教程HTTP
- SSL/TLS協議安全系列:SSL/TLS概述TLS協議
- SSL證書申請問題 – HTTPS SSL 教程HTTP
- error:14090086:SSL routines:ssl3_get_server_certificateErrorServer
- SSL基礎知識及Nginx/Tomcat配置SSLNginxTomcat
- 3、SSL隧道
- [HTTPS]SSL/TLSHTTPTLS
- SSL錯誤ssl connect error 35的解決方案Error
- pip is configured with locations that require TLS/SSL, however the ssl module in Python is not availableUITLSPythonAI
- 如何區分SSL證書和國密SSL證書
- Error connecting with SSL. error:1409442E:SSL routines:SSL3_READ_BYTES:tlsv1 alert protocol versionErrorTLSProtocol
- does not support SSL connections
- 完全吃透 TLS/SSLTLS
- SSL:http與httpsHTTP
- rabbitmq開啟sslMQ
- NGINX配置SSL支援Nginx
- 【SSL】1209旅行(normal)ORM
- 解決Python找不到ssl模組問題 No module named _sslPython
- WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.UITLSPythonAI
- 如何申請SSL證書以及SSL證書的費用
- SSL/TLS協議安全系列:SSL的Padding Oracle攻擊TLS協議paddingOracle
- 免費SSL證書Let's Encrypt的替代:SSL.com