{"id":68237,"date":"2026-01-29T22:41:18","date_gmt":"2026-01-29T14:41:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/68237.html"},"modified":"2026-01-29T22:41:18","modified_gmt":"2026-01-29T14:41:18","slug":"ubuntu%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e4%b8%baapache%e7%bd%91%e7%ab%99%e5%ae%89%e8%a3%85%e9%83%a8%e7%bd%b2ssl%e8%af%81%e4%b9%a6%e8%af%a6%e7%bb%86%e6%ad%a5%e9%aa%a4","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/68237.html","title":{"rendered":"Ubuntu\u670d\u52a1\u5668\u4e0a\u4e3aApache\u7f51\u7ad9\u5b89\u88c5\u90e8\u7f72SSL\u8bc1\u4e66\u8be6\u7ec6\u6b65\u9aa4"},"content":{"rendered":"<p>\u73b0\u5728\u5f88\u591aWEB\u670d\u52a1\u5668\u90fd\u662f\u91c7\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u7531\u4e8e\u5de5\u4f5c\u9700\u8981&#xff0c;\u7ecf\u5e38\u90e8\u7f72\u7f51\u7ad9\u53ca\u5176SSL\u8bc1\u4e66&#xff0c;\u4e0b\u9762\u8bb0\u5f55\u4e0b\u65e5\u5e38\u5de5\u4f5c\u5185\u5bb9&#xff1a;\u5728Ubuntu 24.04\u7cfb\u7edf\u4e0a&#xff0c;\u4e3aApache\u7f51\u7ad9\u90e8\u7f72SSL\u8bc1\u4e66\u7684\u901a\u7528\u8be6\u7ec6\u6b65\u9aa4\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u4e3b\u8981\u5206\u4e3a\u83b7\u53d6SSL\u8bc1\u4e66\u548c\u914d\u7f6eApache\u4e24\u4e2a\u5927\u90e8\u5206&#xff0c;\u8bc1\u4e66\u4e5f\u5206\u6536\u8d39\u548c\u514d\u8d39\u7684\u3002<\/p>\n<h4>\u90e8\u7f72SSL\u8bc1\u4e66\u8be6\u7ec6\u6b65\u9aa4<\/h4>\n<h5>\u7b2c\u4e00\u90e8\u5206&#xff1a;\u83b7\u53d6SSL\u8bc1\u4e66<\/h5>\n<p>\u53ef\u4ee5\u9009\u62e9\u514d\u8d39\u6216\u4ed8\u8d39\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784&#xff08;CA&#xff09;\u3002\u6700\u5e38\u7528\u7684\u514d\u8d39\u8bc1\u4e66\u662fLet&#039;s Encrypt\u3002<\/p>\n<p>\u65b9\u6cd5\u4e00&#xff1a;\u4f7f\u7528 Certbot \u83b7\u53d6 Let\u2018s Encrypt \u514d\u8d39\u8bc1\u4e66&#xff08;\u63a8\u8350&#xff09;<\/p>\n<p>\u8fd9\u662f\u6700\u7b80\u4fbf\u548c\u6d41\u884c\u7684\u65b9\u5f0f\u3002<\/p>\n<li>\n<p>\u66f4\u65b0\u7cfb\u7edf\u5e76\u5b89\u88c5Certbot<\/p>\n<p>\u9996\u5148&#xff0c;\u786e\u4fdd\u60a8\u7684\u7cfb\u7edf\u8f6f\u4ef6\u5305\u662f\u6700\u65b0\u7684&#xff0c;\u7136\u540e\u5b89\u88c5Certbot\u53ca\u5176Apache\u63d2\u4ef6\u3002<\/p>\n<p> sudo apt update<br \/>\nsudo apt upgrade -y<br \/>\nsudo apt install certbot python3-certbot-apache -y <\/li>\n<li>\n<p>\u83b7\u53d6\u5e76\u81ea\u52a8\u914d\u7f6e\u8bc1\u4e66<\/p>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;Certbot\u4f1a\u81ea\u52a8\u68c0\u6d4b\u60a8\u7684Apache\u865a\u62df\u4e3b\u673a&#xff0c;\u5e76\u5f15\u5bfc\u60a8\u5b8c\u6210\u914d\u7f6e\u3002\u8bf7\u5c06 www.yourdomain.com\u66ff\u6362\u4e3a\u60a8\u5b9e\u9645\u7684\u57df\u540d\u3002<\/p>\n<p> sudo certbot &#8211;apache -d www.yourdomain.com <\/p>\n<ul>\n<li>\n<p>\u8fc7\u7a0b\u4e2d&#xff0c;Certbot\u4f1a\u63d0\u793a\u60a8\u8f93\u5165\u90ae\u7bb1\u5730\u5740\u7528\u4e8e\u5b89\u5168\u901a\u77e5\u548c\u8d26\u53f7\u6062\u590d\u3002<\/p>\n<\/li>\n<li>\n<p>\u9700\u8981\u9605\u8bfb\u5e76\u540c\u610f\u670d\u52a1\u6761\u6b3e\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b83\u4f1a\u8be2\u95ee\u662f\u5426\u613f\u610f\u5206\u4eab\u60a8\u7684\u90ae\u7bb1\u7ed9\u7535\u5b50\u524d\u6cbf\u57fa\u91d1\u4f1a&#xff08;EFF&#xff09;&#xff0c;\u53ef\u9009\u5426\u3002<\/p>\n<\/li>\n<li>\n<p>\u6700\u540e&#xff0c;\u5b83\u4f1a\u8be2\u95ee\u60a8\u662f\u5426\u5e0c\u671b\u5c06HTTP\u6d41\u91cf\u91cd\u5b9a\u5411\u5230HTTPS\u3002\u5f3a\u70c8\u5efa\u8bae\u9009\u62e9\u201c2\u201d\u6765\u542f\u7528\u91cd\u5b9a\u5411&#xff0c;\u4ee5\u786e\u4fdd\u6240\u6709\u8bbf\u95ee\u90fd\u4f7f\u7528\u5b89\u5168\u7684HTTPS\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u81ea\u52a8\u7eed\u671f\u6d4b\u8bd5<\/p>\n<p>Let\u2018s Encrypt\u8bc1\u4e66\u6709\u6548\u671f\u4e3a90\u5929&#xff0c;\u4f46Certbot\u8bbe\u7f6e\u4e86\u81ea\u52a8\u7eed\u671f\u4efb\u52a1\u3002\u60a8\u53ef\u4ee5\u6d4b\u8bd5\u81ea\u52a8\u7eed\u671f\u662f\u5426\u6b63\u5e38\u5de5\u4f5c&#xff1a;<\/p>\n<p> sudo certbot renew &#8211;dry-run <\/p>\n<p>\u5982\u679c\u6d4b\u8bd5\u6210\u529f&#xff0c;\u8bc1\u4e66\u5c06\u80fd\u591f\u81ea\u52a8\u7eed\u671f&#xff0c;\u65e0\u9700\u624b\u52a8\u5e72\u9884\u3002<\/p>\n<\/li>\n<p>\u65b9\u6cd5\u4e8c&#xff1a;\u4f7f\u7528\u5546\u4e1aSSL\u8bc1\u4e66<\/p>\n<p>\u5982\u679c\u60a8\u4ece\u5176\u4ed6\u63d0\u4f9b\u5546&#xff08;\u5982GoDaddy, DigiCert\u7b49&#xff09;\u8d2d\u4e70\u4e86\u5546\u4e1a\u8bc1\u4e66&#xff0c;\u901a\u5e38\u9700\u8981\u4ee5\u4e0b\u6b65\u9aa4&#xff1a;<\/p>\n<li>\n<p>\u751f\u6210\u8bc1\u4e66\u7b7e\u540d\u8bf7\u6c42&#xff08;CSR&#xff09;<\/p>\n<p>\u5728\u670d\u52a1\u5668\u4e0a\u4f7f\u7528OpenSSL\u751f\u6210\u79c1\u94a5\u548cCSR\u6587\u4ef6\u3002<\/p>\n<p> sudo openssl req -new -newkey rsa:2048 -nodes -keyout \/etc\/ssl\/private\/yourdomain.key -out \/etc\/ssl\/certs\/yourdomain.csr <\/p>\n<ul>\n<li>\n<p>\u7cfb\u7edf\u4f1a\u63d0\u793a\u60a8\u8f93\u5165\u57df\u540d\u4fe1\u606f&#xff08;\u5982Common Name&#xff0c;\u5373\u60a8\u7684\u57df\u540d&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u751f\u6210\u7684 .key\u6587\u4ef6\u662f\u60a8\u7684\u79c1\u94a5&#xff0c;\u52a1\u5fc5\u4fdd\u5bc6\u3002.csr\u6587\u4ef6\u662f\u8bc1\u4e66\u8bf7\u6c42\u6587\u4ef6\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u63d0\u4ea4CSR\u5e76\u4e0b\u8f7d\u8bc1\u4e66<\/p>\n<p>\u5c06\u751f\u6210\u7684 .csr\u6587\u4ef6\u5185\u5bb9\u63d0\u4ea4\u7ed9\u8bc1\u4e66\u63d0\u4f9b\u5546\u3002\u901a\u8fc7\u9a8c\u8bc1\u540e&#xff0c;\u60a8\u5c06\u6536\u5230\u8bc1\u4e66\u6587\u4ef6&#xff08;\u901a\u5e38\u4e3a .crt\u6216 .pem\u683c\u5f0f&#xff09;\u548c\u53ef\u80fd\u7684\u4e2d\u95f4\u8bc1\u4e66&#xff08;Intermediate CA Certificate&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e0a\u4f20\u8bc1\u4e66\u6587\u4ef6<\/p>\n<p>\u5c06\u6536\u5230\u7684\u8bc1\u4e66\u6587\u4ef6&#xff08;\u5982 yourdomain.crt&#xff09;\u548c\u4e2d\u95f4\u8bc1\u4e66\u6587\u4ef6\u4e0a\u4f20\u5230\u670d\u52a1\u5668&#xff0c;\u4f8b\u5982\u653e\u5230 \/etc\/ssl\/certs\/\u76ee\u5f55\u3002\u786e\u4fdd\u60a8\u7684\u79c1\u94a5\u6587\u4ef6&#xff08;yourdomain.key&#xff09;\u5df2\u5728 \/etc\/ssl\/private\/\u76ee\u5f55\u3002<\/p>\n<\/li>\n<h5>\u7b2c\u4e8c\u90e8\u5206&#xff1a;\u914d\u7f6eApache\u4ee5\u4f7f\u7528SSL\u8bc1\u4e66<\/h5>\n<p>\u5982\u679c\u60a8\u4f7f\u7528\u4e86\u4e0a\u9762\u7684\u65b9\u6cd5\u4e00&#xff08;Certbot&#xff09;&#xff0c;\u914d\u7f6e\u901a\u5e38\u662f\u81ea\u52a8\u5b8c\u6210\u7684&#xff0c;\u60a8\u53ef\u4ee5\u8df3\u8fc7\u6b64\u90e8\u5206\u3002\u5982\u679c\u60a8\u662f\u624b\u52a8\u5b89\u88c5\u8bc1\u4e66&#xff08;\u65b9\u6cd5\u4e8c&#xff09;&#xff0c;\u8bf7\u7ee7\u7eed\u3002<\/p>\n<li>\n<p>\u542f\u7528SSL\u6a21\u5757<\/p>\n<p>Apache\u9700\u8981\u52a0\u8f7dSSL\u6a21\u5757\u3002<\/p>\n<p> sudo a2enmod ssl<br \/>\nsudo a2enmod rewrite <\/li>\n<li>\n<p>\u914d\u7f6e\u865a\u62df\u4e3b\u673a<\/p>\n<p>\u60a8\u9700\u8981\u4e3aHTTPS\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6216\u4fee\u6539\u73b0\u6709\u914d\u7f6e\u3002\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e \/etc\/apache2\/sites-available\/\u3002<\/p>\n<ul>\n<li>\n<p>\u7f16\u8f91\u6216\u521b\u5efaSSL\u865a\u62df\u4e3b\u673a\u6587\u4ef6&#xff0c;\u4f8b\u5982 yourdomain-ssl.conf\u3002<\/p>\n<\/li>\n<\/ul>\n<p> sudo nano \/etc\/apache2\/sites-available\/yourdomain-ssl.conf <\/p>\n<ul>\n<li>\n<p>\u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e\u5185\u5bb9&#xff0c;\u5e76\u66ff\u6362\u5176\u4e2d\u7684\u8def\u5f84\u548c\u57df\u540d\u4e3a\u60a8\u7684\u5b9e\u9645\u4fe1\u606f&#xff1a;<\/p>\n<\/li>\n<\/ul>\n<p> &lt;IfModule mod_ssl.c&gt;<br \/>\n    &lt;VirtualHost *:443&gt;<br \/>\n        ServerName www.yourdomain.com<\/p>\n<p>        # \u7f51\u7ad9\u6839\u76ee\u5f55<br \/>\n        DocumentRoot \/var\/www\/html<\/p>\n<p>        # \u65e5\u5fd7\u6587\u4ef6<br \/>\n        ErrorLog ${APACHE_LOG_DIR}\/yourdomain_ssl_error.log<br \/>\n        CustomLog ${APACHE_LOG_DIR}\/yourdomain_ssl_access.log combined<\/p>\n<p>        # SSL \u914d\u7f6e<br \/>\n        SSLEngine on<br \/>\n        # \u8bc1\u4e66\u6587\u4ef6\u8def\u5f84<br \/>\n        SSLCertificateFile \/etc\/ssl\/certs\/yourdomain.crt<br \/>\n        # \u79c1\u94a5\u6587\u4ef6\u8def\u5f84<br \/>\n        SSLCertificateKeyFile \/etc\/ssl\/private\/yourdomain.key<br \/>\n        # \u4e2d\u95f4\u8bc1\u4e66\u6587\u4ef6\u8def\u5f84&#xff08;\u5982\u679c\u6709&#xff09;<br \/>\n        SSLCertificateChainFile \/etc\/ssl\/certs\/yourdomain_intermediate.crt<\/p>\n<p>        # \u5176\u4ed6\u914d\u7f6e&#8230;<br \/>\n    &lt;\/VirtualHost&gt;<\/p>\n<p>    # HTTP \u91cd\u5b9a\u5411\u5230 HTTPS&#xff08;\u53ef\u9009\u4f46\u63a8\u8350&#xff09;<br \/>\n    &lt;VirtualHost *:80&gt;<br \/>\n        ServerName www.yourdomain.com<br \/>\n        Redirect permanent \/ https:\/\/www.yourdomain.com\/<br \/>\n    &lt;\/VirtualHost&gt;<br \/>\n&lt;\/IfModule&gt; <\/li>\n<li>\n<p>\u542f\u7528\u7ad9\u70b9\u5e76\u6d4b\u8bd5\u914d\u7f6e<\/p>\n<ul>\n<li>\n<p>\u542f\u7528\u65b0\u7684SSL\u7ad9\u70b9\u914d\u7f6e&#xff1a;<\/p>\n<p> sudo a2ensite yourdomain-ssl.conf <\/li>\n<li>\n<p>\u68c0\u67e5Apache\u914d\u7f6e\u662f\u5426\u6709\u8bed\u6cd5\u9519\u8bef&#xff1a;<\/p>\n<p> sudo apache2ctl configtest <\/p>\n<ul>\n<li>\n<p>\u5982\u679c\u8f93\u51fa Syntax OK&#xff0c;\u5219\u7ee7\u7eed\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u91cd\u65b0\u52a0\u8f7dApache\u4ee5\u4f7f\u914d\u7f6e\u751f\u6548&#xff1a;<\/p>\n<p> sudo systemctl reload apache2 <\/li>\n<\/ul>\n<\/li>\n<h5>\u7b2c\u4e09\u90e8\u5206&#xff1a;\u9a8c\u8bc1\u90e8\u7f72<\/h5>\n<p>\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9aa4\u540e&#xff0c;\u8bf7\u8fdb\u884c\u9a8c\u8bc1&#xff1a;<\/p>\n<li>\n<p>\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee https:\/\/www.yourdomain.com&#xff0c;\u68c0\u67e5\u5730\u5740\u680f\u662f\u5426\u663e\u793a\u5b89\u5168\u9501\u6807\u5fd7\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f7f\u7528\u5728\u7ebfSSL\u68c0\u6d4b\u5de5\u5177&#xff08;\u5982 SSL Labs SSL Test&#xff09;\u68c0\u67e5\u60a8\u7684\u8bc1\u4e66\u914d\u7f6e\u662f\u5426\u6b63\u786e\u548c\u5b89\u5168\u3002<\/p>\n<\/li>\n<h4>\u91cd\u8981\u5b89\u5168\u63d0\u793a<\/h4>\n<ul>\n<li>\n<p>\u5907\u4efd\u79c1\u94a5&#xff1a;\u60a8\u7684\u79c1\u94a5\u6587\u4ef6&#xff08;.key&#xff09;\u662f\u6838\u5fc3\u673a\u5bc6&#xff0c;\u4e00\u65e6\u4e22\u5931&#xff0c;\u8bc1\u4e66\u5c06\u65e0\u6cd5\u4f7f\u7528&#xff0c;\u8bf7\u59a5\u5584\u5907\u4efd\u3002<\/p>\n<\/li>\n<li>\n<p>\u6587\u4ef6\u6743\u9650&#xff1a;\u786e\u4fdd\u79c1\u94a5\u6587\u4ef6\u53ea\u6709root\u7528\u6237\u53ef\u8bfb&#xff0c;\u6743\u9650\u901a\u5e38\u8bbe\u7f6e\u4e3a 600\u3002<\/p>\n<p> sudo chmod 600 \/etc\/ssl\/private\/yourdomain.key <\/li>\n<li>\n<p>\u9632\u706b\u5899&#xff1a;\u786e\u4fddUbuntu\u7684\u9632\u706b\u5899&#xff08;\u5982 ufw&#xff09;\u5df2\u653e\u884cHTTPS&#xff08;\u7aef\u53e3443&#xff09;\u6d41\u91cf\u3002<\/p>\n<p> sudo ufw allow &#039;Apache Full&#039;<br \/>\n# \u6216\u8005\u5355\u72ec\u5141\u8bb8443\u7aef\u53e3<br \/>\nsudo ufw allow 443\/tcp <\/li>\n<\/ul>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\u5c31\u80fd\u5728Ubuntu 24.04\u7684Apache\u670d\u52a1\u5668\u4e0a\u90e8\u7f72SSL\u8bc1\u4e66&#xff0c;\u4eb2\u6d4b\u8fc73\u4e2a\u7f51\u7ad9\u53ef\u4ee5\u5b9e\u73b0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73b0\u5728\u5f88\u591aWEB\u670d\u52a1\u5668\u90fd\u662f\u91c7\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u7531\u4e8e\u5de5\u4f5c\u9700\u8981&#xff0c;\u7ecf\u5e38\u90e8\u7f72\u7f51\u7ad9\u53ca\u5176SSL\u8bc1\u4e66&#xff0c;\u4e0b\u9762\u8bb0\u5f55\u4e0b\u65e5\u5e38\u5de5\u4f5c\u5185\u5bb9&#xff1a;\u5728Ubuntu 24.04\u7cfb\u7edf\u4e0a&#xff0c;\u4e3aApache\u7f51\u7ad9\u90e8\u7f72SSL\u8bc1\u4e66\u7684\u901a\u7528\u8be6\u7ec6\u6b65\u9aa4\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u4e3b\u8981\u5206\u4e3a\u83b7\u53d6SSL\u8bc1\u4e66\u548c\u914d\u7f6eApache\u4e24\u4e2a\u5927\u90e8\u5206&#xff0c;\u8bc1\u4e66\u4e5f\u5206\u6536\u8d39\u548c\u514d\u8d39\u7684\u3002<br \/>\n\u90e8\u7f72SSL\u8bc1\u4e66\u8be6\u7ec6\u6b65\u9aa4<br \/>\n\u7b2c\u4e00\u90e8\u5206&#xff1a;\u83b7\u53d6SSL\u8bc1\u4e66<br \/>\n\u53ef\u4ee5\u9009\u62e9\u514d\u8d39\u6216\u4ed8\u8d39\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784&amp;#xff0<\/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,606,103],"topic":[],"class_list":["post-68237","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-ssl","tag-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu\u670d\u52a1\u5668\u4e0a\u4e3aApache\u7f51\u7ad9\u5b89\u88c5\u90e8\u7f72SSL\u8bc1\u4e66\u8be6\u7ec6\u6b65\u9aa4 - \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\/68237.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu\u670d\u52a1\u5668\u4e0a\u4e3aApache\u7f51\u7ad9\u5b89\u88c5\u90e8\u7f72SSL\u8bc1\u4e66\u8be6\u7ec6\u6b65\u9aa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u73b0\u5728\u5f88\u591aWEB\u670d\u52a1\u5668\u90fd\u662f\u91c7\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u7531\u4e8e\u5de5\u4f5c\u9700\u8981&#xff0c;\u7ecf\u5e38\u90e8\u7f72\u7f51\u7ad9\u53ca\u5176SSL\u8bc1\u4e66&#xff0c;\u4e0b\u9762\u8bb0\u5f55\u4e0b\u65e5\u5e38\u5de5\u4f5c\u5185\u5bb9&#xff1a;\u5728Ubuntu 24.04\u7cfb\u7edf\u4e0a&#xff0c;\u4e3aApache\u7f51\u7ad9\u90e8\u7f72SSL\u8bc1\u4e66\u7684\u901a\u7528\u8be6\u7ec6\u6b65\u9aa4\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u4e3b\u8981\u5206\u4e3a\u83b7\u53d6SSL\u8bc1\u4e66\u548c\u914d\u7f6eApache\u4e24\u4e2a\u5927\u90e8\u5206&#xff0c;\u8bc1\u4e66\u4e5f\u5206\u6536\u8d39\u548c\u514d\u8d39\u7684\u3002 \u90e8\u7f72SSL\u8bc1\u4e66\u8be6\u7ec6\u6b65\u9aa4 \u7b2c\u4e00\u90e8\u5206&#xff1a;\u83b7\u53d6SSL\u8bc1\u4e66 \u53ef\u4ee5\u9009\u62e9\u514d\u8d39\u6216\u4ed8\u8d39\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784&amp;#xff0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/68237.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-29T14:41:18+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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/68237.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/68237.html\",\"name\":\"Ubuntu\u670d\u52a1\u5668\u4e0a\u4e3aApache\u7f51\u7ad9\u5b89\u88c5\u90e8\u7f72SSL\u8bc1\u4e66\u8be6\u7ec6\u6b65\u9aa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-29T14:41:18+00:00\",\"dateModified\":\"2026-01-29T14:41:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/68237.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/68237.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/68237.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu\u670d\u52a1\u5668\u4e0a\u4e3aApache\u7f51\u7ad9\u5b89\u88c5\u90e8\u7f72SSL\u8bc1\u4e66\u8be6\u7ec6\u6b65\u9aa4\"}]},{\"@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":"Ubuntu\u670d\u52a1\u5668\u4e0a\u4e3aApache\u7f51\u7ad9\u5b89\u88c5\u90e8\u7f72SSL\u8bc1\u4e66\u8be6\u7ec6\u6b65\u9aa4 - \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\/68237.html","og_locale":"zh_CN","og_type":"article","og_title":"Ubuntu\u670d\u52a1\u5668\u4e0a\u4e3aApache\u7f51\u7ad9\u5b89\u88c5\u90e8\u7f72SSL\u8bc1\u4e66\u8be6\u7ec6\u6b65\u9aa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u73b0\u5728\u5f88\u591aWEB\u670d\u52a1\u5668\u90fd\u662f\u91c7\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u7531\u4e8e\u5de5\u4f5c\u9700\u8981&#xff0c;\u7ecf\u5e38\u90e8\u7f72\u7f51\u7ad9\u53ca\u5176SSL\u8bc1\u4e66&#xff0c;\u4e0b\u9762\u8bb0\u5f55\u4e0b\u65e5\u5e38\u5de5\u4f5c\u5185\u5bb9&#xff1a;\u5728Ubuntu 24.04\u7cfb\u7edf\u4e0a&#xff0c;\u4e3aApache\u7f51\u7ad9\u90e8\u7f72SSL\u8bc1\u4e66\u7684\u901a\u7528\u8be6\u7ec6\u6b65\u9aa4\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u4e3b\u8981\u5206\u4e3a\u83b7\u53d6SSL\u8bc1\u4e66\u548c\u914d\u7f6eApache\u4e24\u4e2a\u5927\u90e8\u5206&#xff0c;\u8bc1\u4e66\u4e5f\u5206\u6536\u8d39\u548c\u514d\u8d39\u7684\u3002 \u90e8\u7f72SSL\u8bc1\u4e66\u8be6\u7ec6\u6b65\u9aa4 \u7b2c\u4e00\u90e8\u5206&#xff1a;\u83b7\u53d6SSL\u8bc1\u4e66 \u53ef\u4ee5\u9009\u62e9\u514d\u8d39\u6216\u4ed8\u8d39\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784&amp;#xff0","og_url":"https:\/\/www.wsisp.com\/helps\/68237.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-29T14:41:18+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/68237.html","url":"https:\/\/www.wsisp.com\/helps\/68237.html","name":"Ubuntu\u670d\u52a1\u5668\u4e0a\u4e3aApache\u7f51\u7ad9\u5b89\u88c5\u90e8\u7f72SSL\u8bc1\u4e66\u8be6\u7ec6\u6b65\u9aa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-29T14:41:18+00:00","dateModified":"2026-01-29T14:41:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/68237.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/68237.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/68237.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Ubuntu\u670d\u52a1\u5668\u4e0a\u4e3aApache\u7f51\u7ad9\u5b89\u88c5\u90e8\u7f72SSL\u8bc1\u4e66\u8be6\u7ec6\u6b65\u9aa4"}]},{"@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\/68237","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=68237"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/68237\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=68237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=68237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=68237"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=68237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}