Certificate doesn't match any of the subject alternative names问题的解决
用HttpClient发送HTTPS请求报SSLException: Certificate for <域名> doesn't match any of the subject alternative names问题的解决
最近用server酱-PushBear做消息自动推送,用apache HttpClient做https的get请求,但是代码上到服务器端就报javax.net.ssl.SSLException: Certificate for <域名> doesn't match any of the subject alternative names: [域名],仔细翻了一下文档发现是HttpClient 4.4.1版本的bug,试了很多解决方案,最后在stackoverflow上面找到了正解,链接如下:link,根本的解决还是要从调用HttpClient的代码入手,我把关键部分截图出来分享给掉进这个坑的朋友们:
转自https://www.cnblogs.com/stonefeng/p/10429716.html,未经验证
Certificate doesn't match any of the subject alternative names问题的解决相关推荐
- Certificate for <xx.xxx.xxx.xxx> doesn‘t match any of the subject alternative names: [xx.xxxx.xxxx.
1. 用HttpClient发送Https请求报SSLException: Certificate for <域名> doesn't match any of the subject al ...
- Certificate for <xxx.xxx.xxx.com> doesn‘t match any of the subject alternative names: [xxx..com]
问题和解决 我这里先描述问题和解决方案吧.很多同学不太关心发生的背景. 问题表象 Certificate for <xxx.xxx.xxx.com> doesn't match any o ...
- Certificate for doesn't match any of the subject alternative names: [.xxx.id, .yyy.id, mmm.id]
强烈推荐一个大神的人工智能的教程:http://www.captainbed.net/zhanghan [前言] 最近在调用第三方测试环境的时候日志中报Certificate for doesn't ...
- JDK安全证书的一个错误消息 No subject alternative names present的解决办法
我使用Java消费某网站一个Restful API时,遇到这个错误: 21:31:16.383 [main] DEBUG org.springframework.web.client.RestTemp ...
- 用HttpClient发送HTTPS请求报SSLException: Certificate for <域名> doesn‘t match any of the subject alternative
目录 1:HttpClient 的https证书验证请求问题 2: post请求示例 3: get请求示例 1:HttpClient 的https证书验证请求问题 最近用http 推送,用apache ...
- No subject alternative names present solved
这个异常有可能是SAN (Subject alternative name) 与CN (Common Name)没设置好引起. 网上翻阅了许多资料,下面记录一下解决的方法. 1. 拿着Server 给 ...
- Java笔记-解决WebServiceTemplate中No subject alternative names matching IP address xxx
主要的原因是证书有问题,就是程序的IP地址和证书的IP地址不匹配. 这里是客户端报错,使用的是spring-ws 对应的Maven如下: <dependency><groupId&g ...
- Java笔记-解决SSLHandshakeException: No subject alternative names present
我这边是这样出现的问题,做了一个双向认证的WebService,证书是用keytools做的自签名,其中cn为localhost.在外网测试的时候,客户端检测自己的证书不通过.百度没有找到决解的办法, ...
- 钉钉提示请勿通过开发者调试模式_钉钉开放平台demo调试异常问题解决:hostname in certificate didn't match...
今天研究钉钉的开放平台,结果一个demo整了半天,这帮助系统写的也很难懂.遇到两个问题: 1.首先是执行demo时报unable to find valid certification path to ...
最新文章
- Bugku-CTF之flag在index里
- android朋友圈图片背景图片,做个很哇塞的女孩背景图朋友圈
- 求1+2+3+...+n的值。
- JuPyter(IPython) Notebooks中使用pip安装Python的模块
- mcq 队列_基于人工智能的智能体能力倾向问答(MCQ) 套装1
- 【Linux】vi编辑器命令
- 马自达 3 为什么抛弃了触摸屏?
- 无线网络中终端设备接入过程
- Node.js:Webpack
- 数据库存储过程、触发器、函数的使用
- 【黑灰产犯罪研究】恶意点击
- 设计模式-大话设计模式学习笔记
- PX30 android8.1 时区更改
- 黑客攻防之告别脚本小子-----精简实用渗透测试python小白入门
- Unity实现自适应屏幕大小——九宫格
- 在此处打开命令窗口 (Open command window here)
- 华擎j3455装服务器系统,华擎J3455M主板u盘重装系统win8教程
- python 画图时各种颜色代码
- java 分页简单使用
- Android手机如何更改hosts文件