{"id":1736,"date":"2018-07-01T00:00:17","date_gmt":"2018-06-30T16:00:17","guid":{"rendered":"https:\/\/zoco.me\/?p=145"},"modified":"2018-07-01T00:00:17","modified_gmt":"2018-06-30T16:00:17","slug":"upgrade-https-to-tlsv1-3","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/upgrade-https-to-tlsv1-3.html","title":{"rendered":"\u5c06HTTPS\u5347\u7ea7\u5230\u4e86TLSv1.3"},"content":{"rendered":"<p>\u6ca1\u7ba1\u4f4f\u6211\u8fd9\u53cc\u624b\uff0c\u53c8\u6298\u817e\u4e86\u4e0b\uff0c\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1\u4e86\u4e0bNginx\uff0c\u8fd9\u6b21\u5347\u7ea7\u7ed9Nginx\u52a0\u4e0a\u4e86TLS 1.3\u652f\u6301\uff0c\u5e76\u52a0\u5165\u4e86PageSpeed\uff0c\u987a\u5e26\u7f16\u8bd1\u8fdb\u4e86ngx_http_google_filter_module\u3001ngx_http_substitutions_filter_module\u3001ngx_cache_purge\u8fd9\u51e0\u4e2a\u6a21\u5757\uff0c\u4e0d\u77e5\u9053\u4ec0\u4e48\u65f6\u5019\u6ca1\u6709\u9ed8\u8ba4\u5f00\u542f\u7684http_image_filter_module\u4e5f\u987a\u624b\u7ed9\u5b83\u5f00\u542f\u4e86\uff0c\u7f16\u8bd1\u8fc7\u7a0b\u5148\u4e0d\u8bf4\uff0c\u6709\u7a7a\u6574\u7406\u4e0b\u4e13\u95e8\u5199\u4e00\u7bc7\u6587\u7ae0\u505a\u4e0b\u8bb0\u5f55\uff0c\u5148\u8bf4\u8bf4TLS 1.3\u7684\u5347\u7ea7\u53ca\u5347\u7ea7\u8fc7\u7a0b\u8e29\u5230\u7684\u51e0\u4e2a\u5751\u3002<br \/>\n<!--more--><\/p>\n<p>\u524d\u6bb5\u65f6\u95f4\u5c31\u8bf4TLS 1.3\u6b63\u5f0f\u5b9a\u7a3f\u4e86\uff0c\u4f5c\u4e3a\u4e0d\u6298\u817e\u4e0d\u8212\u670d\u65af\u57fa\uff0c\u65e9\u65e9\u5c31\u60f3\u5347\u7ea7\u8bd5\u8bd5\u4e86\uff0c\u4f46\u662f\u521a\u51fa\u90a3\u6bb5\u65f6\u95f4\uff0c\u5f88\u591a\u6d4f\u89c8\u5668\u90fd\u4e0d\u652f\u6301\uff0c\u60f3\u4e86\u60f3\u5c31\u5fcd\u4e86\u3002\u8fd9\u4e48\u4e00\u653e\u5c31\u662f3\u4e2a\u6708\u4e86\uff0c\u8d81\u8fd9\u51e0\u5929\u6709\u70b9\u65f6\u95f4\uff0c\u60f3\u8bd5\u8bd5TLS 1.3\uff0c\u4ee5\u53ca\u5fc3\u5fc3\u5ff5\u5ff5\u5df2\u4e45\u7684PageSpeed\uff0c\u8fd8\u6709\u53e6\u5916\u51e0\u4e2a\u529f\u80fd\uff0c\u4f60\u61c2\u7684\uff0c\u4e8e\u662f\u627e\u4e86\u4e2a\u5403\u7070\u7684VPS\uff0c\u62cd\u62cd\u7070\u914d\u7f6e\u4e86\u4e2a\u7f16\u8bd1\u73af\u5883\uff0c\u524d\u524d\u540e\u540e\u82b1\u4e86\u4e09\u56db\u4e2a\u5c0f\u65f6\uff0c\u7ec8\u4e8e\u641e\u5b9a\u4e86\u3002<\/p>\n<p>\u56e0\u4e3aTLS1.3\u8fd8\u8ddfOpenSSL\u6709\u5173\u7cfb\uff0c\u4f46\u662f\u76ee\u524d\u7684\u6b63\u5f0f\u7a33\u5b9a\u7248\u8fd8\u4e0d\u652f\u6301TLS1.3\uff0c\u6211\u7528\u7684openssl-1.1.1-pre8\u7f16\u8bd1\u7684\uff0c\u8fd9\u90e8\u5206\u53c2\u8003\u4e86\u5f88\u591a<a href=\"https:\/\/www.starduster.me\/2018\/06\/08\/build-nginx-1-15-with-tls13\/\">\u57fa\u4e8e OpenSSL 1.1.1 \u6784\u5efa\u652f\u6301 TLS 1.3 \u7684 Nginx 1.15 \u5b89\u88c5\u5305<\/a>\uff0c\u611f\u8c22\u8fd9\u4f4d\u535a\u4e3b\u7684\u6587\u7ae0\uff0c\u81f3\u4e8ePageSpeed\u7684\u7f16\u8bd1\uff0c\u53c2\u8003\u4e86\u4e0bPageSpeed\u5b98\u65b9\u6587\u6863\uff0c\u7f16\u8bd1\u8fc7\u7a0b\u8e29\u4e86\u4e0d\u77e5\u9053\u51e0\u4e2a\u5751\uff0c\u4f46\u597d\u6b79\u6700\u540e\u90fd\u89e3\u51b3\u4e86\u3002<\/p>\n<p>\u5148\u4e0a\u4e2a\u5347\u7ea7\u6210\u529f\u7684\u56fe\uff1a<br \/>\n<img decoding=\"async\" src=\"https:\/\/cloudbool.com\/archive\/wp-content\/uploads\/2018\/06\/nginx-tlsv1.3.png\" alt=\"upgrade-https-to-tlsv1-3\" \/><\/p>\n<p>Nginx\u7f16\u8bd1\u5b8c\u6210\u4e4b\u540e\uff0c\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u8001\u662f\u51fa\u73b0\u95ee\u9898\uff0c\u62ff\u4e86\u597d\u51e0\u53f0\u95f2\u7f6eVPS\u6d4b\u8bd5\u90fd\u53d1\u73b0\uff0c\u540c\u6837\u7684\u914d\u7f6e\uff0c\u5982\u679c\u53ea\u6709\u4e00\u4e2avhost\u7684\u65f6\u5019\uff0c\u5f00\u542fTLS1.3\u662f\u6ca1\u95ee\u9898\u7684\uff0c\u4f46\u662f\u5982\u679c\u914d\u7f6e\u4e0d\u4e00\u6837\uff0c\u5927\u6982\u8d85\u8fc75\u4e2avhost\uff0c\u90a3\u4e48\u5f53\u524d\u670d\u52a1\u5668\u4e0b\u7684\u6240\u6709Nginx vhost\u90fd\u4f1a\u88ab\u5f3a\u5236fallback\u5230TLS 1.2\uff0c\u4e0d\u8981\u95ee\u6211\uff0c\u6211\u4e5f\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48\uff0c\u5c31\u8fd9\u4e48\u4e00\u4e2a\u5c0f\u95ee\u9898\uff0c\u6211\u82b1\u4e86\u8d85\u8fc71\u4e2a\u534a\u5c0f\u65f6\u53bb\u89e3\u51b3\uff0c\u5c31\u7b97\u7528Google\u627e\uff0c\u4e5f\u6682\u65f6\u6ca1\u627e\u5230\u76f8\u5173\u7684\u6587\u6863\uff0c\u6700\u540e\u60f3\uff0c\u6b7b\u9a6c\u5f53\u6d3b\u9a6c\u533b\uff0c\u5c31\u628a\u6240\u6709\u7684vhost\u7684\u914d\u7f6e\u6587\u4ef6\u90fd\u6539\u6210\u4e86TLS 1.3\u7684\u76f8\u5173\u914d\u7f6e\uff0c\u8fd9\u624d\u6210\u529f\u5347\u7ea7\u5230TLS1.3\u3002<\/p>\n<p>\u8fd8\u6709\u4e00\u4e2a\u6211\u60f3\u5410\u69fd\u7684\u662f\uff0c\u672c\u6765\u60f3\u7528curl\u5728\u547d\u4ee4\u884c\u4e0b\u5f00\u542f\u5570\u55e6\u6a21\u5f0f\u8fdb\u884c\u8c03\u8bd5\u7684\uff0c\u4e00\u5f00\u59cb\u6211\u53d1\u73b0\uff0c\u65e0\u8bba\u600e\u4e48\u8bf7\u6c42\uff0c\u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u901a\u4fe1\u7528\u7684\u90fd\u662fTLS1.2\uff0c\u59cb\u7ec8\u662f\u4e0d\u7528TLS 1.3\uff0c\u540e\u6765\u60f3\u4e86\u60f3\uff0c\u662f\u4e0d\u662f\u7248\u672c\u7684\u95ee\u9898\uff0c\u653e\u72d7\u4e00\u641c\uff0c\u679c\u7136\u662f\u3002\u4ece\u5b98\u7f51\u6765\u7684\u6d88\u606f\u770b\uff0c\u6700\u65b0\u7248\u7684curl\u5df2\u7ecf\u652f\u6301TLS 1.3\uff0c\u4f46\u662f\u7531\u4e8e\u53d1\u884c\u7248\u7684\u7248\u672c\u6ede\u540e\uff0c\u76ee\u524d\u4e3b\u6d41\u7684\u51e0\u4e2a\u53d1\u884c\u7248\u81ea\u5e26\u7684\u90fd\u4e0d\u652f\u6301TLS 1.3\uff0c\u60f3\u7528\u7684\u8bdd\u8981\u81ea\u5df1\u7f16\u8bd1\uff0c\u601d\u8003\u4e86\u4e0b\u4eba\u751f\u4e4b\u540e\uff0c\u60f3\u4e86\u60f3\u8fd8\u662f\u7b97\u4e86\uff0c\u8fd8\u662f\u4e0b\u4e2a\u5f00\u53d1\u7248\u7684\u6d4f\u89c8\u5668\u7b97\u4e86\u3002<\/p>\n<p>\u7528\u624b\u5934\u7684\u51e0\u4e2a\u6d4f\u89c8\u5668\u8bd5\u4e86\u8bd5\uff0c\u76ee\u524d\uff082018.6\uff09\u51e0\u4e2a\u4e3b\u6d41\u6d4f\u89c8\u5668\u7684\u7a33\u5b9a\u7248\u672c\u8c8c\u4f3c\u90fd\u4e0d\u652f\u6301\u6b63\u5f0f\u7248\u7684TLS1.3\uff0c\u4f46\u662fChrome\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u5f00\u542f\u5bf9TLS 1.3\u7684\u8349\u7a3f\u7248\u672c\u7684\u652f\u6301\uff0c\u81f3\u4e8eFirefox\uff0c\u6211\u662f\u76f4\u63a5\u4e0b\u8f7d\u4e86\u5f00\u53d1\u7248\u7684\uff0c\u80fd\u6b63\u5e38\u67e5\u770b\u5230\uff0c\u81f3\u4e8eSafari\uff0c\u5e73\u65f6\u7528\u5f97\u4e0a\uff0c\u6ca1\u53bb\u8bd5\u54c8\u54c8\u54c8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6ca1\u7ba1\u4f4f\u6211\u8fd9\u53cc\u624b\uff0c\u53c8\u6298\u817e\u4e86\u4e0b\uff0c\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1\u4e86\u4e0bNginx\uff0c\u8fd9\u6b21\u5347\u7ea7\u7ed9Nginx\u52a0\u4e0a\u4e86TLS 1.3\u652f\u6301\uff0c\u5e76\u52a0\u5165\u4e86 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/upgrade-https-to-tlsv1-3.html\"> <span class=\"screen-reader-text\">\u5c06HTTPS\u5347\u7ea7\u5230\u4e86TLSv1.3<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[76],"class_list":["post-1736","post","type-post","status-publish","format-standard","hentry","category-tech","tag-nginx"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=1736"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1736\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=1736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=1736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=1736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}