{"id":8451,"date":"2019-02-16T12:18:42","date_gmt":"2019-02-16T04:18:42","guid":{"rendered":"https:\/\/jpuyy.com\/?p=8451"},"modified":"2019-02-16T12:25:42","modified_gmt":"2019-02-16T04:25:42","slug":"chrome-self-signed-certificate-popup-autoselectcertificateforurls","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=8451","title":{"rendered":"\u89e3\u51b3\u70e6\u4eba\u7684 chrome \u9009\u62e9\u8bc1\u4e66\u63d0\u793a"},"content":{"rendered":"<p>\u5f53\u4f7f\u7528\u81ea\u7b7e\u7684\u8bc1\u4e66\u65f6\uff0cchrome \u4f1a\u4e0d\u505c\u5730\u63d0\u793a\u9009\u62e9\u8bc1\u4e66<\/p>\n<p>\u5df2\u7ecf\u88ab\u70e6\u4e86\u51e0\u4e2a\u6708\u4e86\uff0c\u6bcf\u6b21\u9009\u62e9\u5f88\u6d6a\u8d39\u65f6\u95f4\u3002\u8fd8\u597d chrome \u63d0\u4f9b\u4e86\u81ea\u52a8\u9009\u62e9\u8bc1\u4e66 policy\u3002<\/p>\n<p>\u4e3a\u540d\u5b57\u4e3a AutoSelectCertificateForUrls \u7684 policy \u521b\u5efa\u89c4\u5219<\/p>\n<p>mac OSX \u7cfb\u7edf\u8bbe\u7f6e<\/p>\n<pre># \u6e05\u7a7a\u8fd9\u4e2a\u9009\u9879\u7684\u5185\u5bb9\ndefaults write com.google.Chrome AutoSelectCertificateForUrls -array\n# \u8bbe\u7f6e policy\ndefaults write com.google.Chrome AutoSelectCertificateForUrls -array-add -string '{\"pattern\":\"https:\/\/[*.]corp.foobar.com\",\"filter\":{\"ISSUER\":{\"CN\":\"Foobar Internal Intermediate CA\"}}}'\n<\/pre>\n<p>windows \u65b0\u5efa\u4e00\u4e2a .reg \u6ce8\u518c\u8868\u6587\u4ef6\uff0c\u4e4b\u540e\u53cc\u51fb\u5bfc\u5165<\/p>\n<pre>Windows Registry Editor Version 5.00\n\n[HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Google\\Chrome\\AutoSelectCertificateForUrls]\n\"1\"=\"{\\\"pattern\\\":\\\"https:\/\/[*.]corp.foobar.com\\\",\\\"filter\\\":{\\\"ISSUER\\\":{\\\"CN\\\":\\\"Foobar Internal Intermediate CA\\\"}}}\"\n\n<\/pre>\n<p>\u68c0\u67e5 policy \u662f\u5426\u751f\u6548\uff0c\u5730\u5740\u680f\u8f93\u5165 chrome:\/\/policy<\/p>\n<p>\u91cd\u65b0\u8f7d\u5165 policy\uff0c\u5728\u6700\u53f3\u4fa7\u7684\u72b6\u6001\u91cc\u770b\u5230\u662f ok \u7684\u5219\u751f\u6548(\u5982\u679c\u4e0a\u9762\u5199\u9519\uff0c\u68c0\u67e5 json \u8bed\u6cd5\uff0c\u4ee5\u53ca CN\uff0cCN \u662f iusser \u7684 common name)\u3002<\/p>\n<p>\u5b98\u65b9\u6587\u6863: https:\/\/chromium.org\/administrators\/policy-list-3#AutoSelectCertificateForUrls<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u4f7f\u7528\u81ea\u7b7e\u7684\u8bc1\u4e66\u65f6\uff0cchrome \u4f1a\u4e0d\u505c\u5730\u63d0\u793a\u9009\u62e9\u8bc1\u4e66 \u5df2\u7ecf\u88ab\u70e6\u4e86\u51e0\u4e2a\u6708\u4e86\uff0c\u6bcf\u6b21\u9009\u62e9\u5f88\u6d6a\u8d39\u65f6\u95f4\u3002\u8fd8\u597d chrome \u63d0\u4f9b\u4e86\u81ea\u52a8\u9009\u62e9\u8bc1\u4e66 policy\u3002 \u4e3a\u540d\u5b57\u4e3a AutoSelectCertificateForUrls \u7684 policy \u521b\u5efa\u89c4\u5219 mac OSX \u7cfb\u7edf\u8bbe\u7f6e # \u6e05\u7a7a\u8fd9\u4e2a\u9009\u9879\u7684\u5185\u5bb9 defaults write com.google.Chrome AutoSelectCertificateForUrls -array # \u8bbe\u7f6e policy defaults write com.google.Chrome AutoSelectCertificateForUrls -array-add -string &#8216;{&#8220;pattern&#8221;:&#8221;https:\/\/[*.]corp.foobar.com&#8221;,&#8221;filter&#8221;:{&#8220;ISSUER&#8221;:{&#8220;CN&#8221;:&#8221;Foobar Internal Intermediate CA&#8221;}}}&#8217; windows \u65b0\u5efa\u4e00\u4e2a .reg \u6ce8\u518c\u8868\u6587\u4ef6\uff0c\u4e4b\u540e\u53cc\u51fb\u5bfc\u5165 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Google\\Chrome\\AutoSelectCertificateForUrls] &#8220;1&#8221;=&#8221;{\\&#8221;pattern\\&#8221;:\\&#8221;https:\/\/[*.]corp.foobar.com\\&#8221;,\\&#8221;filter\\&#8221;:{\\&#8221;ISSUER\\&#8221;:{\\&#8221;CN\\&#8221;:\\&#8221;Foobar Internal Intermediate CA\\&#8221;}}}&#8221; \u68c0\u67e5 policy \u662f\u5426\u751f\u6548\uff0c\u5730\u5740\u680f\u8f93\u5165 chrome:\/\/policy \u91cd\u65b0\u8f7d\u5165 policy\uff0c\u5728\u6700\u53f3\u4fa7\u7684\u72b6\u6001\u91cc\u770b\u5230\u662f ok [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[171],"tags":[],"class_list":["post-8451","post","type-post","status-publish","format-standard","hentry","category-macos"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/8451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8451"}],"version-history":[{"count":6,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/8451\/revisions"}],"predecessor-version":[{"id":8540,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/8451\/revisions\/8540"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}