{"id":65,"date":"2017-11-29T14:50:33","date_gmt":"2017-11-29T06:50:33","guid":{"rendered":"https:\/\/www.aberlt.com\/?p=65"},"modified":"2024-04-18T19:21:54","modified_gmt":"2024-04-18T11:21:54","slug":"mac-%e4%bd%bf%e7%94%a8-charles-%e5%af%b9-ios-%e8%bf%9b%e8%a1%8c-https-%e6%8a%93%e5%8c%85","status":"publish","type":"post","link":"https:\/\/www.aberlt.com\/index.php\/2017\/11\/29\/mac-%e4%bd%bf%e7%94%a8-charles-%e5%af%b9-ios-%e8%bf%9b%e8%a1%8c-https-%e6%8a%93%e5%8c%85\/","title":{"rendered":"Mac \u4f7f\u7528 Charles \u5bf9 iOS \u8fdb\u884c https \u6293\u5305"},"content":{"rendered":"<h2>\u80cc\u666f<\/h2>\n<p>\u7f51\u4e0a\u6709\u5f88\u591a\u5173\u4e8e\u4f7f\u7528 Charles \u5bf9 http \u548c https \u8fdb\u884c\u6293\u5305\u7684\u6559\u7a0b\u3002\u5176\u4e2d\u5510\u5de7\u5927\u4f6c\u5199\u7684\u8fd9\u7bc7<a href=\"http:\/\/blog.devtang.com\/2015\/11\/14\/charles-introduction\/\">Charles \u4ece\u5165\u95e8\u5230\u7cbe\u901a<\/a>\u662f\u672c\u4eba\u770b\u8fc7\u7684\u8f83\u4e3a\u8be6\u7ec6\u7684\u5173\u4e8e http \u6293\u5305\u7684\u6559\u7a0b\uff0c\u540c\u65f6\u4e5f\u4ecb\u7ecd\u4e86\u5f88\u591a\u5173\u4e8e Charles \u7684\u4f7f\u7528\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u7b80\u5355\u5730\u8bf4\u660e\u5982\u4f55\u8fdb\u884c\u914d\u7f6e\u3002<br \/>\n\u800c\u5173\u4e8e https \u6293\u5305\u7684\u6559\u7a0b\uff0c\u76ee\u524d\u672c\u4eba\u770b\u5230\u7684\u5927\u591a\u6570\u6559\u7a0b\u90fd\u53ea\u9002\u7528\u4e8e iOS 9 \u53ca\u4ee5\u4e0b\u7248\u672c\uff0c\u5728 iOS 10 \u53ca iOS 11 \u7cfb\u7edf\u4e0a\u62e6\u622a\u5230\u7684\u8bf7\u6c42\u53ea\u80fd\u770b\u5230\u4e71\u7801\u3002\u56e0\u6b64\uff0c\u5199\u4e0b\u8fd9\u7bc7\u6587\u7ae0\u505a\u4e2a\u8bb0\u5f55\u3002  <\/p>\n<p><!-- more --><\/p>\n<h2>\u5bf9 https \u8fdb\u884c\u6293\u5305<\/h2>\n<p>Charles \u5bf9 https \u8fdb\u884c\u6293\u5305\u7684\u914d\u7f6e\u5176\u5b9e\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5728\u539f\u6765\u914d\u7f6e http \u6293\u5305\u7684\u57fa\u7840\u4e0a\u518d\u589e\u52a0\u4e24\u4e2a\u6b65\u9aa4\u5373\u53ef\u3002<\/p>\n<ul>\n<li>\u8bbe\u7f6e SSL \u4ee3\u7406<\/li>\n<li>\u5b89\u88c5\u8bc1\u4e66<\/li>\n<\/ul>\n<h3>\u8bbe\u7f6e SSL \u4ee3\u7406<\/h3>\n<p>\u901a\u8fc7\u9009\u62e9\u83dc\u5355\u680f\u7684 \u201cProxy\u201d -&gt; \u201cSSL Proxying Settings\u201d\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images.aberlt.com\/2017-11-30-proxy_ssl_proxying_settings.jpg\" alt=\"\" \/><\/p>\n<p>\u6253\u5f00 SSL \u4ee3\u7406\u8bbe\u7f6e\u5f39\u7a97\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images.aberlt.com\/2017-11-30-ssl_proxying_settings.jpg\" alt=\"\" \/><\/p>\n<p>\u52fe\u9009 \u201cEnable SSL Proxying\u201d -&gt; \u201cAdd\u201d \u6dfb\u52a0\u62e6\u622a\u7684\u89c4\u5219\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images.aberlt.com\/2017-11-30-edit_location.jpg\" alt=\"\" \/><\/p>\n<ul>\n<li>\u201cHost\u201d \u586b\u5165\u62e6\u622a\u7684\u4e3b\u673a\u57df\u540d\uff0c* \u8868\u793a\u62e6\u622a\u6240\u6709\u8bf7\u6c42<\/li>\n<li>\u201cPort\u201d \u586b\u5165\u62e6\u622a\u7684\u7aef\u53e3\uff0c\u6293\u53d6 https \u4e00\u822c\u4e3a 443<\/li>\n<\/ul>\n<h3>\u5b89\u88c5\u8bc1\u4e66<\/h3>\n<p>SSL \u4ee3\u7406\u8bbe\u7f6e\u5b8c\u6210\u4e4b\u540e\u9700\u8981\u8fdb\u884c\u8bc1\u4e66\u7684\u5b89\u88c5\u3002mac \u4e0a\u5fc5\u987b\u8981\u5b89\u88c5\u8bc1\u4e66\uff0c\u89c6\u60c5\u51b5\u5728\u6a21\u62df\u5668\u6216\u624b\u673a\u4e0a\u5b89\u88c5\u8bc1\u4e66\u3002  <\/p>\n<h4>mac \u5b89\u88c5\u8bc1\u4e66<\/h4>\n<p>\u5982\u56fe\u6240\u793a\uff0c\u901a\u8fc7\u9009\u62e9\u83dc\u5355\u680f\u7684 \u201cHelp\u201d -&gt; \u201cSSL Proxying\u201d -&gt; \u201cInstall Charles Root Certificate\u201d \u5728 mac \u4e0a\u5b89\u88c5\u8bc1\u4e66\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images.aberlt.com\/2017-11-30-mac_install_charles_root_certificate.jpg\" alt=\"\" \/><\/p>\n<blockquote>\n<p>\u6ce8\u610f\uff1a\u6b64\u5904\u5b89\u88c5\u8bc1\u4e66\u4e4b\u540e\u8fd8\u9700\u8981\u5728\u94a5\u5319\u4e32\u4e2d\u5c06\u8be5\u8bc1\u4e66\u7684\u4fe1\u4efb\u72b6\u6001\u7531\u7cfb\u7edf\u9ed8\u8ba4\u8bbe\u7f6e\u4e3a\u59cb\u7ec8\u4fe1\u4efb\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<\/blockquote>\n<p><img decoding=\"async\" src=\"http:\/\/images.aberlt.com\/2017-11-30-mac_trust_charles_proxy.jpg\" alt=\"\" \/><\/p>\n<h4>\u6a21\u62df\u5668\u5b89\u88c5\u8bc1\u4e66<\/h4>\n<p>\u6a21\u62df\u5668\u5b89\u88c5\u8bc1\u4e66\u975e\u5e38\u7b80\u5355\uff0c\u901a\u8fc7\u9009\u62e9\u83dc\u5355\u680f\u7684 \u201cHelp\u201d -&gt; \u201cSSL Proxying\u201d -&gt; \u201cInstall Charles Root Certificate in iOS Simulators\u201d \u5373\u53ef\u3002\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images.aberlt.com\/2017-11-30-simulators_install_charles_root_certificate.jpg\" alt=\"\" \/><\/p>\n<h4>\u624b\u673a\u5b89\u88c5\u8bc1\u4e66<\/h4>\n<p>\u5728\u624b\u673a\u4e0a\u5b89\u88c5\u8bc1\u4e66\u901a\u8fc7\u9009\u62e9\u83dc\u5355\u680f\u7684 \u201cHelp\u201d -&gt; \u201cSSL Proxying\u201d -&gt; \u201cInstall Charles Root Certificate on a Mobile Device or Remote Browser\u201d\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images.aberlt.com\/2017-11-30-mobile_install_charles_root_certificate.jpg\" alt=\"\" \/><\/p>\n<p>\u6b64\u65f6\uff0cCharles \u4f1a\u5f39\u51fa\u63d0\u793a\u6846\u3002\u63d0\u793a\u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u4ee3\u7406\uff0c\u7136\u540e\u8bbf\u95ee chls.pro\/ssl \u4e0b\u8f7d\u8bc1\u4e66\u5e76\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<h5>\u8bbe\u7f6e\u4ee3\u7406<\/h5>\n<p>\u624b\u673a\u5728\u8fde\u63a5 Wi-Fi \u7684\u60c5\u51b5\u4e0b\uff0c\u901a\u8fc7\u70b9\u51fb Wi-Fi \u540d\u6700\u540e\u7684\u8be6\u60c5\u6309\u94ae\u8fdb\u5165\u8be6\u60c5\u754c\u9762\uff0c\u5c06 HTTP \u4ee3\u7406\u8bbe\u7f6e\u4e3a\u624b\u52a8\uff0c\u5e76\u6839\u636e Charles \u7684\u5f39\u7a97\u5c06 ip \u548c \u7aef\u53e3\u586b\u5165\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images.aberlt.com\/2017-11-30-wifi_detail.jpg\" alt=\"\" \/><\/p>\n<blockquote>\n<p>\u6ce8\u610f\uff1a<br \/>\n\u4ee3\u7406\u914d\u7f6e\u5b8c\u6210\u4e4b\u540e\uff0cCharles \u4f1a\u5f39\u51fa\u4e00\u4e2a\u7a97\u53e3\u63d0\u793a\u662f\u5426\u4fe1\u4efb\u624b\u673a ip \u7684\u8bf7\u6c42\uff0c\u6b64\u65f6\u5e94\u9009\u62e9 \u201cAllow\u201d\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<\/blockquote>\n<p><img decoding=\"async\" src=\"http:\/\/images.aberlt.com\/2017-11-30-charles_tips_for_mobile_install.jpg\" alt=\"\" \/><\/p>\n<h5>\u4e0b\u8f7d\u5b89\u88c5\u8bc1\u4e66<\/h5>\n<p>\u4ee3\u7406\u8bbe\u7f6e\u5b8c\u6210\u4e4b\u540e\uff0c\u901a\u8fc7 Safari \u8bbf\u95ee chls.pro\/ssl \u5373\u53ef\u4e0b\u8f7d\u8bc1\u4e66\uff0c\u8bc1\u4e66\u4e0b\u8f7d\u5b8c\u6210\u65f6\u4f1a\u5f39\u51fa\u5b89\u88c5\u8bc1\u4e66\u7684\u7a97\u53e3\uff0c\u70b9\u51fb\u5b89\u88c5\u5373\u53ef\u3002\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images.aberlt.com\/2017-11-30-mobile_install_charles_proxy.jpg\" alt=\"\" \/><\/p>\n<hr \/>\n<blockquote>\n<p>\u6ce8\u610f\uff1a<br \/>\n\u4ee5\u4e0a\u6a21\u62df\u5668\u548c\u624b\u673a\u5b89\u88c5\u8bc1\u4e66\u7684\u6b65\u9aa4\u9002\u7528\u4e8e iOS 9 \u53ca\u4ee5\u4e0b\u7684\u7cfb\u7edf\uff0c\u4e5f\u662f\u7f51\u4e0a\u5f88\u591a\u6559\u7a0b\u5305\u542b\u7684\u5185\u5bb9\u3002<\/p>\n<\/blockquote>\n<p>\u5728 iOS 10 \u548c iOS 11 \u7cfb\u7edf\u4e0a\u6211\u4eec\u8fd8\u9700\u8981\u8fdb\u884c<strong>\u8bc1\u4e66\u4fe1\u4efb\u8bbe\u7f6e<\/strong>\uff0c\u8fd9\u4e2a\u9009\u9879\u6bd4\u8f83\u9690\u853d\uff0c\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u5165\uff1a<\/p>\n<blockquote>\n<p>\u8bbe\u7f6e -&gt; \u901a\u7528 -&gt; \u5173\u4e8e\u672c\u673a -&gt; \u8bc1\u4e66\u4fe1\u4efb\u8bbe\u7f6e<\/p>\n<\/blockquote>\n<p><img decoding=\"async\" src=\"http:\/\/images.aberlt.com\/2017-11-30-about_in_phone.jpg\" alt=\"\" \/><\/p>\n<p>\u627e\u5230 Charles \u7684\u8bc1\u4e66\uff0c\u6253\u5f00\u4fe1\u4efb\u5f00\u5173\u5373\u53ef\u3002\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images.aberlt.com\/2017-11-30-certificate_trust_settings.jpg\" alt=\"\" \/><\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u603b\u800c\u8a00\u4e4b\uff0c\u5728\u914d\u7f6e\u7684\u8fc7\u7a0b\u4e2d\u7279\u522b\u6ce8\u610f iOS 10 \u548c iOS 11 \u7cfb\u7edf\u4e0a\u8fd8\u9700\u8981\u5728\u5173\u4e8e\u672c\u673a\u4e2d\u8fdb\u884c\u8bc1\u4e66\u4fe1\u4efb\u8bbe\u7f6e\u3002<br \/>\n\u5230\u6b64\u4e3a\u6b62\u6211\u4eec\u5c31\u53ef\u4ee5\u8fdb\u884c https \u6293\u5305\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f51\u4e0a\u6709\u5f88\u591a\u5173\u4e8e\u4f7f\u7528 Charles \u5bf9 http \u548c https \u8fdb\u884c\u6293\u5305\u7684\u6559\u7a0b\u3002\u5176\u4e2d\u5510\u5de7\u5927\u4f6c\u5199\u7684\u8fd9\u7bc7[Charles \u4ece\u5165\u95e8\u5230\u7cbe\u901a](http:\/\/blog.devtang.com\/2015\/11\/14\/charles-introduction\/)\u662f\u672c\u4eba\u770b\u8fc7\u7684\u8f83\u4e3a\u8be6\u7ec6\u7684\u5173\u4e8e http \u6293\u5305\u7684\u6559\u7a0b\uff0c\u540c\u65f6\u4e5f\u4ecb\u7ecd\u4e86\u5f88\u591a\u5173\u4e8e Charles \u7684\u4f7f\u7528\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u7b80\u5355\u5730\u8bf4\u660e\u5982\u4f55\u8fdb\u884c\u914d\u7f6e\u3002<br \/>\n\u800c\u5173\u4e8e https \u6293\u5305\u7684\u6559\u7a0b\uff0c\u76ee\u524d\u672c\u4eba\u770b\u5230\u7684\u5927\u591a\u6570\u6559\u7a0b\u90fd\u53ea\u9002\u7528\u4e8e iOS 9 \u53ca\u4ee5\u4e0b\u7248\u672c\uff0c\u5728 iOS 10 \u53ca iOS 11 \u7cfb\u7edf\u4e0a\u62e6\u622a\u5230\u7684\u8bf7\u6c42\u53ea\u80fd\u770b\u5230\u4e71\u7801\u3002\u56e0\u6b64\uff0c\u5199\u4e0b\u8fd9\u7bc7\u6587\u7ae0\u505a\u4e2a\u8bb0\u5f55\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[6,8,7],"_links":{"self":[{"href":"https:\/\/www.aberlt.com\/index.php\/wp-json\/wp\/v2\/posts\/65"}],"collection":[{"href":"https:\/\/www.aberlt.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aberlt.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aberlt.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aberlt.com\/index.php\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":2,"href":"https:\/\/www.aberlt.com\/index.php\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"predecessor-version":[{"id":67,"href":"https:\/\/www.aberlt.com\/index.php\/wp-json\/wp\/v2\/posts\/65\/revisions\/67"}],"wp:attachment":[{"href":"https:\/\/www.aberlt.com\/index.php\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aberlt.com\/index.php\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aberlt.com\/index.php\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}