----------------------
轉載請注明出處
http://www.cnblogs.com/dzblog/p/8119712.html
---------------------
今天用Charles抓APP的內嵌H5包的時候,發現失敗了,錯誤是SSLHandshake: Received fatal alert: certificate_unknown
並且提示:You may need to configure your browser or application to trust the Charles Root Certificate. See SSL Proxying in the Help menu. (如下圖)
檢查了一下電腦已經通過Proxy->SSL Proxying->Install SSL Root Certificate並且Proxy->SSL Proxy Setting是Enable的並且配置了*.443(如圖)。
經過查詢得知:
原因是IOS10.3以后加強了自定義根證書的安全性校驗。
解決辦法:
按照以下步驟進行設置。 設置->通用->關於本機->證書信任設置->將Charles Proxy Custom Root Certificate的幾個選項打開即可(如圖)。
再次抓包,提示成功。
Cheers!