SSLException Unrecognized SSL…问题排查

简介: SSLException Unrecognized SSL…问题排查

最近在一次生产问题中遇到了SSLException:Unrecognized SSL message,plainetxt connection错误异常信息,背景为调用微信api 获取相应信息的时候报错,微信api的域名为api.weixin.qq.com

一、服务检查

首先我们进行了服务检查,故障期间没有进行过变更,并且服务上其他接口均正常访问,只是访问微信的api时才会报相应的错误。初步排除应用服务问题。

二、网络策略检查

从报错的含义上看是由于使用了https去访问一个http的服务。由于双方一直都是使用https进行交互的并且服务没有进行变更,考虑到有可能是网络策略问题,我们进一步验证网络的连通性,telnet对方的IP和443端口,发现能够正常联通。故再次排除了网络策略的问题。

四、使用nslookup查看IP地址

使用nslookup domain查看微信域名对应的IP,发现IP与服务所访问的IP不一致,判断是对应的服务IP更换的原因,更换IP后服务恢复正常。要注意,nslookup domain不会返回所有的IP地址,只会返回当前运营商的IP地址,例如联通的只返回联通的IP,电信的网络则返回电信的IP。

相关文章
|
应用服务中间件 nginx
【已解决】nginx 502 Bad Gateway 问题排查
nginx 502 Bad Gateway 问题排查
6980 0
【已解决】nginx 502 Bad Gateway 问题排查
|
6月前
|
Java 网络安全 数据安全/隐私保护
【Java异常】Unrecognized SSL message, plaintext connection?https请求遇到异常分析
【Java异常】Unrecognized SSL message, plaintext connection?https请求遇到异常分析
268 0
|
5月前
|
运维 Kubernetes 安全
5 分钟搞懂 K8S Pod Terminating/Unknown 故障排查
5 分钟搞懂 K8S Pod Terminating/Unknown 故障排查
370 0
|
6月前
|
应用服务中间件 网络安全 nginx
nginx开启ssl报错: [emerg] "server" directive is not allowed here ...
nginx开启ssl报错: [emerg] "server" directive is not allowed here ...
100 0
|
6月前
|
网络安全
解决WARN: Establishing SSL connection without server‘s identity verification is not recommended警告问题~
解决WARN: Establishing SSL connection without server‘s identity verification is not recommended警告问题~
|
11月前
|
Web App开发 存储 缓存
如何在Google Chrome浏览器中修复“ Err_SSL_Protocol_Error”?
如何在Google Chrome浏览器中修复“ Err_SSL_Protocol_Error”?
1051 0
|
开发工具 git
fatal: protocol ‘“https‘ is not supported
fatal: protocol ‘“https‘ is not supported
|
Shell 网络安全 开发工具
Github: fatal: Unsupported SSL backend ‘“openssl”‘. Supported SSL backends: openssl schannel
Github: fatal: Unsupported SSL backend ‘“openssl”‘. Supported SSL backends: openssl schannel
235 0
Github: fatal: Unsupported SSL backend ‘“openssl”‘. Supported SSL backends: openssl schannel
|
Shell 网络安全 开发工具
fatal: unable to access github.com schannel failed to receive handshake, SSL/TLS connection failed
fatal: unable to access github.com schannel failed to receive handshake, SSL/TLS connection failed
229 0