{"id":2051,"date":"2017-10-13T15:41:52","date_gmt":"2017-10-13T11:18:16","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2051"},"modified":"2017-10-13T15:50:31","modified_gmt":"2017-10-13T07:50:31","slug":"%e9%9d%a0%e6%8e%92%e7%85%a7%e7%89%87%e5%92%8c%e6%8b%8d%e8%a7%86%e9%a2%91%e5%81%9a%e5%88%b0%e6%9c%88%e5%85%a510%e4%b8%87-13","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2051","title":{"rendered":"ssl\u52a0\u901f\u539f\u7406"},"content":{"rendered":"<p>\n\t\u7f51\u7edc\u4fe1\u606f\u5b89\u5168\u5df2\u7ecf\u6210\u4e3a\u7535\u5b50\u5546\u52a1\u548c\u7f51\u7edc\u4fe1\u606f\u4e1a\u53d1\u5c55\u7684\u4e00\u4e2a\u74f6\u9888\uff0c\u5b89\u5168\u5957\u63a5\u5c42(<a href=\"https:\/\/www.xttblog.com\/?tag=ssl\" name=\"ssl\" target=\"_blank\" title=\"ssl\">SSL<\/a>)\u534f\u8bae\u80fd\u8f83\u597d\u5730\u89e3\u51b3\u5b89\u5168\u5904\u7406\u95ee\u9898\uff0c\u800c<a href=\"https:\/\/www.xttblog.com\/?tag=ssl\" name=\"ssl\" target=\"_blank\" title=\"ssl\">SSL<\/a>\u52a0\u901f\u5668\u6709\u6548\u5730\u63d0\u9ad8\u4e86\u7f51\u7edc\u5b89\u5168\u5904\u7406\u7684\u6027\u80fd\u3002\n<\/p>\n<p>\n\t<a href=\"https:\/\/www.xttblog.com\/?tag=ssl\" name=\"ssl\" target=\"_blank\" title=\"ssl\">SSL<\/a>\u5df2\u7ecf\u666e\u53ca\u4e8e\u5404\u79cd\u4e92\u8054\u7f51\u670d\u52a1\uff0c\u5b83\u7ed9\u5e94\u7528\u5e26\u6765\u4e86\u6781\u9ad8\u7684\u5b89\u5168\u6027\uff0c\u4f46\u540c\u65f6\u7ed9\u670d\u52a1\u5668\u5e26\u6765\u4e86\u6781\u5927\u7684\u8fd0\u7b97\u538b\u529b\u3002\n<\/p>\n<p>\n\t<a href=\"https:\/\/www.xttblog.com\/?tag=ssl\" name=\"ssl\" target=\"_blank\" title=\"ssl\">SSL<\/a>\u52a0\u901f\u5668\u53ef\u4ee5\u4f7f\u7528\u73b0\u6210\u7684CPU\uff0c\u4f46\u5927\u591a\u6570\u662f\u4f7f\u7528ASIC\u548cRISC\u677f\u5361\u6765\u5b8c\u6210\u6700\u8270\u96be\u7684\u8ba1\u7b97\u5de5\u4f5c\u3002&nbsp;\n<\/p>\n<p>\n\t<a href=\"https:\/\/www.xttblog.com\/?tag=ssl\" name=\"ssl\" target=\"_blank\" title=\"ssl\">SSL<\/a>\u52a0\u901f\u5361\u53ef\u4ee5\u5b8c\u5168\u5378\u8f7d\u670d\u52a1\u5668\u7684SSL\u8fd0\u7b97\u8d1f\u62c5\uff0c\u964d\u4f4e\u6570\u636e\u670d\u52a1\u7684\u8fd0\u8425\u6210\u672c\u3002\n<\/p>\n<p>\n\t\u6ca1\u6709\u6709\u4f7f\u7528SSL\u52a0\u901f\u5361\u4e4b\u524d\uff0c\u670d\u52a1\u5668\u7684CPU\u8d44\u6e90\u5927\u91cf\u6d88\u8017\u5728\u5904\u7406SSL\u52a0\u89e3\u5bc6\u7684\u5de5\u4f5c\u4e2d\uff0c\u65e0\u6cd5\u517c\u987e\u5904\u7406\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f01\u4e1a\u53ea\u80fd\u4e0d\u65ad\u7684\u8d2d\u7f6e\u66f4\u591a\u7684\u670d\u52a1\u5668\u6765\u5206\u62c5\u8fd9\u4e9b\u8d1f\u8377\uff0c\u5982\u679c\u5f97\u4e0d\u5230\u89e3\u51b3\u5c06\u4f1a\u4e25\u91cd\u5f71\u54cd\u670d\u52a1\u7684\u8bbf\u95ee\u901f\u5ea6\u548c\u670d\u52a1\u7684\u8d28\u91cf\uff0c\u7528\u6237\u5c06\u4f1a\u6d41\u5931\u3002\u901a\u8fc7\u7b80\u5355\u7684\u5b89\u88c5Next SSL\u52a0\u901f\u5361\uff0c\u53ef\u4ee5\u628aSSL\u8fd0\u7b97\u5b8c\u5168\u8f6c\u79fb\u5230SSL\u52a0\u901f\u5361\u4e0a\uff0c\u670d\u52a1\u5668\u7684CPU\u53ef\u4ee5\u5b8c\u5168\u4e13\u6ce8\u7684\u5904\u7406\u4e3b\u8981\u4e1a\u52a1\u3002\n<\/p>\n<p>\n\t\u636e\u8bf4\uff0cNetscape\u516c\u53f8\u5f53\u5e74\u8bbe\u8ba1SSL\u534f\u8bae\u7684\u65f6\u5019\uff0c\u6709\u4eba\u63d0\u8fc7\uff0c\u5c06\u4e92\u8054\u7f51\u6240\u6709\u94fe\u63a5\u90fd\u53d8\u6210<a href=\"https:\/\/www.xttblog.com\/?tag=https\" name=\"https\" target=\"_blank\" title=\"https\">HTTPs<\/a>\u5f00\u5934\u7684\u52a0\u5bc6\u94fe\u63a5\u3002\n<\/p>\n<p>\n\t\u8fd9\u4e2a\u5efa\u8bae\u6ca1\u6709\u5f97\u5230\u91c7\u7eb3\uff0c\u539f\u56e0\u4e4b\u4e00\u662f<a href=\"https:\/\/www.xttblog.com\/?tag=https\" name=\"https\" target=\"_blank\" title=\"https\">HTTPs<\/a>\u94fe\u63a5\u6bd4\u4e0d\u52a0\u5bc6\u7684HTTP\u94fe\u63a5\u6162\u5f88\u591a\u3002\uff08\u53e6\u4e00\u4e2a\u539f\u56e0\u597d\u50cf\u662f\uff0c<a href=\"https:\/\/www.xttblog.com\/?tag=https\" name=\"https\" target=\"_blank\" title=\"https\">HTTPs<\/a>\u94fe\u63a5\u9ed8\u8ba4\u4e0d\u80fd\u7f13\u5b58\u3002\uff09\n<\/p>\n<p>\n\t\u81ea\u4ece\u6211\u77e5\u9053\u8fd9\u4e2a\u638c\u6545\u4ee5\u540e\uff0c\u8111\u888b\u4e2d\u5c31\u6709\u4e00\u4e2a\u89c2\u5ff5\uff1a<a href=\"https:\/\/www.xttblog.com\/?tag=https\" name=\"https\" target=\"_blank\" title=\"https\">HTTPs<\/a>\u94fe\u63a5\u5f88\u6162\u3002\u4f46\u662f\uff0c\u5b83\u5230\u5e95\u6709\u591a\u6162\uff0c\u6211\u5e76\u6ca1\u6709\u4e00\u4e2a\u7cbe\u786e\u7684\u6982\u5ff5\u3002\u76f4\u5230\u4eca\u5929\u6211\u4ece\u4e00\u7bc7<a href=\"http:\/\/www.semicomplete.com\/blog\/geekery\/ssl-latency.html\" target=\"_blank\">\u6587\u7ae0<\/a>\u4e2d\uff0c\u5b66\u5230\u4e86\u6d4b\u91cf<a href=\"https:\/\/www.xttblog.com\/?tag=https\" name=\"https\" target=\"_blank\" title=\"https\">HTTPs<\/a>\u94fe\u63a5\u8017\u65f6\u7684\u65b9\u6cd5\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"HTTPs\" src=\"http:\/\/image.beekka.com\/blog\/2014\/bg2014092401.jpg\" style=\"width: 550px;height: 412px\" \/>\n<\/p>\n<p>\n\t\u9996\u5148\u6211\u89e3\u91ca\u4e00\u4e0b\uff0c\u4e3a\u4ec0\u4e48HTTPs\u94fe\u63a5\u6bd4\u8f83\u6162\u3002\n<\/p>\n<p>\n\tHTTPs\u94fe\u63a5\u548cHTTP\u94fe\u63a5\u90fd\u5efa\u7acb\u5728TCP\u534f\u8bae\u4e4b\u4e0a\u3002HTTP\u94fe\u63a5\u6bd4\u8f83\u5355\u7eaf\uff0c\u4f7f\u7528\u4e09\u4e2a\u63e1\u624b\u6570\u636e\u5305\u5efa\u7acb\u8fde\u63a5\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u53d1\u9001\u5185\u5bb9\u6570\u636e\u4e86\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"TCP\u63e1\u624b\" src=\"http:\/\/image.beekka.com\/blog\/2014\/bg2014092402.png\" style=\"width: 300px;height: 360px\" \/>\n<\/p>\n<p>\n\t\u4e0a\u56fe\u4e2d\uff0c\u5ba2\u6237\u7aef\u9996\u5148\u53d1\u9001SYN\u6570\u636e\u5305\uff0c\u7136\u540e\u670d\u52a1\u5668\u53d1\u9001SYN+ACK\u6570\u636e\u5305\uff0c\u6700\u540e\u5ba2\u6237\u7aef\u53d1\u9001ACK\u6570\u636e\u5305\uff0c\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u53d1\u9001\u5185\u5bb9\u4e86\u3002\u8fd9\u4e09\u4e2a\u6570\u636e\u5305\u7684\u53d1\u9001\u8fc7\u7a0b\uff0c\u53eb\u505aTCP\u63e1\u624b\u3002\n<\/p>\n<p>\n\t\u518d\u6765\u770bHTTPs\u94fe\u63a5\uff0c\u5b83\u4e5f\u91c7\u7528TCP\u534f\u8bae\u53d1\u9001\u6570\u636e\uff0c\u6240\u4ee5\u5b83\u4e5f\u9700\u8981\u4e0a\u9762\u7684\u8fd9\u4e09\u6b65\u63e1\u624b\u8fc7\u7a0b\u3002\u800c\u4e14\uff0c\u5728\u8fd9\u4e09\u6b65\u7ed3\u675f\u4ee5\u540e\uff0c\u5b83\u8fd8\u6709\u4e00\u4e2a<a href=\"https:\/\/www.xttblog.com\/?tag=ssl\" name=\"ssl\" target=\"_blank\" title=\"ssl\">SSL<\/a>\u63e1\u624b\u3002\n<\/p>\n<p>\n\t\u603b\u7ed3\u4e00\u4e0b\uff0c\u5c31\u662f\u4e0b\u9762\u8fd9\u4e24\u4e2a\u5f0f\u5b50\u3002\n<\/p>\n<ul>\n<li>\n\t\tHTTP\u8017\u65f6 = TCP\u63e1\u624b\n\t<\/li>\n<li>\n\t\t<a href=\"https:\/\/www.xttblog.com\/?tag=https\" name=\"https\" target=\"_blank\" title=\"https\">HTTPs<\/a>\u8017\u65f6 = TCP\u63e1\u624b + <a href=\"https:\/\/www.xttblog.com\/?tag=ssl\" name=\"ssl\" target=\"_blank\" title=\"ssl\">SSL<\/a>\u63e1\u624b\n\t<\/li>\n<\/ul>\n<p>\n\t\u6240\u4ee5\uff0c<a href=\"https:\/\/www.xttblog.com\/?tag=https\" name=\"https\" target=\"_blank\" title=\"https\">HTTPs<\/a>\u80af\u5b9a\u6bd4HTTP\u8017\u65f6\uff0c\u8fd9\u5c31\u53ebSSL\u5ef6\u8fdf\u3002\n<\/p>\n<p>\n\t\u547d\u4ee4\u884c\u5de5\u5177 curl \u6709\u4e00\u4e2aw\u53c2\u6570\uff0c\u53ef\u4ee5\u7528\u6765\u6d4b\u91cfTCP\u63e1\u624b\u548c<a href=\"https:\/\/www.xttblog.com\/?tag=ssl\" name=\"ssl\" target=\"_blank\" title=\"ssl\">SSL<\/a>\u63e1\u624b\u7684\u5177\u4f53\u8017\u65f6\uff0c\u4ee5\u8bbf\u95ee\u652f\u4ed8\u5b9d\u4e3a\u4f8b\u3002\n<\/p>\n<pre class=\"brush:bash;\">\r\n$ curl -w &quot;TCP handshake: %{time_connect}, SSL handshake: %{time_appconnect}\\n&quot; -so \/dev\/null https:\/\/www.alipay.com\r\nTCP handshake: 0.022, SSL handshake: 0.064<\/pre>\n<p>\n\t\u4e0a\u9762\u547d\u4ee4\u4e2d\u7684w\u53c2\u6570\u8868\u793a\u6307\u5b9a\u8f93\u51fa\u683c\u5f0f\uff0ctime_connect\u53d8\u91cf\u8868\u793aTCP\u63e1\u624b\u7684\u8017\u65f6\uff0ctime_appconnect\u53d8\u91cf\u8868\u793aSSL\u63e1\u624b\u7684\u8017\u65f6\uff08\u66f4\u591a\u53d8\u91cf\u8bf7\u67e5\u770b<a href=\"http:\/\/curl.haxx.se\/docs\/manpage.html\" target=\"_blank\">\u6587\u6863<\/a>\u548c<a href=\"https:\/\/josephscott.org\/archives\/2011\/10\/timing-details-with-curl\/\" target=\"_blank\">\u5b9e\u4f8b<\/a>\uff09\uff0cs\u53c2\u6570\u548co\u53c2\u6570\u7528\u6765\u5173\u95ed\u6807\u51c6\u8f93\u51fa\u3002\n<\/p>\n<p>\n\t\u4ece\u8fd0\u884c\u7ed3\u679c\u53ef\u4ee5\u770b\u5230\uff0c<a href=\"https:\/\/www.xttblog.com\/?tag=ssl\" name=\"ssl\" target=\"_blank\" title=\"ssl\">SSL<\/a>\u63e1\u624b\u7684\u8017\u65f6\uff0864\u6beb\u79d2\uff09\u5927\u6982\u662fTCP\u63e1\u624b\uff0822\u6beb\u79d2\uff09\u7684\u4e09\u500d\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u5728\u5efa\u7acb\u8fde\u63a5\u7684\u9636\u6bb5\uff0c<a href=\"https:\/\/www.xttblog.com\/?tag=https\" name=\"https\" target=\"_blank\" title=\"https\">HTTPs<\/a>\u94fe\u63a5\u6bd4HTTP\u94fe\u63a5\u8981\u957f3\u500d\u7684\u65f6\u95f4\uff0c\u5177\u4f53\u6570\u5b57\u53d6\u51b3\u4e8eCPU\u7684\u5feb\u6162\u548c\u7f51\u7edc\u72b6\u51b5\u3002\n<\/p>\n<p>\n\t\u6240\u4ee5\uff0c\u5982\u679c\u662f\u5bf9\u5b89\u5168\u6027\u8981\u6c42\u4e0d\u9ad8\u7684\u573a\u5408\uff0c\u4e3a\u4e86\u63d0\u9ad8\u7f51\u9875\u6027\u80fd\uff0c\u5efa\u8bae\u4e0d\u8981\u91c7\u7528\u4fdd\u5bc6\u5f3a\u5ea6\u5f88\u9ad8\u7684\u6570\u5b57\u8bc1\u4e66\u3002\u4e00\u822c\u573a\u5408\u4e0b\uff0c1024\u4f4d\u7684\u8bc1\u4e66\u5df2\u7ecf\u8db3\u591f\u4e86\uff0c2048\u4f4d\u548c4096\u4f4d\u7684\u8bc1\u4e66\u5c06\u8fdb\u4e00\u6b65\u5ef6\u957fSSL\u63e1\u624b\u7684\u8017\u65f6\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2051\">ssl\u52a0\u901f\u539f\u7406<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u7f51\u7edc\u4fe1\u606f\u5b89\u5168\u5df2\u7ecf\u6210\u4e3a\u7535\u5b50\u5546\u52a1\u548c\u7f51\u7edc\u4fe1\u606f\u4e1a\u53d1\u5c55\u7684\u4e00\u4e2a\u74f6\u9888\uff0c\u5b89\u5168\u5957\u63a5\u5c42(SSL)\u534f\u8bae\u80fd\u8f83\u597d\u5730\u89e3\u51b3\u5b89\u5168\u5904\u7406\u95ee\u9898\uff0c\u800cS [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[118,6],"tags":[995,994,1530],"class_list":["post-2051","post","type-post","status-publish","format-standard","hentry","category-ndisdevelop","category-yyzt","tag-https","tag-ssl"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2051"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2051\/revisions"}],"predecessor-version":[{"id":2153,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2051\/revisions\/2153"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}