当前位置:网站首页>Unrecognized SSL message, plaintext connection?
Unrecognized SSL message, plaintext connection?
2022-07-03 02:00:00 【爱琴孩】
前言
昨天快下班了,一同事在群里发了一个异常日志,内容如下
发送邮件失败:{}
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710)
at sun.security.ssl.InputRecord.read(InputRecord.java:527)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:619)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:393)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:217)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2160)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:726)
at javax.mail.Service.connect(Service.java:366)
报错日志是一个发送邮件功能,他怀疑是不是邮件内容中包含了转义字符,导致有的邮件可以正常发送,有的邮件发送失败。
问题本质
看这异常日志,像是SSL解析问题,涉及邮件发送的服务之前都升级为SSL了,服务都已经上线了,发送邮件相关代码理论上是没问题的,后来想到邮件发送的25端口和465端口,报着试试的态度,去集成环境服务器上查看了下邮件服务器的配置,真相大白了,66服务器上邮箱端口居然是25的,而169服务器上的端口是465的,服务端两个节点,请求在两个节点上轮询,这就解释了,为啥有的邮件发送是ok的。显然将25端口改为465就ok了。
在排查问题的时候,经常会出现偶现问题,这时候就要考虑环境的是否有多节点,节点环境、配置是否一致。之前还出现过mq配置错的,测试环境的mq消费了集成环境的消息问题,所以在排查问题的时候要冷静,要看异常日志的实际报错信息,从而再排查问题。
具体邮件支持SSL相关信息,可以查看邮件发送工具类
边栏推荐
- 我的创作纪念日
- Network security - vulnerabilities and Trojans
- Summary of ES6 filter() array filtering methods
- Where is the future of test engineers? Confused to see
- String replace space
- Network security - man in the middle attack
- Processing of tree structure data
- [shutter] hero animation (hero realizes radial animation | hero component createrecttween setting)
- 詳細些介紹如何通過MQTT協議和華為雲物聯網進行通信
- Socket programming
猜你喜欢
Analysis, use and extension of open source API gateway apisex
How can retail enterprises open the second growth curve under the full link digital transformation
In 2022, 95% of the three most common misunderstandings in software testing were recruited. Are you that 5%?
Distributed transaction solution
Detailed introduction to the usage of Nacos configuration center
easyExcel
[leetcode] 797 and 1189 (basis of graph theory)
Custom components, using NPM packages, global data sharing, subcontracting
Detailed introduction to the deployment and usage of the Nacos registry
《上市风云》荐书——唯勇气最可贵
随机推荐
【Camera专题】手把手撸一份驱动 到 点亮Camera
[Yu Yue education] reference materials of love psychology of China University of mining and technology
Leetcode (540) -- a single element in an ordered array
Network security - man in the middle attack
The Sandbox阐释对元宇宙平台的愿景
When the epidemic comes, how to manage the team as a leader| Community essay solicitation
Kotlin middle process understanding and Practice (II)
[fluent] hero animation (hero animation use process | create hero animation core components | create source page | create destination page | page Jump)
疫情当头,作为Leader如何进行团队的管理?| 社区征文
Hard core observation 547 large neural network may be beginning to become aware?
Network security NAT network address translation
Wechat applet development tool post net:: err_ PROXY_ CONNECTION_ Failed agent problem
Introduce in detail how to communicate with Huawei cloud IOT through mqtt protocol
Explore the conversion between PX pixels and Pt pounds, mm and MM
String replace space
502 (bad gateway) causes and Solutions
查询商品案例-页面渲染数据
Wechat applet Development Tool Post net:: Err Proxy Connexion Problèmes d'agent défectueux
DQL basic operation
Network security - cracking system passwords