{"id":4860,"date":"2018-02-21T21:05:48","date_gmt":"2018-02-21T13:05:48","guid":{"rendered":"https:\/\/www.sunnyblog.net\/blog\/?p=4860"},"modified":"2021-07-01T21:54:47","modified_gmt":"2021-07-01T13:54:47","slug":"%e7%bb%88%e4%ba%8e%e5%8f%91%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%88%a0%e9%99%a4%e4%bf%a1%e4%bb%bb%e9%87%8c%e6%ae%8b%e7%95%99%e8%af%81%e4%b9%a6%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.sunnyblog.net\/blog\/archives\/4860","title":{"rendered":"\u7ec8\u4e8e\u53d1\u73b0\u4e86\u4e00\u4e2a\u5220\u9664\u4fe1\u4efb\u91cc\u6b8b\u7559\u8bc1\u4e66\u7684\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u4e4b\u524d\u7528Shadowrocket\u7684HTTPS\u89e3\u5bc6\u9700\u8981\u5bfc\u5165\u8bc1\u4e66\u529f\u80fd\uff0c\u4f46\u662f\u6362iPhone X\u7684\u65f6\u5019\uff0c\u6062\u590d\u5907\u4efd\u4e4b\u540e\u53d1\u73b0\u8bc1\u4e66\u6240\u4f9d\u8d56\u7684\u63cf\u8ff0\u6587\u4ef6\u6ca1\u6709\u88ab\u6062\u590d\u8fc7\u6765\uff0c\u4f46\u662f\u4fe1\u4efb\u8bc1\u4e66\u5c45\u7136\u8fd8\u6b8b\u7559\u5728\u91cc\u9762\u5220\u4e0d\u6389\uff0c\u867d\u8bf4\u5ffd\u7565\u6389\u4e0d\u6253\u5f00\u4fe1\u4efb\u5f00\u5173\u4e5f\u6ca1\u95ee\u9898\uff0c\u4f46\u662f\u6bd4\u8f83\u8fd8\u662f\u4f1a\u903c\u6b7b\u5f3a\u8feb\u75c7\u7684\u3002\u7ffb\u67e5\u7f51\u7edc\u548c\u8be2\u95ee\u4f5c\u8005\u90fd\u4e00\u76f4\u8bef\u89e3\uff0c\u7ec8\u4e8e\u4eca\u5929\u5728Telegram\u4e0a\u9762Shadowrocket\u7684\u4f5c\u8005\u63a8\u9001\u4e86\u8fd9\u4e2a\u94fe\u63a5\uff0c\u95ee\u9898\u7ec8\u4e8e\u5f97\u5230\u4e86\u89e3\u51b3\uff01<\/p>\n\n\n\n<p><a href=\"https:\/\/apple.stackexchange.com\/questions\/300203\/how-can-i-delete-a-certificate-that-got-restored-from-a-backup-under-ios-10-11\">https:\/\/apple.stackexchange.com\/questions\/300203\/how-can-i-delete-a-certificate-that-got-restored-from-a-backup-under-ios-10-11<\/a><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>With iOS, certificates are installed as part of profiles. Deleting a certificate means removing the profile.<\/p><p>When an iPhone with profiles is backed up, and then the backup is restored to a new device, the profiles are no longer visible under Settings &gt; General &gt; Profiles. So, they can&#8217;t be deleted via the usual way.<\/p><p>The certificates however get restored to the device. One can see them e.g. under Settings &gt; General &gt; About &gt; Certificate Trust Settings.<\/p><p>Hence my question: How can these certificates be deleted from the device?<\/p><p>I found a certificate in my iOS device&#8217;s Certificate Trust Settings. And it was not be found in Profiles. Finally I remove it by add the cert file again, and then I can found and remove it in Profiles.<\/p><p>At first, I can&#8217;t found the cert file, because this CA was installed years ago. So I did these things:<\/p><p>Backup iPhone to Mac, View backup file by some software (I used iMazing)<br>Find TrustStore.sqlite3 in Backup\/KeychainDomain\/ and export it to HOME DIR.<br>Use this project https:\/\/github.com\/ADVTOOLS\/ADVTrustStore to export certfile<\/p><p>.\/iosCertTrustManager.py -t ~\/TrustStore.sqlite3 -e ~\/foo.crt<br>Airdrop or Email this crt file to iOS device, and install it.<br>Find it in Settings &gt; General &gt; Profiles and Remove it.<br>It disappear in &#8220;Certificate Trust Settings&#8221;<br>Done.<\/p><\/blockquote>\n\n\n\n<p>GitHub\u4e0a\u9762\u7684\u8fd9\u4e2a<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/ADVTOOLS\/ADVTrustStore\" target=\"_blank\">ADVTrustStore<\/a>\u5de5\u7a0b\u5c45\u7136\u8fd8\u6709\u5728\u66f4\u65b0\uff0c\u6709\u9274\u4e8e\u6b64\uff0c\u6211\u628a\u6211\u52302021\u5e747\u67081\u65e5\u8fd8\u80fd\u7528\uff08\u5b9e\u6d4b\u53ef\u4ee5\u89e3\u5f00iOS 14.6\u5907\u4efd\u7684TrustStore.sqlite3\u6587\u4ef6\uff09\u7684\u65e7\u7248\u672c\u6253\u5305\u5728\u8fd9\u91cc\u5427\u3002<\/p>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/www.sunnyblog.net\/blog\/wp-content\/uploads\/2021\/07\/ADVTrustStore-master.zip\">ADVTrustStore-master.zip<\/a><a href=\"https:\/\/www.sunnyblog.net\/blog\/wp-content\/uploads\/2021\/07\/ADVTrustStore-master.zip\" class=\"wp-block-file__button\" download>\u4e0b\u8f7d<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e4b\u524d\u7528Shadowrocket\u7684HTTPS\u89e3\u5bc6\u9700\u8981\u5bfc\u5165\u8bc1\u4e66\u529f\u80fd\uff0c\u4f46\u662f\u6362iPhone X\u7684\u65f6\u5019\uff0c\u6062\u590d\u5907\u4efd\u4e4b\u540e\u53d1\u73b0 &hellip; <a href=\"https:\/\/www.sunnyblog.net\/blog\/archives\/4860\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u7ec8\u4e8e\u53d1\u73b0\u4e86\u4e00\u4e2a\u5220\u9664\u4fe1\u4efb\u91cc\u6b8b\u7559\u8bc1\u4e66\u7684\u65b9\u6cd5<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","footnotes":""},"categories":[3,6,5],"tags":[],"class_list":["post-4860","post","type-post","status-publish","format-standard","hentry","category-www","category-pda","category-develop"],"_links":{"self":[{"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/posts\/4860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/comments?post=4860"}],"version-history":[{"count":4,"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/posts\/4860\/revisions"}],"predecessor-version":[{"id":6047,"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/posts\/4860\/revisions\/6047"}],"wp:attachment":[{"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/media?parent=4860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/categories?post=4860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/tags?post=4860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}