{"id":19292,"date":"2025-04-19T01:37:52","date_gmt":"2025-04-18T17:37:52","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/19292.html"},"modified":"2025-04-19T01:37:52","modified_gmt":"2025-04-18T17:37:52","slug":"nginx-%e6%9c%8d%e5%8a%a1%e5%99%a8-ssl-%e8%af%81%e4%b9%a6%e5%ae%89%e8%a3%85%e9%83%a8%e7%bd%b2%e5%b9%b6%e9%85%8d%e7%bd%ae%ef%bc%88%e5%b7%b2%e5%ae%9e%e6%b5%8b%ef%bc%89-2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/19292.html","title":{"rendered":"Nginx \u670d\u52a1\u5668 SSL \u8bc1\u4e66\u5b89\u88c5\u90e8\u7f72\u5e76\u914d\u7f6e\uff08\u5df2\u5b9e\u6d4b\uff09"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u524d\u7f6e\u6761\u4ef6<\/li>\n<li>\u4e00\u3001Nginx\u7684SSL\u6a21\u5757\u5b89\u88c5<\/li>\n<li>\u4e8c\u3001\u914d\u7f6eSSL\u8bc1\u4e66<\/li>\n<li>\u4e09\u3001\u8fdb\u884cnginx.conf\u914d\u7f6e<\/li>\n<li>\u56db\u3001\u542f\u52a8nginx<\/li>\n<\/ul>\n<hr \/>\n<h2>\u524d\u7f6e\u6761\u4ef6<\/h2>\n<ul>\n<li>\u670d\u52a1\u5668\u5df2\u7ecf\u5b89\u88c5nginx\u5e76\u4e14\u53ef\u4ee5\u901a\u8fc7http\u6b63\u5e38\u8bbf\u95ee&#xff0c;\u53ef\u4ee5\u53c2\u8003\u6211\u4e4b\u524d\u7684\u6587\u7ae0\u5b89\u88c5Nginx \u5e76\u914d\u7f6e<\/li>\n<li>\u62e5\u6709SSL\u8bc1\u4e66,\u6ca1\u6709\u7684\u53ef\u4ee5\u53bb\u817e\u8baf\u4e91\u6216\u963f\u91cc\u4e91\u8d2d\u4e70<\/li>\n<li>\u5df2\u51c6\u5907\u6587\u4ef6\u8fdc\u7a0b\u62f7\u8d1d\u8f6f\u4ef6&#xff0c;\u4f8b\u5982 WinSCP&#xff08;\u5efa\u8bae\u4ece\u5b98\u65b9\u7f51\u7ad9\u83b7\u53d6\u6700\u65b0\u7248\u672c&#xff09;<\/li>\n<li>\u5df2\u51c6\u5907\u8fdc\u7a0b\u767b\u5f55\u5de5\u5177&#xff0c;\u4f8b\u5982 PuTTY \u6216\u8005 Xshell&#xff08;\u5efa\u8bae\u4ece\u5b98\u65b9\u7f51\u7ad9\u83b7\u53d6\u6700\u65b0\u7248\u672c&#xff09;<\/li>\n<li>\u5df2\u5728\u5f53\u524d\u670d\u52a1\u5668\u4e2d\u5b89\u88c5\u914d\u7f6e\u542b\u6709 http_ssl_module \u6a21\u5757\u7684 Nginx \u670d\u52a1\u3002<\/li>\n<\/ul>\n<hr \/>\n<h2>\u4e00\u3001Nginx\u7684SSL\u6a21\u5757\u5b89\u88c5<\/h2>\n<p>\u4e00\u822c\u60c5\u51b5\u4e0b\u81ea\u5df1\u5b89\u88c5\u7684nginx\u90fd\u662f\u4e0d\u5b58\u5728ssl\u6a21\u5757\u7684\u3002\u8fd9\u91cc\u5148\u68c0\u67e5\u4e0b\u81ea\u5df1\u662f\u5426\u5b58\u5728ssl\u6a21\u5757&#xff1a; \u8fdb\u5165\u5230\u4f60\u7684nginx\u5b89\u88c5\u76ee\u5f55\u4e0b\u9762&#xff0c;\u6211\u7684\u76ee\u5f55\u662f\u5728&#xff08;\/usr\/local\/nginx&#xff09;&#xff0c;\u5982\u679c\u4f60\u7684nginx\u5b89\u88c5\u6b65\u9aa4\u548c\u6211\u4e00\u81f4\u7684\u8bdd<\/p>\n<p> cd <span class=\"token operator\">\/<\/span>usr<span class=\"token operator\">\/<\/span>local<span class=\"token operator\">\/<\/span>nginx<span class=\"token operator\">\/<\/span>sbin<\/p>\n<p>\u8f93\u5165<\/p>\n<p> #\u6ce8\u610f\u8fd9\u91cc\u662f\u5927\u5199\u7684<span class=\"token constant\">V<\/span><span class=\"token punctuation\">,<\/span>\u5343\u4e07\u522b\u5199\u9519\u4e86<span class=\"token punctuation\">,<\/span>\u6211\u5c31\u6389\u5751\u4e86<br \/>\n <span class=\"token punctuation\">.<\/span><span class=\"token operator\">\/<\/span>nginx <span class=\"token operator\">&#8211;<\/span><span class=\"token constant\">V<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418173749-68028ded8ba8d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u51fa\u73b0\u7ea2\u6846\u7684\u5185\u5bb9&#xff0c;\u5219\u5df2\u5b89\u88c5&#xff0c;\u5982\u679c\u6709\u76f4\u63a5\u8df3\u8fc7\u770b \u4e8c\u3001\u914d\u7f6eSSL\u8bc1\u4e66 \u5982\u679c\u6ca1\u6709&#xff0c;\u63a5\u4e0b\u6765\u8fdb\u5165\u5230\u4f60\u7684\u89e3\u538b\u7f29\u540e\u7684nginx\u76ee\u5f55&#xff0c;\u6ce8\u610f\u8fd9\u91cc\u4e0d\u662fnginx\u5b89\u88c5\u76ee\u5f55&#xff0c;\u662f\u89e3\u538b\u7f29\u540e\u7684\u76ee\u5f55&#xff0c;\u6211\u7684\u662f\u5728&#xff08;\/user\/local\/nginx-1.24.0&#xff09;&#xff0c;<\/p>\n<p>#\u8fdb\u5165\u76ee\u5f55<br \/>\ncd <span class=\"token operator\">\/<\/span>usr<span class=\"token operator\">\/<\/span>local<span class=\"token operator\">\/<\/span>nginx<span class=\"token operator\">&#8211;<\/span><span class=\"token number\">1.24<\/span><span class=\"token number\">.0<\/span><\/p>\n<p>\u8f93\u5165<\/p>\n<p><span class=\"token punctuation\">.<\/span><span class=\"token operator\">\/<\/span>configure <span class=\"token operator\">&#8212;<\/span>prefix<span class=\"token operator\">&#061;<\/span><span class=\"token operator\">\/<\/span>usr<span class=\"token operator\">\/<\/span>local<span class=\"token operator\">\/<\/span>nginx <span class=\"token operator\">&#8212;<\/span><span class=\"token keyword\">with<\/span><span class=\"token operator\">&#8211;<\/span>http_stub_status_module <span class=\"token operator\">&#8212;<\/span><span class=\"token keyword\">with<\/span><span class=\"token operator\">&#8211;<\/span>http_ssl_module<\/p>\n<p>\u63a5\u4e0b\u6765\u6267\u884c<\/p>\n<p>make<\/p>\n<p>\u64cd\u4f5c\u5b8c\u6210\u540e\u539f\u6765\u7684\u89e3\u538b\u76ee\u5f55\/usr\/local\/nginx-1.24.0\/\u4f1a\u51fa\u73b0objs\u6587\u4ef6\u5939&#xff0c;\u6587\u4ef6\u5939\u91cc\u6709nginx\u6587\u4ef6 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418173749-68028dede2c03.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u505c\u6389nginx\u670d\u52a1&#xff0c;\u4f7f\u7528\u65b0\u7684nginx\u6587\u4ef6\u66ff\u6362\u6389\u4e4b\u524d\u5b89\u88c5\u76ee\u5f55sbin\u4e0b\u7684nginx<\/p>\n<p>  systemctl stop nginx<\/p>\n<p>\u66ff\u6362\u6389\u4e4b\u524d\u7684nginx<\/p>\n<p>cp <span class=\"token operator\">\/<\/span>usr<span class=\"token operator\">\/<\/span>local<span class=\"token operator\">\/<\/span>nginx<span class=\"token operator\">&#8211;<\/span><span class=\"token number\">1.24<\/span><span class=\"token number\">.0<\/span><span class=\"token operator\">\/<\/span>objs<span class=\"token operator\">\/<\/span>nginx <span class=\"token operator\">\/<\/span>usr<span class=\"token operator\">\/<\/span>local<span class=\"token operator\">\/<\/span>nginx<span class=\"token operator\">\/<\/span>sbin<span class=\"token operator\">\/<\/span>nginx<\/p>\n<p>\u8fdb\u5165\u5230nginx\u5b89\u88c5\u76ee\u5f55\u4e0b&#xff0c;\u67e5\u770bSSL\u662f\u5426\u6210\u529f,\u6ce8\u610fV\u5927\u5199<\/p>\n<p><span class=\"token punctuation\">.<\/span><span class=\"token operator\">\/<\/span>nginx <span class=\"token operator\">&#8211;<\/span><span class=\"token constant\">V<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418173750-68028dee3d54e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u51fa\u73b0\u4e86configure arguments: &#8211;with-http_ssl_module \u8bc1\u660e\u5df2\u7ecf\u5b89\u88c5\u6210\u529f<\/p>\n<h2>\u4e8c\u3001\u914d\u7f6eSSL\u8bc1\u4e66<\/h2>\n<p>\u89e3\u538b\u7f29\u4e0b\u8f7d\u597d\u7684\u8bc1\u4e66&#xff08;\u6211\u662f\u817e\u8baf\u4e91\u8bc1\u4e66\u4e00\u822c\u662fcrt\u6587\u4ef6\u548ckey\u6587\u4ef6&#xff0c;\u8fd9\u91cc\u540d\u5b57\u53ef\u4ee5\u968f\u4fbf\u6539&#xff09; \u5c06\u4e0b\u8f7d\u597d\u7684\u8bc1\u4e66\u4e0a\u4e0a\u4f20\u5230\u670d\u52a1\u5668&#xff0c;\u6211\u5c06\u8bc1\u4e66\u653e\u5728\u4e86\/usr\/local\/nginx\/conf\u76ee\u5f55\u4e0b\u7684ssl\u6587\u4ef6\u5939<\/p>\n<p> cd <span class=\"token operator\">\/<\/span>usr<span class=\"token operator\">\/<\/span>local<span class=\"token operator\">\/<\/span>nginx<span class=\"token operator\">\/<\/span>conf<br \/>\n mkdir ssl<\/p>\n<p>\u4f7f\u7528winScp\u5de5\u5177\u5c06\u5c06\u5df2\u83b7\u53d6\u5230\u7684 cloud.tencent.com_bundle.crt \u8bc1\u4e66\u6587\u4ef6\u548c cloud.tencent.com.key \u79c1\u94a5\u6587\u4ef6\u4ece\u672c\u5730\u76ee\u5f55\u62f7\u8d1d\u5230ssl\u76ee\u5f55\u4e0b<\/p>\n<h2>\u4e09\u3001\u8fdb\u884cnginx.conf\u914d\u7f6e<\/h2>\n<p>cd <span class=\"token operator\">\/<\/span>usr<span class=\"token operator\">\/<\/span>local<span class=\"token operator\">\/<\/span>nginx<span class=\"token operator\">\/<\/span>conf<br \/>\n#\u4fee\u6539nginx<span class=\"token punctuation\">.<\/span>conf\u6587\u4ef6<br \/>\nvim nginx<span class=\"token punctuation\">.<\/span>conf<\/p>\n<p>\u4ec5\u4fee\u6539Server\u7684\u90e8\u5206&#xff0c;443\u7aef\u53e3\u8fd9\u8fdb\u884c\u8bc1\u4e66\u7684\u7ed1\u5b9a&#xff0c;\u4e0b\u65b9\u76d1\u542c80\u7684server&#xff0c;\u53ef\u4ee5\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230https\u7684443\u7aef\u53e3<\/p>\n<p>server <span class=\"token punctuation\">{<\/span><br \/>\n #<span class=\"token constant\">SSL<\/span> \u9ed8\u8ba4\u8bbf\u95ee\u7aef\u53e3\u53f7\u4e3a <span class=\"token number\">443<\/span><br \/>\n listen <span class=\"token number\">443<\/span> ssl<span class=\"token punctuation\">;<\/span><br \/>\n #\u8bf7\u586b\u5199\u7ed1\u5b9a\u8bc1\u4e66\u7684\u57df\u540d<br \/>\n server_name cloud<span class=\"token punctuation\">.<\/span>tencent<span class=\"token punctuation\">.<\/span>com<span class=\"token punctuation\">;<\/span><br \/>\n #\u8bf7\u586b\u5199\u8bc1\u4e66\u6587\u4ef6\u7684\u76f8\u5bf9\u8def\u5f84\u6216\u7edd\u5bf9\u8def\u5f84<br \/>\n ssl_certificate  cloud<span class=\"token punctuation\">.<\/span>tencent<span class=\"token punctuation\">.<\/span>com_bundle<span class=\"token punctuation\">.<\/span>crt<span class=\"token punctuation\">;<\/span><br \/>\n #\u8bf7\u586b\u5199\u79c1\u94a5\u6587\u4ef6\u7684\u76f8\u5bf9\u8def\u5f84\u6216\u7edd\u5bf9\u8def\u5f84<br \/>\n ssl_certificate_key cloud<span class=\"token punctuation\">.<\/span>tencent<span class=\"token punctuation\">.<\/span>com<span class=\"token punctuation\">.<\/span>key<span class=\"token punctuation\">;<\/span><br \/>\n ssl_session_timeout 5m<span class=\"token punctuation\">;<\/span><br \/>\n #\u8bf7\u6309\u7167\u4ee5\u4e0b\u5957\u4ef6\u914d\u7f6e&#xff0c;\u914d\u7f6e\u52a0\u5bc6\u5957\u4ef6&#xff0c;\u5199\u6cd5\u9075\u5faa openssl \u6807\u51c6\u3002<br \/>\n ssl_ciphers <span class=\"token constant\">ECDHE<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token constant\">RSA<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token constant\">AES128<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token constant\">GCM<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token constant\">SHA256<\/span><span class=\"token operator\">:<\/span><span class=\"token constant\">ECDHE<\/span><span class=\"token operator\">:<\/span><span class=\"token constant\">ECDH<\/span><span class=\"token operator\">:<\/span><span class=\"token constant\">AES<\/span><span class=\"token operator\">:<\/span><span class=\"token constant\">HIGH<\/span><span class=\"token operator\">:<\/span><span class=\"token operator\">!<\/span><span class=\"token constant\">NULL<\/span><span class=\"token operator\">:<\/span><span class=\"token operator\">!<\/span>aNULL<span class=\"token operator\">:<\/span><span class=\"token operator\">!<\/span><span class=\"token constant\">MD5<\/span><span class=\"token operator\">:<\/span><span class=\"token operator\">!<\/span><span class=\"token constant\">ADH<\/span><span class=\"token operator\">:<\/span><span class=\"token operator\">!<\/span><span class=\"token constant\">RC4<\/span><span class=\"token punctuation\">;<\/span><br \/>\n #\u8bf7\u6309\u7167\u4ee5\u4e0b\u534f\u8bae\u914d\u7f6e<br \/>\n ssl_protocols TLSv1<span class=\"token punctuation\">.<\/span><span class=\"token number\">2<\/span> TLSv1<span class=\"token punctuation\">.<\/span><span class=\"token number\">3<\/span><span class=\"token punctuation\">;<\/span><br \/>\n ssl_prefer_server_ciphers on<span class=\"token punctuation\">;<\/span><br \/>\n location <span class=\"token operator\">\/<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n   #\u7f51\u7ad9\u4e3b\u9875\u8def\u5f84\u3002\u6b64\u8def\u5f84\u4ec5\u4f9b\u53c2\u8003&#xff0c;\u5177\u4f53\u8bf7\u60a8\u6309\u7167\u5b9e\u9645\u76ee\u5f55\u64cd\u4f5c\u3002<br \/>\n   #\u4f8b\u5982&#xff0c;\u60a8\u7684\u7f51\u7ad9\u4e3b\u9875\u5728 Nginx \u670d\u52a1\u5668\u7684 <span class=\"token operator\">\/<\/span>etc<span class=\"token operator\">\/<\/span>www \u76ee\u5f55\u4e0b&#xff0c;\u5219\u8bf7\u4fee\u6539 root \u540e\u9762\u7684 html \u4e3a <span class=\"token operator\">\/<\/span>etc<span class=\"token operator\">\/<\/span>www\u3002<br \/>\n   root html<span class=\"token punctuation\">;<\/span><br \/>\n   index index<span class=\"token punctuation\">.<\/span>html index<span class=\"token punctuation\">.<\/span>htm<span class=\"token punctuation\">;<\/span><br \/>\n <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\nserver <span class=\"token punctuation\">{<\/span><br \/>\n listen <span class=\"token number\">80<\/span><span class=\"token punctuation\">;<\/span><br \/>\n #\u8bf7\u586b\u5199\u7ed1\u5b9a\u8bc1\u4e66\u7684\u57df\u540d<br \/>\n server_name cloud<span class=\"token punctuation\">.<\/span>tencent<span class=\"token punctuation\">.<\/span>com<span class=\"token punctuation\">;<\/span><br \/>\n #\u628ahttp\u7684\u57df\u540d\u8bf7\u6c42\u8f6c\u6210https<br \/>\n <span class=\"token keyword\">return<\/span> <span class=\"token number\">301<\/span> <span class=\"token literal-property property\">https<\/span><span class=\"token operator\">:<\/span><span class=\"token operator\">\/<\/span><span class=\"token operator\">\/<\/span>$host$request_uri<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u6ce8\u610f&#xff1a;\u8bb0\u5f97\u5728\u5b89\u5168\u7ec4\u4e2d\u5f00\u653e443\u7aef\u53e3<\/p>\n<h2>\u56db\u3001\u542f\u52a8nginx<\/h2>\n<p>\u5148\u9a8c\u8bc1\u4e0b\u914d\u7f6e\u6587\u4ef6\u662f\u5426OK,\u8fdb\u5165\u5230sbin\u76ee\u5f55\u4e0b<\/p>\n<p> <span class=\"token punctuation\">.<\/span><span class=\"token operator\">\/<\/span>nginx <span class=\"token operator\">&#8211;<\/span>t<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418173750-68028dee959ec.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6ca1\u95ee\u9898\u91cd\u542fnginx<\/p>\n<p>systemctl restart nginx<\/p>\n<p>\u81f3\u6b64\u5c31\u5b8c\u4e8b\u4e86&#xff0c;\u8bbf\u95ee\u4f60\u7684\u57df\u540d&#xff0c;\u53d1\u73b0\u6709\u8fd9\u4e2a\u5c0f\u9501&#xff0c;\u8bf4\u660e\u6ca1\u95ee\u9898\u4e86 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418173750-68028deed664b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u597d\u7528\u7684\u8bdd\u4e0d\u59a8\u70b9\u8d5e\u6536\u85cf\u5173\u6ce8\u5440~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb9.2k\u6b21\uff0c\u70b9\u8d5e30\u6b21\uff0c\u6536\u85cf39\u6b21\u3002\u5982\u679c\u6ca1\u6709\uff0c\u63a5\u4e0b\u6765\u8fdb\u5165\u5230\u4f60\u7684\u89e3\u538b\u7f29\u540e\u7684nginx\u76ee\u5f55\uff0c\u6ce8\u610f\u8fd9\u91cc\u4e0d\u662fnginx\u5b89\u88c5\u76ee\u5f55\uff0c\u662f\u89e3\u538b\u7f29\u540e\u7684\u76ee\u5f55\uff0c\u6211\u7684\u662f\u5728\uff08\/user\/local\/nginx-1.24.0\uff09\uff0c\u8fdb\u5165\u5230\u4f60\u7684nginx\u5b89\u88c5\u76ee\u5f55\u4e0b\u9762\uff0c\u6211\u7684\u76ee\u5f55\u662f\u5728\uff08\/usr\/local\/nginx\uff09\uff0c\u5982\u679c\u4f60\u7684nginx\u5b89\u88c5\u6b65\u9aa4\u548c\u6211\u4e00\u81f4\u7684\u8bdd\u3002\u5c06\u4e0b\u8f7d\u597d\u7684\u8bc1\u4e66\u4e0a\u4e0a\u4f20\u5230\u670d\u52a1\u5668\uff0c\u6211\u5c06\u8bc1\u4e66\u653e\u5728\u4e86\/usr\/local\/nginx\/conf\u76ee\u5f55\u4e0b\u7684ssl\u6587\u4ef6\u5939\u3002\u505c\u6389nginx\u670d\u52a1\uff0c\u4f7f\u7528\u65b0\u7684nginx\u6587\u4ef6\u66ff\u6362\u6389\u4e4b\u524d\u5b89\u88c5\u76ee\u5f55sbin\u4e0b\u7684nginx\u3002\u66ff\u6362\u6389\u4e4b\u524d\u7684nginx\u3002_nginx ssl\u8bc1\u4e66\u914d\u7f6e<\/p>\n","protected":false},"author":2,"featured_media":19287,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[117,606,43],"topic":[],"class_list":["post-19292","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-nginx","tag-ssl","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Nginx \u670d\u52a1\u5668 SSL \u8bc1\u4e66\u5b89\u88c5\u90e8\u7f72\u5e76\u914d\u7f6e\uff08\u5df2\u5b9e\u6d4b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/19292.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Nginx \u670d\u52a1\u5668 SSL \u8bc1\u4e66\u5b89\u88c5\u90e8\u7f72\u5e76\u914d\u7f6e\uff08\u5df2\u5b9e\u6d4b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb9.2k\u6b21\uff0c\u70b9\u8d5e30\u6b21\uff0c\u6536\u85cf39\u6b21\u3002\u5982\u679c\u6ca1\u6709\uff0c\u63a5\u4e0b\u6765\u8fdb\u5165\u5230\u4f60\u7684\u89e3\u538b\u7f29\u540e\u7684nginx\u76ee\u5f55\uff0c\u6ce8\u610f\u8fd9\u91cc\u4e0d\u662fnginx\u5b89\u88c5\u76ee\u5f55\uff0c\u662f\u89e3\u538b\u7f29\u540e\u7684\u76ee\u5f55\uff0c\u6211\u7684\u662f\u5728\uff08\/user\/local\/nginx-1.24.0\uff09\uff0c\u8fdb\u5165\u5230\u4f60\u7684nginx\u5b89\u88c5\u76ee\u5f55\u4e0b\u9762\uff0c\u6211\u7684\u76ee\u5f55\u662f\u5728\uff08\/usr\/local\/nginx\uff09\uff0c\u5982\u679c\u4f60\u7684nginx\u5b89\u88c5\u6b65\u9aa4\u548c\u6211\u4e00\u81f4\u7684\u8bdd\u3002\u5c06\u4e0b\u8f7d\u597d\u7684\u8bc1\u4e66\u4e0a\u4e0a\u4f20\u5230\u670d\u52a1\u5668\uff0c\u6211\u5c06\u8bc1\u4e66\u653e\u5728\u4e86\/usr\/local\/nginx\/conf\u76ee\u5f55\u4e0b\u7684ssl\u6587\u4ef6\u5939\u3002\u505c\u6389nginx\u670d\u52a1\uff0c\u4f7f\u7528\u65b0\u7684nginx\u6587\u4ef6\u66ff\u6362\u6389\u4e4b\u524d\u5b89\u88c5\u76ee\u5f55sbin\u4e0b\u7684nginx\u3002\u66ff\u6362\u6389\u4e4b\u524d\u7684nginx\u3002_nginx ssl\u8bc1\u4e66\u914d\u7f6e\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/19292.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T17:37:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418173749-68028ded8ba8d.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/19292.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/19292.html\",\"name\":\"Nginx \u670d\u52a1\u5668 SSL \u8bc1\u4e66\u5b89\u88c5\u90e8\u7f72\u5e76\u914d\u7f6e\uff08\u5df2\u5b9e\u6d4b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T17:37:52+00:00\",\"dateModified\":\"2025-04-18T17:37:52+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/19292.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/19292.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/19292.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Nginx \u670d\u52a1\u5668 SSL \u8bc1\u4e66\u5b89\u88c5\u90e8\u7f72\u5e76\u914d\u7f6e\uff08\u5df2\u5b9e\u6d4b\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Nginx \u670d\u52a1\u5668 SSL \u8bc1\u4e66\u5b89\u88c5\u90e8\u7f72\u5e76\u914d\u7f6e\uff08\u5df2\u5b9e\u6d4b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/19292.html","og_locale":"zh_CN","og_type":"article","og_title":"Nginx \u670d\u52a1\u5668 SSL \u8bc1\u4e66\u5b89\u88c5\u90e8\u7f72\u5e76\u914d\u7f6e\uff08\u5df2\u5b9e\u6d4b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb9.2k\u6b21\uff0c\u70b9\u8d5e30\u6b21\uff0c\u6536\u85cf39\u6b21\u3002\u5982\u679c\u6ca1\u6709\uff0c\u63a5\u4e0b\u6765\u8fdb\u5165\u5230\u4f60\u7684\u89e3\u538b\u7f29\u540e\u7684nginx\u76ee\u5f55\uff0c\u6ce8\u610f\u8fd9\u91cc\u4e0d\u662fnginx\u5b89\u88c5\u76ee\u5f55\uff0c\u662f\u89e3\u538b\u7f29\u540e\u7684\u76ee\u5f55\uff0c\u6211\u7684\u662f\u5728\uff08\/user\/local\/nginx-1.24.0\uff09\uff0c\u8fdb\u5165\u5230\u4f60\u7684nginx\u5b89\u88c5\u76ee\u5f55\u4e0b\u9762\uff0c\u6211\u7684\u76ee\u5f55\u662f\u5728\uff08\/usr\/local\/nginx\uff09\uff0c\u5982\u679c\u4f60\u7684nginx\u5b89\u88c5\u6b65\u9aa4\u548c\u6211\u4e00\u81f4\u7684\u8bdd\u3002\u5c06\u4e0b\u8f7d\u597d\u7684\u8bc1\u4e66\u4e0a\u4e0a\u4f20\u5230\u670d\u52a1\u5668\uff0c\u6211\u5c06\u8bc1\u4e66\u653e\u5728\u4e86\/usr\/local\/nginx\/conf\u76ee\u5f55\u4e0b\u7684ssl\u6587\u4ef6\u5939\u3002\u505c\u6389nginx\u670d\u52a1\uff0c\u4f7f\u7528\u65b0\u7684nginx\u6587\u4ef6\u66ff\u6362\u6389\u4e4b\u524d\u5b89\u88c5\u76ee\u5f55sbin\u4e0b\u7684nginx\u3002\u66ff\u6362\u6389\u4e4b\u524d\u7684nginx\u3002_nginx ssl\u8bc1\u4e66\u914d\u7f6e","og_url":"https:\/\/www.wsisp.com\/helps\/19292.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T17:37:52+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418173749-68028ded8ba8d.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/19292.html","url":"https:\/\/www.wsisp.com\/helps\/19292.html","name":"Nginx \u670d\u52a1\u5668 SSL \u8bc1\u4e66\u5b89\u88c5\u90e8\u7f72\u5e76\u914d\u7f6e\uff08\u5df2\u5b9e\u6d4b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T17:37:52+00:00","dateModified":"2025-04-18T17:37:52+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/19292.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/19292.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/19292.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Nginx \u670d\u52a1\u5668 SSL \u8bc1\u4e66\u5b89\u88c5\u90e8\u7f72\u5e76\u914d\u7f6e\uff08\u5df2\u5b9e\u6d4b\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/19292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=19292"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/19292\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/19287"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=19292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=19292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=19292"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=19292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}