{"id":736,"date":"2020-12-10T19:32:10","date_gmt":"2020-12-10T11:32:10","guid":{"rendered":"https:\/\/chenbing.name\/blog\/?p=736"},"modified":"2020-12-10T19:44:07","modified_gmt":"2020-12-10T11:44:07","slug":"%e8%81%8a%e8%81%8aios%e4%b8%8b%e6%9c%89%e7%9a%84%e7%bd%91%e9%a1%b5%e6%89%93%e5%bc%80%e5%be%88%e6%85%a2%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/chenbing.name\/blog\/736\/","title":{"rendered":"\u804a\u804aiOS\u4e0b\u6709\u7684\u7f51\u9875\u6253\u5f00\u5f88\u6162\u7684\u95ee\u9898"},"content":{"rendered":"<h4 id=\"wiz-toc-0-925759146\"><span class=\"ez-toc-section\" id=\"%E8%B5%B7%E5%9B%A0\"><\/span>\u8d77\u56e0<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u6700\u521d\uff0c\u793e\u533a\u7684\u7f51\u9875\u5728iPhone\u7684\u5fae\u4fe1\u91cc\u9762\u6253\u5f00\u4e00\u76f4\u6bd4\u8f83\u6162\uff0c\u4e00\u5f00\u59cb\u6ca1\u5728\u610f\uff0c\u4ee5\u4e3a\u662f\u670d\u52a1\u5668\u5728\u9999\u6e2f\u7684\u9505\u3002\u7a81\u7136\u6709\u4e00\u5929\u6211\u5728\u5b89\u5353\u624b\u673a\u4e0a\u6253\u5f00\u53d1\u73b0\u6bd4iPhone\u4e0a\u5feb\u5f97\u591a\uff0c\u6211\u5c31\u5bf9\u6bd4\u6d4b\u8bd5\u4e86\u597d\u51e0\u6b21\uff0c\u90fd\u662f\u5982\u6b64\u3002<\/p>\n<h4 id=\"wiz-toc-1-450797340\"><span class=\"ez-toc-section\" id=\"%E5%88%9D%E6%AD%A5%E7%9A%84%E5%8E%9F%E5%9B%A0%E5%8F%8A%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95\"><\/span>\u521d\u6b65\u7684\u539f\u56e0\u53ca\u89e3\u51b3\u529e\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><img decoding=\"async\" title=\"\" src=\"https:\/\/markdown-upload.oss-cn-shanghai.aliyuncs.com\/markdown-upload.oss-cn-shanghai.aliyuncs.comimage-20201210171916715.png\" alt=\"image-20201210171916715\" \/><\/p>\n<p>\u7ed3\u5408\u6700\u8fd1\u7fa4\u91cc\u63a5\u8fde\u4e24\u4e09\u4e2a\u7fa4\u53cb\u8bf4<code>Let's Encrypt<\/code>\u88ab\u5899\u5bfc\u81f4\u7f51\u9875\u53d8\u6162\u7684\u95ee\u9898\uff0c\u5c31\u4ee5\u4e3a\u662f<code>Let's Encrypt<\/code>\u7684\u9505\u3002\u7ba1\u7406\u7ec4\u5c31\u628a<code>Let's Encrypt<\/code>\u6362\u6210\u522b\u7684\u57df\u540d\u7684\u8bc1\u4e66\uff0c\u4f46\u662f\u5b9e\u9645\u4e0a\u6211\u4e2a\u4eba\u611f\u89c9iPhone\u6ca1\u6709\u591a\u5927\u53d8\u5316\u3002<\/p>\n<h4 id=\"wiz-toc-2-2025471651\"><span class=\"ez-toc-section\" id=\"%E5%8F%91%E7%8E%B0%E4%BA%86%E6%9B%B4%E5%A4%9A\"><\/span>\u53d1\u73b0\u4e86\u66f4\u591a<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u53c8\u8fc7\u4e86\u51e0\u5929\uff0ciPhone\u6253\u5f00\u786e\u5b9e\u8ba9\u6211\u53d7\u4e0d\u4e86\uff0c\u6211\u53c8gg\u4e86\u4e00\u4e0b\uff0c\u53d1\u73b0\u4e0b\u9762\u6587\u7ae0\u3002<\/p>\n<p><a href=\"https:\/\/my.oschina.net\/swingcoder\/blog\/4277977\">https:\/\/my.oschina.net\/swingcoder\/blog\/4277977<\/a><\/p>\n<p>\u6587\u5185\u63d0\u5230\u4e0d\u4ec5\u4ec5\u662f<code>Let's Encrypt<\/code>\u88ab\u5899\u7684\u95ee\u9898\uff0ciOS\u5e73\u53f0\u8fd8\u6d89\u53ca\u5bf9CA\u8bc1\u4e66\u7684\u6709\u6548\u6027\u8fdb\u884c\u9a8c\u8bc1\u3002\u4e00\u770b\u8fd9\u4e2a\u9a8c\u8bc1\u5c31\u7275\u626f\u51fa\u4e86<code>ssl<\/code>\u7684<code>ocsp stapling<\/code>\u3002<\/p>\n<p>\u773c\u5c16\u7684\u540c\u5b66\u5e94\u8be5\u770b\u5230\u4e86\uff0c\u4e0a\u56fe\u201c\u897f\u74dc\u5934\u201d\u7fa4\u53cb\u63d0\u5230\u4e86OCSP\u7684\u95ee\u9898\uff0c\u60ed\u6127\uff0c\u56e0\u4e3a\u5f53\u65f6\u4e0d\u61c2\u8fd9\u4e2a\uff0c\u4ee5\u4e3a\u53ea\u662flet\u88ab\u5899\u7684\u95ee\u9898\uff0c\u6240\u4ee5\u5c31\u5ffd\u7565\u4e86\u3002<\/p>\n<p>\u6587\u5185\u8bf4\uff1a<\/p>\n<blockquote><p>ocsp stapling\u662f\u4ec0\u4e48\uff0c\u7b80\u5355\u7684\u8bb2\uff0c\u5c31\u662f\u5c06\u539f\u6765\u7531\u5404\u4e2a\u7528\u6237\u53bb\u53d1\u8d77\u9a8c\u8bc1\u8bc1\u4e66\u6709\u6548\u6027\u7684\u8bf7\u6c42\uff0c\u7531webserver\u4ee3\u52b3\u4e86\uff0c\u8fd9\u6837\u5c31\u4e0d\u7528\u6bcf\u4e2a\u7528\u6237\u90fd\u53bb\u8fdeCA\u7684\u9a8c\u8bc1\u670d\u52a1\u5668\u4e86\uff0c\u76f8\u5bf9\u6765\u8bf4\u8bbf\u95ee\u901f\u5ea6\u5c31\u4f1a\u52a0\u5feb\u4e0d\u4e86\u3002<\/p><\/blockquote>\n<p>\u597d\u5427\uff0c\u5728\u8bf4\u5f97\u86ee\u6709\u9053\u7406\u7684\uff0c\u54b1\u7528\u5728nginx\u4e0a\u914d\u7f6e<code>ocsp stapling<\/code>\uff1a<\/p>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" style=\"box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: #f8f8f8; position: relative !important; border: 1px solid #e7eaed; border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: #333333; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;\">ssl_stapling on;\nssl_stapling_verify on;\nresolver 233.5.5.5 233.6.6.6 8.8.8.8 4.4.4.4 202.96.134.133 valid=300s;\nresolver_timeout 2s;\nssl_trusted_certificate \/etc\/letsencrypt\/live\/your.domain.com\/fullchain.pem;\nssl_session_cache shared:SSL:50m;\nssl_session_timeout 180m;<\/pre>\n<p>\u914d\u7f6e\u597d\u4e00\u6d4b\u8bd5\uff0ciPhone\u4e0a\u6253\u5f00\u793e\u533a\u771f\u660e\u663e\u5feb\u4e86\uff0c\u5b8c\u7f8e\u3002<\/p>\n<h4 id=\"wiz-toc-3-184363124\"><span class=\"ez-toc-section\" id=\"%E5%AE%8C%E7%BE%8E%E8%90%BD%E5%B9%95%EF%BC%9F\"><\/span>\u5b8c\u7f8e\u843d\u5e55\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u5230\u8fd9\u91cc\uff0c\u6211\u4e5f\u4ee5\u4e3a\u95ee\u9898\u90fd\u89e3\u51b3\u4e86\uff0c\u4f46\u662f\u4ecd\u7136\u6709\u4e00\u4e2a\u7591\u95ee\u4e00\u76f4\u5728\u6211\u8111\u6d77\u91cc\u9762\u6325\u4e4b\u4e0d\u53bb\uff1a<\/p>\n<ul>\n<li>\u4e3a\u4ec0\u4e48Android\u6ca1\u6709\u8fd9\u4e2a\u95ee\u9898\uff1f<\/li>\n<\/ul>\n<p>\u4eca\u5929\uff0c\u9b3c\u4f7f\u795e\u5dee\u7684\uff0c\u53c8\u914d\u7f6e\u4e00\u4e2a\u7f51\u7ad9\u7684ssl\uff0c\u5728\u7814\u7a76\u7684\u65f6\u5019\u53d1\u73b0\u4e86<code>\u970d\u70ac<\/code>\u7684\u4e00\u7bc7\u535a\u6587\uff1a<\/p>\n<p><a href=\"https:\/\/jhuo.ca\/post\/ocsp-stapling-letsencrypt\/\">https:\/\/jhuo.ca\/post\/ocsp-stapling-letsencrypt\/<\/a><\/p>\n<blockquote><p>Android\u6ca1\u6709\u95ee\u9898\u7684\u539f\u56e0\u662f\uff0cGoogle\u4e0d\u6ee1\u610focsp\u8fd9\u4e2a\u89e3\u51b3\u65b9\u6848\uff0c\u6240\u4ee5\u6240\u6709google\u7684\u4ea7\u54c1\uff0c\u65e0\u8bba\u662fandroid\u8fd8\u662fchrome\u90fd\u4e0d\u8fdb\u884cocsp\u68c0\u67e5\u3002<\/p><\/blockquote>\n<p>\u53e6\u5916\u4ed6\u8fd8\u63d0\u5230\u4e86:<\/p>\n<blockquote><p>\u4e00\u4e2aFlutter\u5199\u7684app\u5728iOS\u4e0a\u5076\u5c14\u4f1a\u53d1\u751f\u4e86\u754c\u9762\u5361\u987f\u751a\u81f3\u51bb\u7ed310\u591a\u79d2\uff0c\u4f46\u5728Android\u6b63\u5e38\u3002<\/p><\/blockquote>\n<p>\u7ec8\u4e8e\uff0c\u8fd9\u4e2a\u95ee\u9898\u5230\u4eca\u5929\u624d\u771f\u6b63\u5b8c\u7f8e\u89e3\u51b3\u4e86\u6211\u7684\u7591\u60d1\u3002<\/p>\n<p>\u518d\u603b\u7ed3\u4e00\u4e0b\uff1a<\/p>\n<blockquote><p>1\u3001\u4f7f\u7528\u56fd\u5185\u7684ssl\u8bc1\u4e66\uff0c\u6362\u6389Let&#8217;s Encrypt \u8bc1\u4e66\uff0c\u56e0\u4e3a\u4ed6\u4f7f\u7528akamai cdn\u5206\u53d1ocsp\u72b6\u6001\uff0cakamai.net\u57fa\u672c\u88ab\u5899\u3002<br \/>\n2\u3001\u670d\u52a1\u5f00\u542fOCSP Stapling\uff0c\u56e0\u4e3a\u80fd\u51cf\u5c11http\u8bf7\u6c42\u6b21\u6570\uff0c\u4f18\u5316\u901f\u5ea6\u3002<br \/>\n3\u3001\u963f\u91cc\u4e91\u817e\u8baf\u4e91\u90fd\u6709\u56fd\u5185\u7684\u4e00\u5e74\u7684\u514d\u8d39\u8bc1\u4e66\u3002\u6211\u4f7f\u7528\u7684<a href=\"https:\/\/freessl.cn\/\">https:\/\/freessl.cn\/<\/a>\uff0c\u6709\u4e9a\u4fe1\u514d\u8d39\u4e00\u5e74\uff0c\u63a8\u8350\u3002<\/p><\/blockquote>\n<p>\u8bb0\u5f55\u5206\u4eab\u4e4b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8d77\u56e0 \u6700\u521d\uff0c\u793e\u533a\u7684\u7f51\u9875\u5728iPhone\u7684\u5fae\u4fe1\u91cc\u9762\u6253\u5f00\u4e00\u76f4\u6bd4\u8f83\u6162\uff0c\u4e00\u5f00\u59cb\u6ca1\u5728\u610f\uff0c\u4ee5\u4e3a\u662f\u670d\u52a1\u5668\u5728\u9999\u6e2f\u7684\u9505\u3002\u7a81\u7136\u6709\u4e00\u5929\u6211\u5728\u5b89\u5353\u624b\u673a\u4e0a\u6253\u5f00\u53d1\u73b0\u6bd4iPhone\u4e0a\u5feb\u5f97\u591a\uff0c\u6211\u5c31\u5bf9\u6bd4\u6d4b\u8bd5\u4e86\u597d\u51e0\u6b21\uff0c\u90fd\u662f\u5982\u6b64\u3002 \u521d\u6b65\u7684\u539f\u56e0\u53ca\u89e3\u51b3\u529e\u6cd5 \u7ed3\u5408\u6700\u8fd1\u7fa4\u91cc\u63a5\u8fde\u4e24\u4e09\u4e2a\u7fa4\u53cb\u8bf4Let&#8217;s Encrypt\u88ab\u5899\u5bfc\u81f4\u7f51\u9875\u53d8\u6162\u7684\u95ee\u9898\uff0c\u5c31\u4ee5\u4e3a\u662fLet&#8217;s Encrypt\u7684\u9505\u3002\u7ba1\u7406\u7ec4\u5c31\u628aLet&#8217;s Encr&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[90],"tags":[96,97,98,99,100],"class_list":["post-736","post","type-post","status-publish","format-standard","hentry","category-others_skill","tag-https","tag-ios","tag-lets-encrypt","tag-ocsp-stapling","tag-ssl"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/chenbing.name\/blog\/wp-json\/wp\/v2\/posts\/736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chenbing.name\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chenbing.name\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chenbing.name\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chenbing.name\/blog\/wp-json\/wp\/v2\/comments?post=736"}],"version-history":[{"count":2,"href":"https:\/\/chenbing.name\/blog\/wp-json\/wp\/v2\/posts\/736\/revisions"}],"predecessor-version":[{"id":738,"href":"https:\/\/chenbing.name\/blog\/wp-json\/wp\/v2\/posts\/736\/revisions\/738"}],"wp:attachment":[{"href":"https:\/\/chenbing.name\/blog\/wp-json\/wp\/v2\/media?parent=736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chenbing.name\/blog\/wp-json\/wp\/v2\/categories?post=736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chenbing.name\/blog\/wp-json\/wp\/v2\/tags?post=736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}