{"id":102678,"date":"2026-09-09T11:33:28","date_gmt":"2026-09-09T03:33:28","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/102678.html"},"modified":"2026-09-09T11:33:28","modified_gmt":"2026-09-09T03:33:28","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8-linux-certbot-nginx-%e9%85%8d%e7%bd%ae-ssl-%e4%b8%8e%e8%87%aa%e5%8a%a8%e7%bb%ad%e6%9c%9f%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/102678.html","title":{"rendered":"\u670d\u52a1\u5668 Linux + Certbot + Nginx \u914d\u7f6e SSL \u4e0e\u81ea\u52a8\u7eed\u671f\u6307\u5357"},"content":{"rendered":"<h2>\u670d\u52a1\u5668 Linux &#043; Certbot &#043; Nginx \u914d\u7f6e SSL \u4e0e\u81ea\u52a8\u7eed\u671f\u6307\u5357<\/h2>\n<hr \/>\n<p>\u8fd9\u662f\u4e00\u7bc7\u4ece \u96f6\u5f00\u59cb\u3001\u8986\u76d6\u300c\u5de5\u5177\u5b89\u88c5 \u2192 \u57df\u540d\u89e3\u6790 \u2192 Nginx \u914d\u7f6e \u2192 SSL \u7533\u8bf7 \u2192 \u81ea\u52a8\u7eed\u671f \u2192 \u9a8c\u8bc1\u673a\u5236 \u2192 \u539f\u7406\u62c6\u89e3 \u2192 \u5e38\u89c1\u5751\u6392\u67e5\u300d\u7684\u751f\u4ea7\u7ea7\u5b9e\u6218\u6559\u7a0b\u3002\u9002\u7528\u4e8e Ubuntu \/ Debian \u7cfb\u670d\u52a1\u5668\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u4e3a\u4ec0\u4e48\u4f60\u9700\u8981 HTTPS&#xff1f;<\/h3>\n<p>\u5728\u73b0\u4ee3\u4e92\u8054\u7f51\u73af\u5883\u4e2d&#xff0c;HTTPS \u5df2\u7ecf\u4e0d\u662f\u201c\u52a0\u5206\u9879\u201d&#xff0c;\u800c\u662f\u57fa\u7840\u8bbe\u65bd&#xff1a;<\/p>\n<ul>\n<li>&#x1f512; \u6570\u636e\u52a0\u5bc6&#xff0c;\u9632\u6b62\u4e2d\u95f4\u4eba\u653b\u51fb<\/li>\n<li>&#x1f9e9; \u6d4f\u89c8\u5668\u4fe1\u4efb\u6807\u8bc6&#xff08;\u5c0f\u9501&#xff09;<\/li>\n<li>&#x1f680; SEO \u6743\u91cd\u66f4\u9ad8<\/li>\n<li>&#x1f6e1;\ufe0f API \/ \u767b\u5f55 \/ \u652f\u4ed8\u63a5\u53e3\u5fc5\u987b HTTPS<\/li>\n<\/ul>\n<p>\u6211\u4eec\u5c06\u4f7f\u7528&#xff1a;<\/p>\n<p>Nginx &#043; Let\u2019s Encrypt &#043; Certbot<\/p>\n<p>\u8fd9\u662f\u4e00\u5957&#xff1a;<\/p>\n<ul>\n<li>\u514d\u8d39<\/li>\n<li>\u81ea\u52a8\u5316<\/li>\n<li>\u88ab\u5927\u89c4\u6a21\u751f\u4ea7\u73af\u5883\u9a8c\u8bc1\u7684\u65b9\u6848<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e8c\u3001\u6574\u4f53\u67b6\u6784\u56fe<\/h3>\n<p>\u6d4f\u89c8\u5668<br \/>\n   \u2193 HTTPS 443<br \/>\n\u516c\u7f51\u57df\u540d (yunyou.space)<br \/>\n   \u2193<br \/>\n\u4e91\u670d\u52a1\u5668\u516c\u7f51 IP<br \/>\n   \u2193<br \/>\nNginx<br \/>\n   \u2193<br \/>\nSSL\u8bc1\u4e66 (Let&#039;s Encrypt)<br \/>\n   \u2193<br \/>\n\u9759\u6001\u9875\u9762 \/ \u540e\u7aef\u670d\u52a1 \/ Docker\u5bb9\u5668<\/p>\n<p>\u8bc1\u4e66\u7eed\u671f\u6d41\u7a0b&#xff1a;<\/p>\n<p>systemd timer<br \/>\n   \u2193<br \/>\ncertbot renew<br \/>\n   \u2193<br \/>\n\u57df\u540d\u9a8c\u8bc1<br \/>\n   \u2193<br \/>\n\u8bc1\u4e66\u66f4\u65b0<br \/>\n   \u2193<br \/>\nnginx reload<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u51c6\u5907\u6761\u4ef6<\/h3>\n<h4>1. \u4e91\u670d\u52a1\u5668<\/h4>\n<ul>\n<li>Ubuntu 20.04 \/ 22.04&#xff08;\u63a8\u8350&#xff09;<\/li>\n<li>\u516c\u7f51 IP<\/li>\n<li>\u53ef SSH \u767b\u5f55<\/li>\n<\/ul>\n<h4>2. \u57df\u540d<\/h4>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>yunyou.space<br \/>\nwww.yunyou.space<br \/>\nnews.yunyou.space<br \/>\nmap.yunyou.space<br \/>\nadvert.yunyou.space<\/p>\n<h4>3. DNS\u89e3\u6790<\/h4>\n<p>\u5728\u4f60\u7684\u57df\u540d\u670d\u52a1\u5546\u63a7\u5236\u53f0\u4e2d\u6dfb\u52a0&#xff1a;<\/p>\n<table>\n<tr>\u7c7b\u578b\u4e3b\u673a\u540d\u503c<\/tr>\n<tbody>\n<tr>\n<td>A<\/td>\n<td>&#064;<\/td>\n<td>\u4f60\u7684\u516c\u7f51IP<\/td>\n<\/tr>\n<tr>\n<td>A<\/td>\n<td>www<\/td>\n<td>\u4f60\u7684\u516c\u7f51IP<\/td>\n<\/tr>\n<tr>\n<td>A<\/td>\n<td>news<\/td>\n<td>\u4f60\u7684\u516c\u7f51IP<\/td>\n<\/tr>\n<tr>\n<td>A<\/td>\n<td>map<\/td>\n<td>\u4f60\u7684\u516c\u7f51IP<\/td>\n<\/tr>\n<tr>\n<td>A<\/td>\n<td>advert<\/td>\n<td>\u4f60\u7684\u516c\u7f51IP<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u9a8c\u8bc1&#xff1a;<\/p>\n<p><span class=\"token function\">dig<\/span> www.yunyou.space<\/p>\n<hr \/>\n<h3>\u56db\u3001\u7cfb\u7edf\u73af\u5883\u521d\u59cb\u5316<\/h3>\n<h4>1. \u66f4\u65b0\u7cfb\u7edf<\/h4>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> upgrade -y<\/p>\n<h4>2. \u5b89\u88c5\u57fa\u7840\u5de5\u5177<\/h4>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> -y <span class=\"token function\">curl<\/span> <span class=\"token function\">wget<\/span> <span class=\"token function\">git<\/span> ufw<\/p>\n<hr \/>\n<h3>\u4e94\u3001\u5b89\u88c5 Nginx<\/h3>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> -y nginx<\/p>\n<p>\u542f\u52a8\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl start nginx<br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> nginx<\/p>\n<p>\u9a8c\u8bc1&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> http:\/\/127.0.0.1<\/p>\n<p>\u516c\u7f51\u9a8c\u8bc1&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> http:\/\/\u4f60\u7684\u516c\u7f51IP<\/p>\n<p>\u6d4f\u89c8\u5668\u8bbf\u95ee&#xff1a;<\/p>\n<p>http:\/\/\u4f60\u7684\u516c\u7f51IP<\/p>\n<p>\u770b\u5230 Nginx \u6b22\u8fce\u9875\u8bf4\u660e\u6210\u529f<\/p>\n<hr \/>\n<h3>\u516d\u3001Nginx \u76ee\u5f55\u7ed3\u6784\u7406\u89e3<\/h3>\n<p>Nginx \u4e3b\u914d\u7f6e\u4e0d\u4f1a\u76f4\u63a5\u5199\u7ad9\u70b9&#xff1a;<\/p>\n<p>\/etc\/nginx\/nginx.conf<\/p>\n<p>\u5b83\u52a0\u8f7d&#xff1a;<\/p>\n<p>include \/etc\/nginx\/sites-enabled\/*;<\/p>\n<p>\u771f\u6b63\u7684\u7f51\u7ad9\u914d\u7f6e\u5728&#xff1a;<\/p>\n<p>\/etc\/nginx\/sites-available\/<br \/>\n\/etc\/nginx\/sites-enabled\/<\/p>\n<p>\u89c4\u5219&#xff1a;<\/p>\n<p>sites-enabled \u662f sites-available \u7684\u8f6f\u94fe\u63a5<\/p>\n<hr \/>\n<h3>\u4e03\u3001\u521b\u5efa\u4f60\u7684\u7f51\u7ad9\u914d\u7f6e<\/h3>\n<h4>1. \u521b\u5efa\u7ad9\u70b9\u6587\u4ef6<\/h4>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/nginx\/sites-available\/yunyou<\/p>\n<h4>2. \u5199\u5165\u914d\u7f6e<\/h4>\n<p>server {<br \/>\n    listen 80;<br \/>\n    server_name<br \/>\n        yunyou.space<br \/>\n        www.yunyou.space<br \/>\n        news.yunyou.space<br \/>\n        map.yunyou.space<br \/>\n        advert.yunyou.space;<\/p>\n<p>    root \/var\/www\/yunyou;<br \/>\n    index index.html;<\/p>\n<p>    location \/ {<br \/>\n        try_files $uri $uri\/ &#061;404;<br \/>\n    }<br \/>\n}<\/p>\n<h4>3. \u542f\u7528\u7ad9\u70b9<\/h4>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">ln<\/span> -s \/etc\/nginx\/sites-available\/yunyou \/etc\/nginx\/sites-enabled\/<\/p>\n<h4>4. \u521b\u5efa\u7f51\u7ad9\u76ee\u5f55<\/h4>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> -p \/var\/www\/yunyou<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/var\/www\/yunyou\/index.html<\/p>\n<p>\u5199\u5165&#xff1a;<\/p>\n<p><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>h1<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>Hello World from yunyou.space<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>h1<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<h4>5. \u91cd\u8f7d Nginx<\/h4>\n<p><span class=\"token function\">sudo<\/span> nginx -t<br \/>\n<span class=\"token function\">sudo<\/span> systemctl reload nginx<\/p>\n<p>\u6d4f\u89c8\u5668\u8bbf\u95ee&#xff1a;<\/p>\n<p>http:\/\/www.yunyou.space<\/p>\n<hr \/>\n<h3>\u516b\u3001\u9632\u706b\u5899\u68c0\u67e5<\/h3>\n<p>Ubuntu \u9ed8\u8ba4\u7528 UFW&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ufw allow <span class=\"token string\">&#039;Nginx Full&#039;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw <span class=\"token builtin class-name\">enable<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw status<\/p>\n<p>\u5fc5\u987b\u5f00\u653e&#xff1a;<\/p>\n<ul>\n<li>80<\/li>\n<li>443<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e5d\u3001\u5b89\u88c5 Certbot<\/h3>\n<h4>\u63a8\u8350 Snap \u65b9\u5f0f<\/h4>\n<p><span class=\"token function\">sudo<\/span> snap <span class=\"token function\">install<\/span> core<br \/>\n<span class=\"token function\">sudo<\/span> snap refresh core<br \/>\n<span class=\"token function\">sudo<\/span> snap <span class=\"token function\">install<\/span> &#8211;classic certbot<\/p>\n<p>\u521b\u5efa\u547d\u4ee4\u8f6f\u94fe\u63a5&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">ln<\/span> -s \/snap\/bin\/certbot \/usr\/bin\/certbot<\/p>\n<hr \/>\n<h3>\u5341\u3001\u7533\u8bf7 HTTPS \u8bc1\u4e66<\/h3>\n<h4>\u4e00\u6b21\u6027\u7533\u8bf7\u6240\u6709\u5b50\u57df<\/h4>\n<p><span class=\"token function\">sudo<\/span> certbot &#8211;nginx <span class=\"token punctuation\">\\\\<\/span><br \/>\n-d yunyou.space <span class=\"token punctuation\">\\\\<\/span><br \/>\n-d www.yunyou.space <span class=\"token punctuation\">\\\\<\/span><br \/>\n-d news.yunyou.space <span class=\"token punctuation\">\\\\<\/span><br \/>\n-d map.yunyou.space <span class=\"token punctuation\">\\\\<\/span><br \/>\n-d advert.yunyou.space<\/p>\n<p>\u8fc7\u7a0b\u4f1a\u95ee\u4f60&#xff1a;<\/p>\n<ul>\n<li>\u90ae\u7bb1<\/li>\n<li>\u662f\u5426\u91cd\u5b9a\u5411 HTTP \u2192 HTTPS&#xff08;\u9009 2 \u63a8\u8350&#xff09;<\/li>\n<\/ul>\n<p>\u6210\u529f\u63d0\u793a&#xff1a;<\/p>\n<p>Congratulations!<\/p>\n<hr \/>\n<h3>\u5341\u4e00\u3001Certbot\u5230\u5e95\u6539\u4e86\u4ec0\u4e48&#xff1f;<\/h3>\n<p>\u5b83\u81ea\u52a8\u5e2e\u4f60\u6539\u4e86&#xff1a;<\/p>\n<p>\/etc\/nginx\/sites-enabled\/yunyou<\/p>\n<p>\u4f60\u4f1a\u770b\u5230&#xff1a;<\/p>\n<h4>HTTP\u91cd\u5b9a\u5411\u5757<\/h4>\n<p>server {<br \/>\n    listen 80;<br \/>\n    server_name yunyou.space www.yunyou.space news.yunyou.space map.yunyou.space advert.yunyou.space;<br \/>\n    return 301 https:\/\/$host$request_uri;<br \/>\n}<\/p>\n<h4>HTTPS\u670d\u52a1\u5757<\/h4>\n<p>server {<br \/>\n    listen 443 ssl;<\/p>\n<p>    ssl_certificate \/etc\/letsencrypt\/live\/yunyou.space\/fullchain.pem;<br \/>\n    ssl_certificate_key \/etc\/letsencrypt\/live\/yunyou.space\/privkey.pem;<\/p>\n<p>    root \/var\/www\/yunyou;<br \/>\n    index index.html;<br \/>\n}<\/p>\n<hr \/>\n<h3>\u5341\u4e8c\u3001\u8bc1\u4e66\u6587\u4ef6\u7ed3\u6784<\/h3>\n<p><span class=\"token function\">ls<\/span> \/etc\/letsencrypt\/live\/yunyou.space<\/p>\n<p>\u4f60\u4f1a\u770b\u5230&#xff1a;<\/p>\n<p>cert.pem<br \/>\nchain.pem<br \/>\nfullchain.pem<br \/>\nprivkey.pem<\/p>\n<p>\u8fd9\u4e9b\u662f\u8f6f\u94fe\u63a5&#xff0c;\u771f\u5b9e\u6587\u4ef6\u5728&#xff1a;<\/p>\n<p>\/etc\/letsencrypt\/archive\/yunyou.space<\/p>\n<hr \/>\n<h3>\u5341\u4e09\u3001\u81ea\u52a8\u7eed\u671f\u673a\u5236<\/h3>\n<p>Certbot \u5b89\u88c5\u540e\u4f1a\u81ea\u52a8\u6ce8\u518c systemd \u5b9a\u65f6\u5668<\/p>\n<p>\u67e5\u770b&#xff1a;<\/p>\n<p>systemctl list-timers <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> certbot<\/p>\n<p>\u4f60\u4f1a\u770b\u5230&#xff1a;<\/p>\n<p>certbot.timer<br \/>\nsnap.certbot.renew.timer<\/p>\n<p>\u6d41\u7a0b&#xff1a;<\/p>\n<p>\u5b9a\u65f6\u5668\u89e6\u53d1<br \/>\n \u2192 certbot renew<br \/>\n \u2192 \u9a8c\u8bc1\u57df\u540d<br \/>\n \u2192 \u66f4\u65b0\u8bc1\u4e66<br \/>\n \u2192 nginx reload<\/p>\n<hr \/>\n<h3>\u5341\u56db\u3001\u624b\u52a8\u6d4b\u8bd5\u7eed\u671f<\/h3>\n<p><span class=\"token function\">sudo<\/span> certbot renew &#8211;dry-run<\/p>\n<p>\u6210\u529f\u8f93\u51fa&#xff1a;<\/p>\n<p>Congratulations, all renewals succeeded<\/p>\n<hr \/>\n<h3>\u5341\u4e94\u3001\u9a8c\u8bc1 HTTPS<\/h3>\n<h4>\u6d4f\u89c8\u5668<\/h4>\n<p>\u8bbf\u95ee&#xff1a;<\/p>\n<p>https:\/\/www.yunyou.space<\/p>\n<h4>\u547d\u4ee4\u884c<\/h4>\n<p><span class=\"token function\">curl<\/span> -I https:\/\/www.yunyou.space<\/p>\n<p>\u4f60\u5e94\u8be5\u770b\u5230&#xff1a;<\/p>\n<p>HTTP\/2 200<\/p>\n<hr \/>\n<h3>\u5341\u516d\u3001\u5de5\u4f5c\u539f\u7406\u62c6\u89e3<\/h3>\n<h4>\u57df\u540d\u5339\u914d\u673a\u5236<\/h4>\n<p>\u6d4f\u89c8\u5668\u8bbf\u95ee&#xff1a;<\/p>\n<p>news.yunyou.space<\/p>\n<p>Nginx \u4f1a&#xff1a;<\/p>\n<li>\u63a5\u6536\u8bf7\u6c42<\/li>\n<li>\u8bfb\u53d6 Host Header<\/li>\n<li>\u5339\u914d server_name<\/li>\n<li>\u627e\u5230\u5bf9\u5e94 server \u5757<\/li>\n<li>\u8fd4\u56de\u9875\u9762<\/li>\n<h4>Certbot\u5de5\u4f5c\u539f\u7406<\/h4>\n<p>\u5b83\u672c\u8d28\u662f&#xff1a;<\/p>\n<p>Nginx \u914d\u7f6e\u89e3\u6790\u5668 &#043; SSL\u914d\u7f6e\u751f\u6210\u5668<\/p>\n<p>\u6267\u884c\u6d41\u7a0b&#xff1a;<\/p>\n<p>\u626b\u63cfNginx\u914d\u7f6e<br \/>\n \u2192 \u627eserver_name<br \/>\n \u2192 \u63d2\u5165SSL\u914d\u7f6e<br \/>\n \u2192 \u5199\u56de\u6587\u4ef6<br \/>\n \u2192 nginx -t<br \/>\n \u2192 reload<\/p>\n<hr \/>\n<h3>\u5341\u4e03\u3001\u591a\u670d\u52a1\u67b6\u6784\u6269\u5c55<\/h3>\n<p>\u5982\u679c\u4f60\u540e\u9762\u4f7f\u7528 Docker \/ \u5fae\u670d\u52a1&#xff1a;<\/p>\n<p>\u7ed3\u6784\u63a8\u8350&#xff1a;<\/p>\n<p>Nginx (443)<br \/>\n  \u251c\u2500 news \u2192 localhost:1997<br \/>\n  \u251c\u2500 map \u2192 localhost:1996<br \/>\n  \u251c\u2500 advert \u2192 localhost:1998<\/p>\n<p>\u793a\u4f8b\u53cd\u5411\u4ee3\u7406&#xff1a;<\/p>\n<p>location \/ {<br \/>\n    proxy_pass http:\/\/127.0.0.1:1997;<br \/>\n}<\/p>\n<hr \/>\n<h3>\u5341\u516b\u3001\u5e38\u89c1\u95ee\u9898<\/h3>\n<h4>Q1: \u516c\u7f51\u80fd\u8bbf\u95eeIP&#xff0c;\u57df\u540d\u8bbf\u95ee\u4e0d\u4e86<\/h4>\n<p>\u2192 DNS\u6ca1\u751f\u6548<\/p>\n<h4>Q2: HTTPS\u62a5\u8bc1\u4e66\u9519\u8bef<\/h4>\n<p>\u2192 \u57df\u540d\u548c\u8bc1\u4e66\u4e0d\u5339\u914d<\/p>\n<h4>Q3: \u7eed\u671f\u5931\u8d25<\/h4>\n<p>\u2192 80\u7aef\u53e3\u88ab\u9632\u706b\u5899\u5c01\u4e86<\/p>\n<hr \/>\n<h3>\u5341\u4e5d\u3001\u751f\u4ea7\u5efa\u8bae<\/h3>\n<ul>\n<li>\u542f\u7528 HTTP\/2<\/li>\n<li>\u6dfb\u52a0\u5b89\u5168\u5934<\/li>\n<li>\u542f\u7528 OCSP Stapling<\/li>\n<li>\u914d\u5408 Docker \/ K8s<\/li>\n<\/ul>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>\u670d\u52a1\u5668 Linux  Certbot  Nginx \u914d\u7f6e SSL \u4e0e\u81ea\u52a8\u7eed\u671f\u6307\u5357\u8fd9\u662f\u4e00\u7bc7\u4ece \u96f6\u5f00\u59cb\u3001\u8986\u76d6\u300c\u5de5\u5177\u5b89\u88c5 \u2192 \u57df\u540d\u89e3\u6790 \u2192 Nginx \u914d\u7f6e \u2192 SSL \u7533\u8bf7 \u2192 \u81ea\u52a8\u7eed\u671f \u2192 \u9a8c\u8bc1\u673a\u5236 \u2192 \u539f\u7406\u62c6\u89e3 \u2192 \u5e38\u89c1\u5751\u6392\u67e5\u300d\u7684\u751f\u4ea7\u7ea7\u5b9e\u6218\u6559\u7a0b\u3002\u9002\u7528\u4e8e Ubuntu \/ Debian \u7cfb\u670d\u52a1\u5668\u3002\u4e00\u3001\u4e3a\u4ec0\u4e48\u4f60\u9700\u8981 HTTPS&#xff1f;<br \/>\n\u5728\u73b0\u4ee3\u4e92\u8054\u7f51\u73af\u5883\u4e2d&#xff0c;HTTPS \u5df2\u7ecf\u4e0d\u662f\u201c\u52a0\u5206\u9879\u201d&#xff0c;\u800c\u662f\u57fa\u7840\u8bbe\u65bd&#xff1a;<br \/>\n&#x1f512; \u6570\u636e\u52a0\u5bc6<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,117,606,43],"topic":[],"class_list":["post-102678","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","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>\u670d\u52a1\u5668 Linux + Certbot + Nginx \u914d\u7f6e SSL \u4e0e\u81ea\u52a8\u7eed\u671f\u6307\u5357 - \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\/102678.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u670d\u52a1\u5668 Linux + Certbot + Nginx \u914d\u7f6e SSL \u4e0e\u81ea\u52a8\u7eed\u671f\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u670d\u52a1\u5668 Linux Certbot Nginx \u914d\u7f6e SSL \u4e0e\u81ea\u52a8\u7eed\u671f\u6307\u5357\u8fd9\u662f\u4e00\u7bc7\u4ece \u96f6\u5f00\u59cb\u3001\u8986\u76d6\u300c\u5de5\u5177\u5b89\u88c5 \u2192 \u57df\u540d\u89e3\u6790 \u2192 Nginx \u914d\u7f6e \u2192 SSL \u7533\u8bf7 \u2192 \u81ea\u52a8\u7eed\u671f \u2192 \u9a8c\u8bc1\u673a\u5236 \u2192 \u539f\u7406\u62c6\u89e3 \u2192 \u5e38\u89c1\u5751\u6392\u67e5\u300d\u7684\u751f\u4ea7\u7ea7\u5b9e\u6218\u6559\u7a0b\u3002\u9002\u7528\u4e8e Ubuntu \/ Debian \u7cfb\u670d\u52a1\u5668\u3002\u4e00\u3001\u4e3a\u4ec0\u4e48\u4f60\u9700\u8981 HTTPS&#xff1f; \u5728\u73b0\u4ee3\u4e92\u8054\u7f51\u73af\u5883\u4e2d&#xff0c;HTTPS \u5df2\u7ecf\u4e0d\u662f\u201c\u52a0\u5206\u9879\u201d&#xff0c;\u800c\u662f\u57fa\u7840\u8bbe\u65bd&#xff1a; &#x1f512; \u6570\u636e\u52a0\u5bc6\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/102678.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-09T03:33:28+00:00\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/102678.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/102678.html\",\"name\":\"\u670d\u52a1\u5668 Linux + Certbot + Nginx \u914d\u7f6e SSL \u4e0e\u81ea\u52a8\u7eed\u671f\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-09T03:33:28+00:00\",\"dateModified\":\"2026-09-09T03:33:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/102678.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/102678.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/102678.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u670d\u52a1\u5668 Linux + Certbot + Nginx \u914d\u7f6e SSL \u4e0e\u81ea\u52a8\u7eed\u671f\u6307\u5357\"}]},{\"@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":"\u670d\u52a1\u5668 Linux + Certbot + Nginx \u914d\u7f6e SSL \u4e0e\u81ea\u52a8\u7eed\u671f\u6307\u5357 - \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\/102678.html","og_locale":"zh_CN","og_type":"article","og_title":"\u670d\u52a1\u5668 Linux + Certbot + Nginx \u914d\u7f6e SSL \u4e0e\u81ea\u52a8\u7eed\u671f\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u670d\u52a1\u5668 Linux Certbot Nginx \u914d\u7f6e SSL \u4e0e\u81ea\u52a8\u7eed\u671f\u6307\u5357\u8fd9\u662f\u4e00\u7bc7\u4ece \u96f6\u5f00\u59cb\u3001\u8986\u76d6\u300c\u5de5\u5177\u5b89\u88c5 \u2192 \u57df\u540d\u89e3\u6790 \u2192 Nginx \u914d\u7f6e \u2192 SSL \u7533\u8bf7 \u2192 \u81ea\u52a8\u7eed\u671f \u2192 \u9a8c\u8bc1\u673a\u5236 \u2192 \u539f\u7406\u62c6\u89e3 \u2192 \u5e38\u89c1\u5751\u6392\u67e5\u300d\u7684\u751f\u4ea7\u7ea7\u5b9e\u6218\u6559\u7a0b\u3002\u9002\u7528\u4e8e Ubuntu \/ Debian \u7cfb\u670d\u52a1\u5668\u3002\u4e00\u3001\u4e3a\u4ec0\u4e48\u4f60\u9700\u8981 HTTPS&#xff1f; \u5728\u73b0\u4ee3\u4e92\u8054\u7f51\u73af\u5883\u4e2d&#xff0c;HTTPS \u5df2\u7ecf\u4e0d\u662f\u201c\u52a0\u5206\u9879\u201d&#xff0c;\u800c\u662f\u57fa\u7840\u8bbe\u65bd&#xff1a; &#x1f512; \u6570\u636e\u52a0\u5bc6","og_url":"https:\/\/www.wsisp.com\/helps\/102678.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-09T03:33:28+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/102678.html","url":"https:\/\/www.wsisp.com\/helps\/102678.html","name":"\u670d\u52a1\u5668 Linux + Certbot + Nginx \u914d\u7f6e SSL \u4e0e\u81ea\u52a8\u7eed\u671f\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-09T03:33:28+00:00","dateModified":"2026-09-09T03:33:28+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/102678.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/102678.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/102678.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u670d\u52a1\u5668 Linux + Certbot + Nginx \u914d\u7f6e SSL \u4e0e\u81ea\u52a8\u7eed\u671f\u6307\u5357"}]},{"@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\/102678","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=102678"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/102678\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=102678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=102678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=102678"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=102678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}