{"id":86289,"date":"2020-05-13T23:14:58","date_gmt":"2020-05-13T15:14:58","guid":{"rendered":"http:\/\/4563.org\/?p=86289"},"modified":"2020-05-13T23:14:58","modified_gmt":"2020-05-13T15:14:58","slug":"%e8%85%be%e8%ae%af%e4%ba%91-ssl-%e8%af%81%e4%b9%a6%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=86289","title":{"rendered":"\u817e\u8baf\u4e91 ssl \u8bc1\u4e66\u7684\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u817e\u8baf\u4e91 ssl \u8bc1\u4e66\u7684\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jwh199588 <\/span>  <span><i><\/i> 6<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>security: oauth2: client: access-token-uri: http:\/\/localhost:8090\/uaa\/oauth\/token user-authorization-uri: http:\/\/localhost:8868\/oauth\/authorize client-id: ${spring.application.name} client-secret: 123456 registered-redirect-uri: \/oauth\/code<\/p>\n<p>\u817e\u8baf\u4e91\u7533\u8bf7\u4e86\u4e00\u4e2a ssl \u7684\u514d\u8d39\u8bc1\u4e66\uff0c\u653e\u5230 apache \u540e\uff0c\u8bbf\u95ee\u767b\u9646\u9875\u9762\u7684\u65f6\u5019\uff0c\u660e\u660e\u662f http:\/\/localhost:8868\uff0c\u4f46\u662f\u6700\u540e\u9875\u9762\u663e\u793a\u7684\u662f https:\/\/localhost:8868,\u54ea\u4f4d\u5927\u795e\u77e5\u9053\u4e3a\u4ec0\u4e48\u53d8\u6210\u4e86 https<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1486595\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : superluke <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5148\u6838\u5b9e\u4e0b\u8bc1\u4e66\u914d\u7f6e\u662f\u5426\u6709\u95ee\u9898\uff0c\u53ef\u4ee5\u901a\u8fc7\u672c\u5730\u76f4\u63a5\u8bbf\u95ee https:\/\/localhost:8868 \u7f51\u9875\u662f\u5426\u53ef\u4ee5\u6b63\u5e38\u6253\u5f00\uff0c\u5982\u679c\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee\uff0c\u8bf4\u660e\u8bc1\u4e66\u914d\u7f6e\u6ca1\u6709\u95ee\u9898\uff0c\u53cd\u4e4b\u5efa\u8bae\u6838\u5b9e\u4e0b apache \u914d\u7f6e\u6587\u4ef6\u54c8                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1486596\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yaxin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\u8ddf\u8bc1\u4e66\u5e76\u6ca1\u6709\u5173\u7cfb\uff0c\u5e94\u8be5\u662f\u4f60 apache \u7684\u914d\u7f6e\u95ee\u9898\uff0c\u770b\u4e00\u4e0b\u662f\u5426\u7531\u914d\u7f6e http \u8df3\u8f6c https\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u53ef\u4ee5\u8bd5\u7740\u5f00\u4e00\u4e2a\u9690\u79c1\u7a97\u53e3\uff0c\u770b\u4e00\u4e0b\u662f\u5426\u8fd8\u662f 301\/302 \u8df3\u8f6c\uff0c\u5982\u679c\u4e0d\u8df3\u8f6c\uff0c\u8bf4\u660e\u4f60\u4e4b\u524d\u914d\u7f6e\u4e86 301 \u8df3\u8f6c\uff0c\u6d4f\u89c8\u5668\u7f13\u5b58\u4e86\u4e0b\u6765\uff0c\u5c1d\u8bd5\u6e05\u695a\u7f13\u5b58\u3002\u5982\u679c\u8fd8\u662f\u8df3\u8f6c\uff0c\u5219\u9700\u8981\u770b\u4e00\u4e0b\u4f60 apache \u7684\u914d\u7f6e\uff0c\u786e\u8ba4\u6ca1\u6709\u8df3\u8f6c\u914d\u7f6e\u540e\u91cd\u542f apache \u914d\u7f6e\uff0c\u7136\u540e\u91cd\u8bd5\u5f00\u9690\u79c1\u7a97\u53e3\u786e\u8ba4\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1486597\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crll <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8003\u8651\u4e0b\u914d\u7f6e\u548c\u6d4f\u89c8\u5668\u7f13\u5b58                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1486598\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : jwh199588 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1\u4eba\u56de\u7b54\u6211\u5c31\u5730\u5740\u53ca\u56de\u7b54\u4e00\u4e0b\uff1a<br \/> \u9996\u5148\u6211\u57df\u540d\u5bf9\u5e94\u7684 ssl \u8bc1\u4e66\u662f\u817e\u8baf\u514d\u8d39\u7533\u8bf7\u7684<br \/> \u5176\u6b21\u6211\u4f7f\u7528\u7684\u662f apache \u505a\u7684\u8d1f\u8f7d\u5747\u8861<\/p>\n<p>\u5728\u8bbf\u95ee\u5730\u5740\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u539f\u6765\u662f http \u7684\u8bbf\u95ee\u5730\u5740\u5728\u8df3\u8f6c\u7684\u65f6\u5019\u9ed8\u8ba4\u8f6c\u4e3a\u4e86 https\uff0c\u521a\u5f00\u59cb\u6211\u4ee5\u4e3a\u662f ssl \u8bc1\u4e66\u7684\u95ee\u9898\uff0c\u4f46\u662f\u540e\u6765\u67e5\u8be2\u8d44\u6599\u624d\u77e5\u9053\uff0c\u539f\u6765 HTTP \u4e25\u683c\u4f20\u8f93\u5b89\u5168\u534f\u8bae\u5bfc\u81f4\u7684\u95ee\u9898\uff0c\u5728\u8bbf\u95ee\u5730\u5740\u7684\u54cd\u5e94\u5934\u4e2d\u5305\u542b\u76f8\u5e94\u7684 Strict-Transport-Security: max-age=31536000; includeSubDomains\uff0c\u90a3\u4e48\u5bf9\u5e94\u7684 http \u5730\u5740\u5c31\u4f1a\u9ed8\u8ba4\u7684\u8f6c\u4e3a https \u5730\u5740<\/p>\n<p>\u56e0\u4e3a\u8fd9\u4e2a\u95ee\u9898\uff0c\u6240\u4ee5\u6211\u5728 apache \u7684 http.conf \u6587\u4ef6\u4e2d\u6dfb\u52a0\u5982\u4e0b\u7684\u914d\u7f6e\uff0c\u8ba9 hsts \u5931\u6548<br \/>&lt;If &#8220;%{HTTP_HOST} = &#8216;www.dev.domain.com'&#8221;&gt;<br \/>\u00a0\u00a0\u00a0\u00a0&lt;IfModule mod_headers.c&gt;<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Header unset Strict-Transport-Security<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Header always set Strict-Transport-Security &#8220;max-age=0;includeSubDomains&#8221;<br \/>\u00a0\u00a0\u00a0\u00a0&lt;\/IfModule&gt;<br \/>&lt;\/If&gt;<\/p>\n<p>if \u5728 apache \u4e2d\u6709\u53ef\u80fd\u662f\u65e0\u6548\u7684\uff0c\u8fd9\u4e2a\u8ddf\u7248\u672c\u6709\u5173\u7cfb\uff0c\u5982\u679c\u65e0\u6548\u5220\u9664 if \u5373\u53ef                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u817e\u8baf\u4e91 ssl \u8bc1\u4e66\u7684\u95ee\u9898 \u8cc7\u6df1\u5927&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/86289"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=86289"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/86289\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=86289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=86289"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=86289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}