{"id":187000,"date":"2020-10-25T07:14:21","date_gmt":"2020-10-24T23:14:21","guid":{"rendered":"http:\/\/4563.org\/?p=187000"},"modified":"2020-10-25T07:14:21","modified_gmt":"2020-10-24T23:14:21","slug":"cloudflare-%e4%bd%bf%e7%94%a8-ssl-%e7%9a%84%e9%97%ae%e9%a2%98%e6%b1%82%e5%8a%a9","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=187000","title":{"rendered":"cloudflare \u4f7f\u7528 ssl \u7684\u95ee\u9898\u6c42\u52a9"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  cloudflare \u4f7f\u7528 ssl \u7684\u95ee\u9898\u6c42\u52a9               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nbweb <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u60f3\u901a\u8fc7 CF \u7684 cdn\uff0c\u5728 CF \u7f51\u7ad9\u4e0a\u8bbe\u7f6e\u597d\u4e86\uff0cssl \u8bc1\u4e66\u9047\u5230\u95ee\u9898\u3002<\/p>\n<p>\u6e90\u670d\u52a1\u5668\u521b\u5efa\u8bc1\u4e66\uff0c\u628a\u8bc1\u4e66\u4e0b\u8f7d\u4e0b\u6765\uff0c\u653e\u5230 vps \u4e0a\uff0c\u914d\u7f6e nginx\uff0c\u63d0\u793a\u627e\u4e0d\u5230\u8bc1\u4e66\u3002<\/p>\n<p>server {<br \/> listen 443;<br \/> server_name domain.com;<br \/> root \/var\/www\/domain.com;<br \/> ssl_certificate \/etc\/ssl\/domain.com\/domain.com.crt;<br \/> ssl_certificate_key \/etc\/ssl\/domain.com\/domain.com.private.key;<br \/>}<\/p>\n<p>\u63d0\u793a\u5982\u4e0b\uff1a<br \/>[email&#160;protected]:~# nginx -t<br \/>nginx: [warn] &#8220;ssl_stapling&#8221; ignored, issuer certificate not found for certificate &#8220;\/etc\/ssl\/domain.com\/domain.com.crt&#8221;<br \/>nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok<br \/>nginx: configuration file \/etc\/nginx\/nginx.conf test is successful<\/p>\n<p>\u8bbf\u95ee\u57df\u540d\uff0c\u51fa\u73b0 526 \u9519\u8bef\uff0c\u8bf4\u662f\u6e90\u670d\u52a1\u5668\u6ca1\u6709\u4e00\u4e2a\u6709\u6548\u7684\u8bc1\u4e66\u3002<br \/>\u8c37\u6b4c\u4e86\u4e00\u4e0b\uff0c\u8bf4\u662f CF \u7684 ssl \u53ea\u80fd\u7ed9\u81ea\u5bb6\u7684 cnd \u7528\u3002<\/p>\n<p>\u6211\u60f3\u95ee\u7684\u662f\uff1a\u6211\u7684 vps \u4e0d\u5b89\u88c5 ssl \u8bc1\u4e66\u884c\u4e0d\u884c\uff0c\u4e0d\u5b89\u88c5\u8bc1\u4e66\uff0c\u8bbf\u95ee\u57df\u540d\u62a5\u9519\uff0c\u8bf4\u662f\u65e0\u6548\u7684\u8bc1\u4e66\u3002<\/p>\n<p>\u4e00\u5b9a\u8981\u5728 vps \u5b89\u88c5 let&#8217;s \u7684 ssl \u8bc1\u4e66\u5417\uff1f      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4041729\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shenlanAZ <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5728 CF \u4e0a\u8bbe\u7f6e SSL \u52a0\u5bc6\u6a21\u5f0f\u4e3a\uff1a\u7075\u6d3b SSL<\/p>\n<p>\u8fd9\u6837\u4f60\u7684 nginx \u5c31\u4e0d\u7528\u914d\u7f6e ssl \u4e86                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4041730\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : XiLingHost <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             nginx \u914d\u7f6e\u662f\u4e0d\u662f\u6709\u95ee\u9898\uff0c\u5e94\u8be5\u8981 listen 443 ssl;\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4041731\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : nbweb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shenlanAZ \u6211\u8bd5\u8bd5\u53bb<\/p>\n<p>@XiLingHost \u662f\u8bc1\u4e66\u7684\u95ee\u9898\uff0c\u6ca1\u6cd5\u91cd\u542f nginx                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4041732\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : nbweb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shenlanAZ \u786e\u5b9e\uff0c\u8fd9\u6837\u5c31\u641e\u5b9a\u4e86\uff0c\u7701\u4e86\u5f88\u591a\u4e8b\uff0c\u8c22\u8c22\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4041733\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ihciah <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u8d77\u6765\u62a5\u9519\u662f\u6ca1\u627e\u5230 issuer \u7684\u8bc1\u4e66\uff1f\u662f\u4e0d\u662f\u518d\u8d34\u4e2a CA \u8bc1\u4e66\u5c31\u597d\u4e86\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4041734\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : nbweb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ihciah \u662f\u56e0\u4e3a cloudflare \u7684 ssl \u8bc1\u4e66\uff0c\u4e0d\u80fd\u7528\u5728 vps \u670d\u52a1\u5668\u4e0a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4041735\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Semidio <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @nbweb #6 https:\/\/support.cloudflare.com\/hc\/zh-cn\/articles\/115000479507                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>cloudflare \u4f7f\u7528 ssl&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\/187000"}],"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=187000"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/187000\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=187000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=187000"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=187000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}