{"id":1728,"date":"2024-06-05T20:22:01","date_gmt":"2024-06-05T12:22:01","guid":{"rendered":"https:\/\/cn.raksmart.com\/blog\/host\/3901.html"},"modified":"2024-06-05T20:22:01","modified_gmt":"2024-06-05T12:22:01","slug":"%e4%bb%80%e4%b9%88%e6%98%af%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%90%8d%e7%a7%b0%e6%8c%87%e7%a4%ba%ef%bc%88sni%ef%bc%89","status":"publish","type":"post","link":"https:\/\/cn.raksmart.com\/blog\/knowledge\/1728.html","title":{"rendered":"\u4ec0\u4e48\u662f\u670d\u52a1\u5668\u540d\u79f0\u6307\u793a\uff08SNI\uff09"},"content":{"rendered":"<div class=\"entry-content e-content\" itemprop=\"description articleBody\">\n<p>\u5728HTTPS \u5927\u70ed\u7684\u4eca\u65e5\uff0c<a href=\"https:\/\/www.<a href=\"https:\/\/www.raksmart.com\/cps\/7821\" target=\"_blank\" rel=\"noopener\">raksmart<\/a>.com\/cps\/7924\" target=\"_blank\" rel=\"noopener\">SSL\u8bc1\u4e66<\/a>\u5df2\u6210\u4e3a\u4e86HTTPS\u52a0\u5bc6\u534f\u8bae\u6700\u5e38\u89c1\u7684\u89e3\u51b3\u65b9\u6848\u3002\u867d\u7136\u5728\u5b89\u5168\u65b9\u9762\uff0cHTTPS\u5b8c\u80dcHTTP\u3002\u4f46\u5728\u6027\u80fd\u65b9\u9762\uff0cHTTPS\u4e2d\u7684<a href=\"https:\/\/www.<a href=\"https:\/\/www.raksmart.com\/cps\/7821\" target=\"_blank\" rel=\"noopener\">raksmart<\/a>.com\/cps\/7924\" target=\"_blank\" rel=\"noopener\">SSL\u8bc1\u4e66<\/a>\u4ecd\u5b58\u5728\u4e00\u4e9b\u95ee\u9898\u3002\u5982\u57fa\u4e8e\u540d\u79f0\u7684\u4e3b\u673a\u4e0d\u80fd\u5f88\u597d\u5730\u5904\u7406SSL\u3002<\/p>\n<p>\u5728\u8fc7\u53bb\u7684HTTP\u65f6\u4ee3\uff0c\u89e3\u51b3\u57fa\u4e8e\u540d\u79f0\u7684\u4e3b\u673a\u5728\u540c\u4e00IP\u5730\u5740\u4e0a\u6258\u7ba1\u591a\u4e2a\u7f51\u7ad9\u7684\u95ee\u9898\u5e76\u4e0d\u96be\u3002\u5f53\u4e00\u4e2a\u5ba2\u6237\u7aef\u8bf7\u6c42\u67d0\u7279\u5b9a\u7f51\u7ad9\u65f6\uff0c\u628a\u8bf7\u6c42\u7684\u57df\u540d\u4f5c\u4e3a\u4e3b\u673a\u5934(Host)\u653e\u5728HTTP Header\u4e2d\uff0c\u670d\u52a1\u5668\u7aef\u77e5\u9053\u5e94\u8be5\u628a\u8bf7\u6c42\u5f15\u5411\u54ea\u4e2a\u57df\u540d\uff0c\u5e76\u628a\u5339\u914d\u7684\u7f51\u7ad9\u4f20\u9001\u7ed9\u5ba2\u6237\u7aef\u3002<\/p>\n<p>\u4f46\u4f7f\u7528HTTPS\u65f6\u5c31\u65e0\u6cd5\u6545\u6280\u91cd\u65bd\u4e86\u3002\u56e0\u4e3a\u5728SSL\u63e1\u624b\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4e0d\u4f1a\u6709Host\u7684\u4fe1\u606f\uff0c\u6240\u4ee5\u670d\u52a1\u5668\u7aef\u901a\u5e38\u8fd4\u56de\u7684\u662f\u914d\u7f6e\u4e2d\u7684\u7b2c\u4e00\u4e2a\u53ef\u7528\u8bc1\u4e66\u3002\u56e0\u800c\u4e00\u4e9b\u8f83\u8001\u7684\u73af\u5883\uff0c\u53ef\u80fd\u4f1a\u4ea7\u751f\u591a\u57df\u540d\u5206\u522b\u914d\u597d\u4e86\u8bc1\u4e66\uff0c\u4f46\u8fd4\u56de\u7684\u59cb\u7ec8\u662f\u540c\u4e00\u4e2a\u3002<\/p>\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0cSNI(<a href=\"https:\/\/cn.raksmart.com\/\" target=\"_blank\" rel=\"noopener\"><strong>\u670d\u52a1\u5668\u540d\u79f0\u6307\u793a<\/strong><\/a>)\u4ece\u800c\u8bde\u751f\u3002<\/p>\n<p><span style=\"color: #ff0000;\">\u3000\u3000\u4ec0\u4e48\u662fSNI<\/span><\/p>\n<p>SNI(Server Name Indication)\uff0c\u4e2d\u6587\u540d\u4e3a\u670d\u52a1\u5668\u540d\u79f0\u6307\u793a\uff0c\u662f\u5bf9SSL \/ TLS\u534f\u8bae\u7684\u6269\u5c55\uff0c\u5141\u8bb8\u5728\u5355\u4e2aIP\u5730\u5740\u4e0a\u627f\u8f7d\u591a\u4e2aSSL\u8bc1\u4e66\u3002 SNI\u8fd9\u6837\u505a\u7684\u65b9\u6cd5\u662f\u5c06HTTP\u5934\u63d2\u5165\u5230SSL\u63e1\u624b\u4e2d\uff0c\u63d0\u4ea4\u8bf7\u6c42\u7684 Host \u4fe1\u606f\uff0c\u4f7f\u5f97\u670d\u52a1\u5668\u80fd\u591f\u5207\u6362\u5230\u6b63\u786e\u7684\u57df\u5e76\u8fd4\u56de\u76f8\u5e94\u7684\u8bc1\u4e66\u3002<\/p>\n<p>\u5728SNI\u51fa\u73b0\u4e4b\u524d\uff0c\u52a0\u5bc6\u6bcf\u4e2a\u7f51\u7ad9\u90fd\u5fc5\u987b\u5bf9\u6bcf\u4e2aIP\u5730\u5740\u90fd\u90e8\u7f72SSL\u8bc1\u4e66\u3002\u4f46\u8fd9\u662f\u4e00\u7b14\u6602\u8d35\u7684\u9884\u7b97\uff0c\u5e76\u4e14IPv4\u7684 IP\u4e5f\u5b58\u5728\u4e0d\u5c11\u95ee\u9898\u3002<\/p>\n<p>IP\u5730\u5740\u7684\u6570\u91cf\u662f\u6709\u9650\u7684\uff0cIPv4\u53c2\u4e0e\u4f7f\u7528Internet\u534f\u8bae\u8fdb\u884c\u901a\u4fe1\u7684\u8ba1\u7b97\u673a\u7f51\u7edc\u7684\u6bcf\u4e2a\u8bbe\u5907\u5206\u914d\u5730\u5740\u3002<\/p>\n<p>\u5168\u7403\u4e0a\u4e00\u5171\u53ea\u6709\u5927\u7ea640\u4ebf\u4e07\u4e2aIPv4 IP\u5730\u5740\uff0c\u603b\u6709\u4e00\u5929\u6240\u6709\u5730\u5740\u7ec8\u4f1a\u88ab\u6d88\u8017\u6b86\u5c3d\u3002\u800c\u5728SNI\u51fa\u73b0\u4e4b\u524d\uff0c\u5176\u6d88\u8017\u7684\u901f\u5ea6\u6bd4\u76ee\u524d\u8981\u5feb\u5f88\u591a\u3002\u53ef\u89c1\uff0cSNI\u7684\u5b58\u5728\u662f\u4e3aIPv4\u7eed\u547d\u3002<\/p>\n<p><span style=\"color: #ff0000;\">\u3000\u3000SNI\u7684\u672a\u6765?<\/span><\/p>\n<p>SNI\u6700\u5927\u7684\u62c5\u5fe7\u662f\u5176\u53ef\u6269\u5c55\u6027\u3002\u4e00\u5f00\u59cb\uff0c\u6709\u4eba\u8ba4\u4e3a\u7f51\u7edc\u6d4f\u89c8\u5668\u548c\u670d\u52a1\u5668\u4e0d\u4f1a\u5f88\u5feb\u91c7\u7528\u8fd9\u79cd\u6280\u672f\u3002\u4e8b\u5b9e\u8bc1\u660e\uff0c\u8fd9\u79cd\u62c5\u5fe7\u5728\u5f88\u5927\u7a0b\u5ea6\u4e0a\u662f\u65e0\u6839\u636e\u7684\uff0c\u6839\u636eAkamai\u7684\u8bf4\u6cd5\uff0c\u5982\u4eca\u51e0\u4e4e98%\u7684\u5ba2\u6237\u8981\u6c42\u652f\u6301HTTPS\u7684\u7f51\u7ad9\u652f\u6301SNI\u3002<\/p>\n<p>\u4f5c\u4e3a\u56fd\u5185\u4fe1\u606f\u5b89\u5168\u670d\u52a1\u5546\u6570\u5b89\u65f6\u4ee3(GDCA)\u8ba4\u4e3aSNI\u5c06\u4f1a\u6709\u52a9\u4e8eSSL\u8bc1\u4e66\u7684\u529f\u80fd\u5b8c\u5584\uff0c\u5e76\u63a8\u52a8HTTPS\u534f\u8bae\u7684\u53d1\u5c55\uff0c\u4e3a\u5e7f\u5927\u7ad9\u957f\u63d0\u4f9b\u66f4\u597d\u7684\u65b9\u5f0f\u7ba1\u7406SSL\u8bc1\u4e66\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728HTTPS \u5927\u70ed\u7684\u4eca\u65e5\uff0cSSL\u8bc1\u4e66\u5df2\u6210\u4e3a\u4e86HTTPS\u52a0\u5bc6\u534f\u8bae\u6700\u5e38\u89c1\u7684\u89e3\u51b3\u65b9\u6848\u3002\u867d\u7136\u5728\u5b89\u5168\u65b9\u9762\uff0cHT\u2026 <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[890],"class_list":["post-1728","post","type-post","status-publish","format-standard","hentry","category-knowledge","tag-890"],"_links":{"self":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts\/1728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/comments?post=1728"}],"version-history":[{"count":0,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts\/1728\/revisions"}],"wp:attachment":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/media?parent=1728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/categories?post=1728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/tags?post=1728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}