{"id":49698,"date":"2025-07-30T18:57:45","date_gmt":"2025-07-30T10:57:45","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/49698.html"},"modified":"2025-07-30T18:57:45","modified_gmt":"2025-07-30T10:57:45","slug":"linuxubuntu%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%85%8d%e8%b4%b9ssl%e8%af%81%e4%b9%a6%e5%ae%89%e8%a3%85%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/49698.html","title":{"rendered":"Linux(Ubuntu)\u670d\u52a1\u5668\u514d\u8d39SSL\u8bc1\u4e66\u5b89\u88c5\u6559\u7a0b"},"content":{"rendered":"<h2 id=\"%E5%89%8D%E6%83%85%E6%A6%82%E8%A6%81\">\u524d\u60c5\u6982\u8981<\/h2>\n<p>SSL\u8bc1\u4e66&#xff08;\u5b89\u5168\u5957\u63a5\u5b57\u5c42\u8bc1\u4e66&#xff09;\u662f\u4e00\u79cd\u6570\u5b57\u8bc1\u4e66&#xff0c;\u7528\u4e8e\u5728\u5ba2\u6237\u7aef&#xff08;\u5982\u6d4f\u89c8\u5668&#xff09;\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u5efa\u7acb\u52a0\u5bc6\u8fde\u63a5&#xff0c;\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u5b89\u5168\u6027\u3002\u4e0b\u6587\u4ee5Apache\u670d\u52a1\u4e3a\u4f8b\u3002<\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E4%B8%80%EF%BC%8C%E7%94%B3%E8%AF%B7%E8%AF%81%E4%B9%A6-toc\" style=\"margin-left:0px\">\u4e00&#xff0c;\u7533\u8bf7\u8bc1\u4e66<\/p>\n<p id=\"%E8%AF%81%E4%B9%A6%E5%88%B0Linux%E6%9C%8D%E5%8A%A1%E5%99%A8-toc\" style=\"margin-left:0px\">\u4e8c&#xff0c;\u4e0a\u4f20\u8bc1\u4e66\u5230Linux\u670d\u52a1\u5668<\/p>\n<p id=\"%E4%B8%89%EF%BC%8C%E9%85%8D%E7%BD%AEApache%E7%9B%B8%E5%85%B3%E8%AE%BE%E7%BD%AE-toc\" style=\"margin-left:0px\">\u4e09&#xff0c;\u914d\u7f6eApache\u76f8\u5173\u8bbe\u7f6e(\u9644\u57df\u540d\u7ed1\u5b9a\u5230Apache\u6559\u7a0b)<\/p>\n<p id=\"%E5%9B%9B%EF%BC%8C%E6%9F%A5%E7%9C%8B%E8%AF%81%E4%B9%A6%E6%98%AF%E5%90%A6%E6%88%90%E5%8A%9F%E9%85%8D%E7%BD%AE-toc\" style=\"margin-left:0px\">\u56db&#xff0c;\u67e5\u770b\u8bc1\u4e66\u662f\u5426\u6210\u529f\u914d\u7f6e<\/p>\n<\/p>\n<h2 id=\"%E4%B8%80%EF%BC%8C%E7%94%B3%E8%AF%B7%E8%AF%81%E4%B9%A6\">\u4e00&#xff0c;\u7533\u8bf7\u8bc1\u4e66<\/h2>\n<p>\u5728\u5404\u5927\u4e91\u670d\u52a1\u5e73\u53f0\u5982&#xff08;\u963f\u91cc\u4e91 \u817e\u8baf\u4e91 \u4eac\u4e1c\u4e91&#8230;&#xff09;\u7684 \u4ea7\u54c1\u63a7\u5236\u53f0 \u53ef\u7533\u8bf7\u514d\u8d39\u8bc1\u4e66&#xff0c;\u8fd9\u91cc\u4ee5\u817e\u8baf\u4e91\u4e3a\u4f8b:\u6211\u7684\u8bc1\u4e66 &#8211; SSL \u8bc1\u4e66 &#8211; \u63a7\u5236\u53f0<\/p>\n<p>1.\u767b\u5f55\u4e91\u5e73\u53f0 <span style=\"color:#fe2c24\">\u9996\u6b21\u4f7f\u7528\u8bb0\u5f97\u5b9e\u540d\u8ba4\u8bc1<\/span>&#xff0c;\u4e4b\u540e\u5728\u63a7\u5236\u53f0\u641c\u7d22\u8bc1\u4e66&#xff0c;\u6216\u8005ssl\u7b49\u5173\u952e\u8bcd \u8fdb\u5165\u56fe\u4e0b\u754c\u9762&#xff0c;<span style=\"color:#4da8ee\">\u70b9\u51fb\u7533\u8bf7\u514d\u8d39\u8bc1\u4e66<\/span>\u6709\u6548\u671f\u4e3a\u4e09\u4e2a\u6708&#xff0c;\u4e5f\u53ef\u8d2d\u4e70\u65f6\u957f\u66f4\u4e45\u7684\u8bc1\u4e66<\/p>\n<p><span style=\"color:#0d0016\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730105659-6889fa7b1dfe0.png\" \/><\/span><\/p>\n<\/p>\n<p>2.\u6765\u5230\u8d2d\u4e70\u9875\u9762&#xff0c;\u70b9\u51fb\u7533\u8bf7\u514d\u8d39\u8bc1\u4e66<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730105711-6889fa8779a16.png\" \/><\/p>\n<\/p>\n<p>\u00a03.\u586b\u5199\u7533\u8bf7\u8d44\u6599&#xff0c;\u8bc1\u4e66\u7ed1\u5b9a\u57df\u540d\u586b \u81ea\u5df1\u60f3\u8981\u7533\u8bf7ssl\u8bc1\u4e66\u7684\u57df\u540d&#xff0c;\u4e00\u822c1~2h\u5185&#xff0c;\u8bc1\u4e66\u6587\u4ef6\u4f1a\u4e0b\u53d1<\/p>\n<p>\u9a8c\u8bc1\u57df\u540d\u65f6\u8bb0\u5f97\u8981\u6309\u8981\u6c42&#xff0c;\u5230\u81ea\u5df1\u57df\u540d\u7684\u6ce8\u518c\u5e73\u53f0\u89e3\u6790txt\u7c7b\u578b\u7684\u8bb0\u5f55\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730105716-6889fa8cdee8a.png\" \/><\/p>\n<\/p>\n<p>4.\u4e0b\u53d1\u6210\u529f\u540e&#xff0c;\u5c31\u53ef\u4ee5\u5728\u63a7\u5236\u53f0 \u4e0b\u8f7d\u8bc1\u4e66\u6587\u4ef6\u5230\u670d\u52a1\u5668\u4e86&#xff0c;\u5982\u56fe\u70b9\u51fb\u4e0b\u8f7d<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730105727-6889fa978649b.png\" \/><\/p>\n<\/p>\n<h2 id=\"%E8%AF%81%E4%B9%A6%E5%88%B0Linux%E6%9C%8D%E5%8A%A1%E5%99%A8\">\u4e8c&#xff0c;\u4e0a\u4f20\u8bc1\u4e66\u5230Linux\u670d\u52a1\u5668<\/h2>\n<p>1.\u5c06\u4e0b\u8f7d\u597d\u7684\u6587\u4ef6\u901a\u8fc7sftp&#xff0c;\u6216\u8005ftp\u7b49\u65b9\u5f0f\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u7684\u6587\u4ef6\u5939\u91cc\u3002\u7406\u8bba\u4e0a\u6587\u4ef6\u53ef\u4ee5\u653e\u5728\u4efb\u4f55\u4f4d\u7f6e&#xff0c;\u4f46\u4e3a\u4e86\u65b9\u4fbf\u7ba1\u7406&#xff0c;\u53ef\u4ee5\u81ea\u5df1\u521b\u5efa\u4e00\u4e2assl\u6587\u4ef6\u5939&#xff0c;\u7528\u4e8e\u4e13\u95e8\u5b58\u653e\u8bc1\u4e66\u6587\u4ef6&#xff0c;\u7ec8\u7aef\u547d\u4ee4\u5982\u4e0b:<span style=\"color:#4da8ee\">mkdir \/etc\/apache2\/ssl <\/span><span style=\"color:#0d0016\">\u8fd9\u6837\u5c31\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3assl\u7684\u6587\u4ef6\u5939\u3002<\/span><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730105736-6889faa01a5d5.png\" \/><\/p>\n<p>2.\u4e0a\u4f20\u4e4b\u524d\u4e0b\u8f7d\u597d\u7684\u6587\u4ef6\u5230ssl\u6587\u4ef6\u5939\u91cc&#xff0c;\u8fd9\u91cc\u501f\u52a9\u4fbf\u6377\u5de5\u5177filezilla&#xff0c;\u672c\u8d28\u4e0a\u7528\u7684\u662fsftp\u534f\u8bae\u3002<\/p>\n<p>\u6309\u63d0\u793a\u586b\u5199\u8fde\u63a5\u4fe1\u606f&#xff0c;\u8fde\u63a5\u6210\u529f\u540e&#xff0c;<span style=\"color:#fe2c24\">\u5c06\u4e4b\u524d\u4fdd\u5b58\u7684\u8bc1\u4e66\u6587\u4ef6\u627e\u5230\u5e76\u62d6\u62fd\u5230\u53f3\u8fb9\u4e4b\u524d\u521b\u5efa\u7684ssl\u6587\u4ef6\u5939\u91cc\u00a0<\/span><span style=\"color:#0d0016\">\u6210\u529f\u4f20\u8f93\u540e\u5982\u56fe2.<\/span><\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730105736-6889faa0acf9c.png\" \/><\/p>\n<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730105738-6889faa2ede51.png\" \/><\/p>\n<h2 id=\"%E4%B8%89%EF%BC%8C%E9%85%8D%E7%BD%AEApache%E7%9B%B8%E5%85%B3%E8%AE%BE%E7%BD%AE\">\u4e09&#xff0c;\u914d\u7f6eApache\u76f8\u5173\u8bbe\u7f6e<\/h2>\n<p>1.\u4fee\u6539Apache\u83b7\u53d6ssl\u8bc1\u4e66\u7684\u6587\u4ef6\u8def\u5f84&#xff0c;\u4fdd\u8bc1\u670d\u52a1\u80fd\u6b63\u786e\u83b7\u53d6\u6211\u4eec\u4e0a\u4f20\u7684ssl\u8bc1\u4e66\u6587\u4ef6<\/p>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u542f\u7528ssl\u6a21\u5757<\/p>\n<p>sudo a2enmod ssl <\/p>\n<p>\u4e4b\u540e\u4f1a\u5728\/etc\/apache2\/sites-available\u76ee\u5f55\u751f\u6210SSL\u8bc1\u4e66\u914d\u7f6e\u6587\u4ef6default-ssl.conf\u3002\u00a0<\/p>\n<p>2.\u518d\u7528vim\u7f16\u8f91\u5668\u6253\u5f00default-ssl.conf\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>\u6e29\u99a8\u63d0\u793a&#xff1a;(vim\u7f16\u8f91\u5668\u7684\u4f7f\u7528&#xff1a;\u82f1\u6587\u6a21\u5f0f\u4e0b\u6309\u00a0 i\u00a0 \u8fdb\u5165\u7f16\u5199\u63d2\u5165\u6a21\u5f0f&#xff0c;\u6587\u4ef6\u5185\u5bb9\u4fee\u6539\u5b8c\u6210\u540e \u6309 esc \u8fdb\u5165\u53ea\u8bfb\u6a21\u5f0f&#xff0c;\u518d\u6253\u51fa\u5192\u53f7\u00a0 &#xff1a;\u518d\u8f93\u5165 wq \u56de\u8f66&#xff09;\u81f3\u6b64\u5c31\u5b8c\u6210\u4e86\u6587\u4ef6\u7684\u4fee\u6539&#xff0c;\u4fdd\u5b58&#xff0c;\u9000\u51fa\u7684\u62f3\u5e03\u6d41\u7a0b\u3002<\/p>\n<p>vim \/etc\/apache2\/sites-available\/default-ssl.conf <\/p>\n<p>3.\u4fee\u6539\u6587\u4ef6\u83b7\u53d6\u8def\u5f84\u3002<span style=\"color:#fe2c24\">l3l4.xyz\u662f\u793a\u4f8b\u57df\u540d&#xff0c;\u6587\u4e2d\u7684.crt .key\u7b49\u540e\u7f00\u7684\u6587\u4ef6\u9700\u8981\u66ff\u6362\u4e3a\u81ea\u5df1\u8bc1\u4e66\u7684\u6587\u4ef6\u540d&#xff0c;ServerName\u540e\u9762\u7684\u57df\u540d\u4e5f\u9700\u8981\u66ff\u6362\u4e3a\u81ea\u5df1\u7684&#xff0c;\u5426\u5219\u65e0\u6cd5\u751f\u6548<\/span><\/p>\n<p><span style=\"color:#fe2c24\">\u6ce8&#xff1a;<\/span><span style=\"color:#0d0016\">ServerName\u662f\u4f60\u89e3\u6790\u5230\u6b64\u670d\u52a1\u5668\u7684\u57df\u540d&#xff0c;\u5982\u679c\u6ca1\u6709ServerName&#xff0c;\u53ef\u81ea\u884c\u6dfb\u52a0\u3002\u4ed6\u662f\u5b9e\u73b0\u80fd\u5426\u901a\u8fc7\u57df\u540d\u8fdb\u884c\u8bbf\u95ee\u7f51\u7ad9\u7684\u5173\u952e&#xff0c;\u5149\u89e3\u6790\u57df\u540d\u5230\u670d\u52a1\u5668\u662f\u6ca1\u6709\u7528\u7684&#xff0c;\u8fd8\u8981\u5728\u8fd9\u91cc\u8fdb\u884c\u57df\u540d\u7ed1\u5b9a<\/span><\/p>\n<p>ServerName l3l4.xyz  #\u8bf7\u5c06l3l4.xyz\u66ff\u6362\u4e3a\u60a8\u81ea\u5df1\u8bc1\u4e66\u7ed1\u5b9a\u7684\u57df\u540d\u3002\u90e8\u5206\u670d\u52a1\u5668&#xff0c;\u6ca1\u6709\u8be5\u914d\u7f6e\u53c2\u6570&#xff0c;\u60a8\u9700\u8981\u624b\u52a8\u6dfb\u52a0\u3002<br \/>\nSSLCertificateFile \/etc\/apache2\/ssl\/l3l4.xyz.crt  #\u8bc1\u4e66\u6587\u4ef6\u8def\u5f84\u3002\u8bf7\u66ff\u6362\u4e3a\u5b9e\u9645\u8bc1\u4e66\u6587\u4ef6\u8def\u5f84\u3002<br \/>\nSSLCertificateKeyFile \/etc\/apache2\/ssl\/l3l4.xyz.key   #\u8bc1\u4e66\u79c1\u94a5\u6587\u4ef6\u8def\u5f84\u3002\u8bf7\u66ff\u6362\u4e3a\u5b9e\u9645\u8bc1\u4e66\u79c1\u94a5\u6587\u4ef6\u8def\u5f84\u3002<br \/>\nSSLCertificateChainFile \/etc\/apache2\/ssl\/root_bundle.crt  #\u8bc1\u4e66\u94fe\u6587\u4ef6\u8def\u5f84\u3002\u8bf7\u66ff\u6362\u4e3a\u5b9e\u9645\u8bc1\u4e66\u94fe\u6587\u4ef6\u8def\u5f84\u3002 <\/p>\n<p>\u00a04.\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u5c06default-ssl.conf\u6620\u5c04\u81f3\/etc\/apache2\/sites-enabled\u76ee\u5f55&#xff0c;\u5b9e\u73b0\u4e24\u8005\u4e4b\u95f4\u7684\u81ea\u52a8\u5173\u8054\u3002<\/p>\n<p>sudo ln -s \/etc\/apache2\/sites-available\/default-ssl.conf \/etc\/apache2\/sites-enabled\/000-ssl.conf <\/p>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u91cd\u65b0\u52a0\u8f7dApache2\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p>sudo \/etc\/init.d\/apache2 force-reload <\/p>\n<p>\u00a0\u6700\u540e\u91cd\u542fApache\u670d\u52a1<\/p>\n<p>sudo systemctl restart apache2 <\/p>\n<h2 id=\"%C2%A0\"><\/h2>\n<h2 id=\"%E5%9B%9B%EF%BC%8C%E6%9F%A5%E7%9C%8B%E8%AF%81%E4%B9%A6%E6%98%AF%E5%90%A6%E6%88%90%E5%8A%9F%E9%85%8D%E7%BD%AE\">\u56db&#xff0c;\u67e5\u770b\u8bc1\u4e66\u662f\u5426\u6210\u529f\u914d\u7f6e<\/h2>\n<p>\u68c0\u9a8c\u8bc1\u4e66\u662f\u5426\u914d\u7f6e\u6210\u529f&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u628a\u534f\u8bae\u76f4\u63a5\u6362\u4e3a <span style=\"color:#fe2c24\">https:\/\/&#043;\u57df\u540d \u8fdb\u884c\u8bbf\u95ee<\/span><\/p>\n<p>\u6216\u8005\u7528\u00a0<span style=\"color:#fe2c24\">vim \/etc\/apache2\/sites-available\/000-default.conf<\/span>\u00a0\u547d\u4ee4\u6dfb\u52a0\u91cd\u5b9a\u5411\u89c4\u5219&#xff08;\u9700\u8981\u6dfb\u52a0\u7684\u4ee3\u7801\u5982\u4e0b&#xff09;&#xff0c;wq\u4fdd\u5b58\u540e&#xff0c;<span style=\"color:#fe2c24\">sudo a2enmod rewrite<\/span>\u91cd\u65b0\u52a0\u8f7drewrite\u6a21\u5757&#xff0c;<span style=\"color:#fe2c24\">sudo systemctl restart apache2<\/span>&#xff0c;\u91cd\u542fApache\u670d\u52a1&#xff0c;\u4e4b\u540e\u7cfb\u7edf\u4f1a\u81ea\u52a8\u4ee5https\u534f\u8bae\u8fdb\u884c\u8bbf\u95ee&#xff0c;\u5426\u5219\u8f93\u5165\u57df\u540d\u9ed8\u8ba4\u7684\u8fd8\u662fhttp\u534f\u8bae\u8fdb\u884c\u8bbf\u95ee\u3002<\/p>\n<p>RewriteEngine on  #\u5c06\u4ee5\u4e0b\u4e09\u884c\u4ee3\u7801\u590d\u5236\u5230\/etc\/apache2\/sites-available\/000-default.conf\u6587\u4ef6\u91cc<br \/>\nRewriteCond   %{HTTPS} !&#061;on<br \/>\nRewriteRule   ^(.*)  https:\/\/%{SERVER_NAME}$1 [L,R] <\/p>\n<p>\u5982\u56fe\u53ef\u4ee5\u770b\u5230 \u7f51\u5740 \u7531http\u53d8\u4e3a\u4e86https&#xff0c;\u7f51\u9875 \u4e5f\u6ca1\u6709\u4e86\u4e0d\u5b89\u5168\u6216\u8005\u7981\u6b62\u8bbf\u95ee\u7684\u63d0\u793a<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730105740-6889faa495a4c.png\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb803\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728Apache\u670d\u52a1\u5668\u4e0a\u914d\u7f6eSSL\u8bc1\u4e66\u7684\u5b8c\u6574\u6d41\u7a0b\uff1a1\uff09\u5728\u4e91\u5e73\u53f0\uff08\u4ee5\u817e\u8baf\u4e91\u4e3a\u4f8b\uff09\u7533\u8bf7\u514d\u8d39SSL\u8bc1\u4e66\uff1b2\uff09\u901a\u8fc7SFTP\u5de5\u5177\u5c06\u8bc1\u4e66\u6587\u4ef6\u4e0a\u4f20\u81f3\u670d\u52a1\u5668\u6307\u5b9a\u76ee\u5f55\uff1b3\uff09\u4fee\u6539Apache\u914d\u7f6e\u6587\u4ef6default-ssl.conf\uff0c\u8bbe\u7f6e\u8bc1\u4e66\u8def\u5f84\u548c\u57df\u540d\uff1b4\uff09\u542f\u7528SSL\u6a21\u5757\u5e76\u91cd\u542fApache\u670d\u52a1\u3002\u6700\u7ec8\u901a\u8fc7HTTPS\u534f\u8bae\u9a8c\u8bc1\u8bc1\u4e66\u914d\u7f6e\u662f\u5426\u6210\u529f\uff0c\u786e\u4fdd\u7f51\u7ad9\u6570\u636e\u4f20\u8f93\u5b89\u5168\u3002\u6574\u4e2a\u8fc7\u7a0b\u5305\u62ec\u8bc1\u4e66\u7533\u8bf7\u3001\u670d\u52a1\u5668\u914d\u7f6e\u548c\u9a8c\u8bc1\u4e09\u4e2a\u4e3b\u8981\u6b65\u9aa4\u3002\uff08149\u5b57\uff09<\/p>\n","protected":false},"author":2,"featured_media":49690,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[331,622,58,606,103,43],"topic":[],"class_list":["post-49698","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-apache","tag-https","tag-linux","tag-ssl","tag-ubuntu","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux(Ubuntu)\u670d\u52a1\u5668\u514d\u8d39SSL\u8bc1\u4e66\u5b89\u88c5\u6559\u7a0b - \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\/49698.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux(Ubuntu)\u670d\u52a1\u5668\u514d\u8d39SSL\u8bc1\u4e66\u5b89\u88c5\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb803\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728Apache\u670d\u52a1\u5668\u4e0a\u914d\u7f6eSSL\u8bc1\u4e66\u7684\u5b8c\u6574\u6d41\u7a0b\uff1a1\uff09\u5728\u4e91\u5e73\u53f0\uff08\u4ee5\u817e\u8baf\u4e91\u4e3a\u4f8b\uff09\u7533\u8bf7\u514d\u8d39SSL\u8bc1\u4e66\uff1b2\uff09\u901a\u8fc7SFTP\u5de5\u5177\u5c06\u8bc1\u4e66\u6587\u4ef6\u4e0a\u4f20\u81f3\u670d\u52a1\u5668\u6307\u5b9a\u76ee\u5f55\uff1b3\uff09\u4fee\u6539Apache\u914d\u7f6e\u6587\u4ef6default-ssl.conf\uff0c\u8bbe\u7f6e\u8bc1\u4e66\u8def\u5f84\u548c\u57df\u540d\uff1b4\uff09\u542f\u7528SSL\u6a21\u5757\u5e76\u91cd\u542fApache\u670d\u52a1\u3002\u6700\u7ec8\u901a\u8fc7HTTPS\u534f\u8bae\u9a8c\u8bc1\u8bc1\u4e66\u914d\u7f6e\u662f\u5426\u6210\u529f\uff0c\u786e\u4fdd\u7f51\u7ad9\u6570\u636e\u4f20\u8f93\u5b89\u5168\u3002\u6574\u4e2a\u8fc7\u7a0b\u5305\u62ec\u8bc1\u4e66\u7533\u8bf7\u3001\u670d\u52a1\u5668\u914d\u7f6e\u548c\u9a8c\u8bc1\u4e09\u4e2a\u4e3b\u8981\u6b65\u9aa4\u3002\uff08149\u5b57\uff09\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/49698.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-30T10:57:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730105659-6889fa7b1dfe0.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\/49698.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/49698.html\",\"name\":\"Linux(Ubuntu)\u670d\u52a1\u5668\u514d\u8d39SSL\u8bc1\u4e66\u5b89\u88c5\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-30T10:57:45+00:00\",\"dateModified\":\"2025-07-30T10:57:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/49698.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/49698.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/49698.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux(Ubuntu)\u670d\u52a1\u5668\u514d\u8d39SSL\u8bc1\u4e66\u5b89\u88c5\u6559\u7a0b\"}]},{\"@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":"Linux(Ubuntu)\u670d\u52a1\u5668\u514d\u8d39SSL\u8bc1\u4e66\u5b89\u88c5\u6559\u7a0b - \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\/49698.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux(Ubuntu)\u670d\u52a1\u5668\u514d\u8d39SSL\u8bc1\u4e66\u5b89\u88c5\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb803\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728Apache\u670d\u52a1\u5668\u4e0a\u914d\u7f6eSSL\u8bc1\u4e66\u7684\u5b8c\u6574\u6d41\u7a0b\uff1a1\uff09\u5728\u4e91\u5e73\u53f0\uff08\u4ee5\u817e\u8baf\u4e91\u4e3a\u4f8b\uff09\u7533\u8bf7\u514d\u8d39SSL\u8bc1\u4e66\uff1b2\uff09\u901a\u8fc7SFTP\u5de5\u5177\u5c06\u8bc1\u4e66\u6587\u4ef6\u4e0a\u4f20\u81f3\u670d\u52a1\u5668\u6307\u5b9a\u76ee\u5f55\uff1b3\uff09\u4fee\u6539Apache\u914d\u7f6e\u6587\u4ef6default-ssl.conf\uff0c\u8bbe\u7f6e\u8bc1\u4e66\u8def\u5f84\u548c\u57df\u540d\uff1b4\uff09\u542f\u7528SSL\u6a21\u5757\u5e76\u91cd\u542fApache\u670d\u52a1\u3002\u6700\u7ec8\u901a\u8fc7HTTPS\u534f\u8bae\u9a8c\u8bc1\u8bc1\u4e66\u914d\u7f6e\u662f\u5426\u6210\u529f\uff0c\u786e\u4fdd\u7f51\u7ad9\u6570\u636e\u4f20\u8f93\u5b89\u5168\u3002\u6574\u4e2a\u8fc7\u7a0b\u5305\u62ec\u8bc1\u4e66\u7533\u8bf7\u3001\u670d\u52a1\u5668\u914d\u7f6e\u548c\u9a8c\u8bc1\u4e09\u4e2a\u4e3b\u8981\u6b65\u9aa4\u3002\uff08149\u5b57\uff09","og_url":"https:\/\/www.wsisp.com\/helps\/49698.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-30T10:57:45+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730105659-6889fa7b1dfe0.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\/49698.html","url":"https:\/\/www.wsisp.com\/helps\/49698.html","name":"Linux(Ubuntu)\u670d\u52a1\u5668\u514d\u8d39SSL\u8bc1\u4e66\u5b89\u88c5\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-30T10:57:45+00:00","dateModified":"2025-07-30T10:57:45+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/49698.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/49698.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/49698.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux(Ubuntu)\u670d\u52a1\u5668\u514d\u8d39SSL\u8bc1\u4e66\u5b89\u88c5\u6559\u7a0b"}]},{"@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\/49698","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=49698"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/49698\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/49690"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=49698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=49698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=49698"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=49698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}