https://blog.csdn.net/qq_40582463/article/details/86933720
問題描述
通過自帶的瀏覽器打開chls.pro/ssl下載證書文件,無法安裝,提示“沒有可安裝的證書”。
原因
是因為小米手機默認開啟了迅雷下載引擎,導致下載的證書文件內容不正確,所以無法安裝。


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




注意事項
經過測試,在【下載管理】中直接點擊打開,即使證書格式正確也無法安裝,如下圖。遇到這種情況可以在【文件管理器】中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.