小米8安裝charles證書方法


https://blog.csdn.net/qq_40582463/article/details/86933720

 

問題描述

通過自帶的瀏覽器打開chls.pro/ssl下載證書文件,無法安裝,提示“沒有可安裝的證書”。

原因

是因為小米手機默認開啟了迅雷下載引擎,導致下載的證書文件內容不正確,所以無法安裝。

錯誤的證書文件內容錯誤的證書文件內容  正確的證書文件內容正確的證書文件內容

解決辦法

在【下載管理】中關閉迅雷引擎重新下載證書,安裝即可。

2

 

4

注意事項

經過測試,在【下載管理】中直接點擊打開,即使證書格式正確也無法安裝,如下圖。遇到這種情況可以在【文件管理器】中Download目錄下找到該文件,點擊安裝

今天用charles抓包,忽然發現很多https抓不到了,顯示為unknown,安裝了證書也不管用。看到官網有這樣一段話,大概的意思就是從安卓7往后,只能抓自己的app的數據包了:

As of Android N, you need to add configuration to your app in order to have it trust the SSL certificates generated by Charles SSL Proxying. This means that you can only use SSL Proxying with apps that you control.

In order to configure your app to trust Charles, you need to add a Network Security Configuration File to your app. This file can override the system default, enabling your app to trust user installed CA certificates (e.g. the Charles Root Certificate). You can specify that this only applies in debug builds of your application, so that production builds use the default trust profile.

 
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM