SSLHandshake: Received fatal alert: certificate_unknown
来源:互联网 发布:好看的美剧 知乎 编辑:程序博客网 时间:2024/06/06 01:57
问题
不采用Charles 代理的时候,可以正常访问,当使用Charles的时候不行
现象
当https 链接的证书得不到Charles证书的信任之后,就会包这个。
解决:
可以使用以下openssl命令来获取到服务器的公开二进制证书(以google为例):
"openssl s_client -connect www.google.com:443 </dev/null 2>/dev/null | openssl x509 -outform DER > https.cer"
让手机去信任cer即可。
另如还是同样有问题,配置info.plist如下信息
-(最后的大招)
。既然都允许http 连接,这种https的RC4-SHA 更可以。
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>
结论
这种https的SSL证书 应该属于不太安全的那种,如果一定要用Charles的话,只能将app的SSL验证 放开,达到允许请求http的级别就可以抓包了。
p s: 开启系统预定义的本地化功能
CFBundleAllowMixedLocalizations
CFBundleAllowMixedLocalizations
阅读全文
0 0
- SSLHandshake: Received fatal alert: certificate_unknown
- Charles Android 抓包失败SSLHandshake: Received fatal alert: certificate_unknown
- 解决javaapns 推送iOS Invalid certificate chain (Received fatal alert: certificate_unknown)! 错误
- boom! charles ios10.3 代理失败 SSLHandshake: Received fatal alert: unknown_ca
- SSLHandshakeException: Received fatal alert: handshake_failure
- 苹果推送:Received fatal alert: certificate_revoked
- java mail Received fatal alert: handshake_failure
- javamail 报 Received fatal alert handshake_failure
- HTTPS握手异常:Received fatal alert: handshake_failure
- GnuTLS error -12: A TLS fatal alert has been received.
- charles 3.11对于cipher限制 Received fatal alert: handshake_failure
- javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
- javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
- javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
- eclipse javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
- java无法收取邮件问题 Received fatal alert: handshake_failure
- XMPP/Smack/Openfire javax.net.ssl.SSLException: Received fatal alert: internal_error
- ios信息推送 异常 javax.net.ssl.SSLHandshakeException: Received fatal alert: handshak
- API接口Cloneable
- Python:创建一个新的文件
- Linux应用开发———编译程序提示“对“xxxxxx”未定义的引用”
- 处理插入数据库乱码问题
- 【Ajax】(1)Ajax的原理,利用点对点通讯将前端页面输入的信息发送到后台进行检验
- SSLHandshake: Received fatal alert: certificate_unknown
- Struts2 官方教程:控制标签(Control Tags)
- Bus Pass HDU
- 对于友元重载方式和成员函数重载方式的选择
- [ACM] 常用STL
- 报错 Not allowed to return a result set from a trigger
- hdu6102 2017"百度之星"初赛(A)1005今夕何夕(模拟)
- Android Activity+ViewPager(Fragment)+Fragment
- (12B)order by 、limit