简体   繁体   English

使用地图,播放服务,分析等功能的Android应用中的SSL证书固定

[英]SSL Certificate pinning in Android app that uses maps, play services, analytics etc

Corresponding issue on github issue tracker github问题跟踪器上的相应问题

I have been doing a fair bit of reading about preventing man in the middle attacks on my app using tools like Charles, Fiddler, mitm etc. I liked the idea of pinning my server's SSL certificate since that means all other certs will throw an error which is what I want. 我一直在阅读有关使用Charles,Fiddler,mitm等工具防止人对我的应用程序进行中间攻击的文章。我喜欢固定服务器的SSL证书的想法,因为这意味着所有其他证书都会抛出错误,是我想要的

But, the app uses libs like google maps, play services, analytics tools etc which must be using their own SSL certs. 但是,该应用使用的库必须为Google Maps,播放服务,分析工具等,这些库必须使用自己的SSL证书。 Does it mean that I would need to manually pin the certs of all these libs too? 这是否意味着我也需要手动固定所有这些库的证书? What's the common way to deal with such a situation? 处理这种情况的常用方法是什么?

不,您不需要固定第三方库的证书,因为它们不使用配置了CertificatePinnerOkHttpClient实例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM