简体   繁体   English

禁用SSL证书固定

[英]Disable SSL certificate pinning

We'd like to have our app, developed with Xamarin Android, undergo a security check. 我们希望使用Xamarin Android开发的应用经过安全检查。 For this reason, we need to disable SSL pinning. 因此,我们需要禁用SSL固定。 What's the simplest way to do this? 最简单的方法是什么?

We already tried it programmatically, by setting a ServerCertificateCustomValidationCallback in HttpClientHandler , but all we got are lots of exceptions. 我们已经通过在HttpClientHandler设置ServerCertificateCustomValidationCallback以编程方式对其进行了尝试,但是我们所得到的只是很多异常。 We also tried that with all combinations of the HttpClient implementation and SSL/TLS implementation settings in the Advanced Android Options , without success. 我们还尝试了在高级Android选项中使用HttpClient实现SSL / TLS实现设置的所有组合,但均未成功。

Our Android Manifest says the following: 我们的Android清单说明以下内容:

<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="23" />

If you need more details, please just ask. 如果您需要更多详细信息,请询问。 Thank you very much in advance. 提前非常感谢您。

SSL Certificate Pinning is introduced in SDK Version 24 ( https://developer.android.com/about/versions/nougat/android-7.0.html#default_trusted_ca ) SSL证书固定在SDK版本24( https://developer.android.com/about/versions/nougat/android-7.0.html#default_trusted_ca )中引入

So, there was nothing to do. 因此,无事可做。

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

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