{"id":32,"date":"2023-06-05T12:39:01","date_gmt":"2023-06-05T04:39:01","guid":{"rendered":"http:\/\/pro369.com\/linux\/?p=32"},"modified":"2019-05-21T04:49:00","modified_gmt":"2019-05-21T04:49:00","slug":"%e5%9c%a8linux%e4%b8%bb%e6%a9%9f%e4%b8%8a%e6%9e%b6%e8%a8%ad%e5%8a%a0%e5%af%86%e7%9a%84%e7%b6%b2%e9%a0%81%e9%80%9a%e9%81%93%ef%bc%88https%e5%8a%a0%e5%af%86%e7%b6%b2%e9%a0%81%ef%bc%89","status":"publish","type":"post","link":"https:\/\/por.tw\/linux\/%e5%9c%a8linux%e4%b8%bb%e6%a9%9f%e4%b8%8a%e6%9e%b6%e8%a8%ad%e5%8a%a0%e5%af%86%e7%9a%84%e7%b6%b2%e9%a0%81%e9%80%9a%e9%81%93%ef%bc%88https%e5%8a%a0%e5%af%86%e7%b6%b2%e9%a0%81%ef%bc%89\/","title":{"rendered":"\u5728Linux\u4e3b\u6a5f\u4e0a\u67b6\u8a2d\u52a0\u5bc6\u7684\u7db2\u9801\u901a\u9053\uff08HTTPS\u52a0\u5bc6\u7db2\u9801\uff09"},"content":{"rendered":"<p><font size=\"3\" style=\"background-color: #ffff00\"><strong>\u5728Linux\u4e3b\u6a5f\u4e0a\u67b6\u8a2d\u52a0\u5bc6\u7684\u7db2\u9801\u901a\u9053\uff08HTTPS\u52a0\u5bc6\u7db2\u9801\uff09<\/strong><\/font><\/p>\n<p> \u5728Linux\u4e3b\u6a5f\u4e0a\u67b6\u8a2d\u52a0\u5bc6\u7684\u7db2\u9801\u901a\u9053\uff0c\u9069\u7528\u8f03\u6a5f\u5bc6(\u8981\u8a8d\u8b49)\u7684\u7db2\u9801\u3002<br \/> \u4e00\u822c\u800c\u8a00\uff0c\u7db2\u8def\u4e0a\u6240\u6709\u7684\u50b3\u8f38\u7686\u662f\u516c\u958b\u7684\uff0c\u82e5\u6709\u4eba\uff0c\u80af\u82b1\u5fc3\u601d\u53d6\u5f97\u60a8\u7684\u6240\u6709\u7db2\u8def\u5c01\u5305\uff0c\u90a3\u9ebc\u60a8\u5728\u7db2\u8def\u6240\u8f38\u5165\u7684\u5e33\u865f\u5bc6\u78bc\u5c07\u7121\u6240\u9041\u5f62\u3002<br \/> \u56e0\u6b64\uff0c\u7db2\u9801\u8cc7\u6599\u5eab\u6216 webmail \u7b49\u7db2\u9801\u61c9\u7528\u7a0b\u5f0f\uff0c\u6700\u597d\u662f\u5728\u52a0\u5bc6\u7684\u901a\u9053\u4e0a\u9032\u884c\uff0c<font color=\"#ff00ff\"><strong>\u5c31\u7b97\u662f\u6709\u5fc3\u4eba\u53d6\u5f97\u60a8\u7684\u7db2\u8def\u5c01\u5305\uff0c\u4e5f\u53ea\u662f\u4e00\u5806\u4e82\u78bc\u3002<\/strong><\/font><br \/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/visdacom.com\/linux\/wp-content\/uploads\/2013\/04\/2067417449.jpg\"  width=\"680\" height=\"549\" \/><\/p>\n<p> <font size=\"3\" color=\"#0000ff\"><strong>\u5b89\u88dd\u6b65\u9a5f<\/strong><\/font><\/p>\n<p> <font color=\"#008000\"><strong>\u3000\u4ee5\u4e0b\u52d5\u4f5c\uff0c\u7686\u662f\u4ee5 root \u8eab\u4efd\u57f7\u884c<br \/> \u5efa\u7acb \/etc\/apache2\/apache.pem \u6a94<\/strong><\/font><\/p>\n<p> &nbsp;&nbsp;&nbsp; * openssl req $@ -new -x509 -days 365 -nodes -out \/etc\/apache2\/apache.pem -keyout \/etc\/apache2\/apache.pem<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o Country Name (2 letter code) [AU]: TW<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o State or Province Name (full name) [Some-State]:Taiwan<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o Locality Name (eg\uff0ccity) []: Tainan (\u4f9d\u60a8\u7684\u5730\u5340\u800c\u5b9a)<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o Organization Name (eg\uff0ccompany) [Internet Widgits Pty Ltd]: Da Cheng Elementary School<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o Organizational Unit Name (eg\uff0csection) []: Infomation &amp; Education<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o Common Name (eg\uff0cYOUR name) []: your host name<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u6ce8\u610f\uff1a\u9019\u88e1\u6700\u597d\u586b\u5165\u4e3b\u6a5f\u540d\u7a31\uff0c\u4f8b\u5982\u300cdns\u300d,\u300cmail\u300d&#8230;etc<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o Email Address []: admin@dc1es.tnc.edu.tw<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o \u7d93\u6b64\u52d5\u4f5c\uff0c\u6703\u7522\u751f \/etc\/apache2\/apache.pem<\/p>\n<p> <font size=\"3\" color=\"#800000\"><strong>Apache2 \u4e0a\u555f\u7528 SSL \u6a21\u7d44\u66a8\u5176\u865b\u64ec\u7ad9\u53f0<\/strong><\/font><br \/> \u52a0\u5165 SSL \u6a21\u7d44<\/p>\n<p> &nbsp;&nbsp;&nbsp; * a2enmod ssl<\/p>\n<p> \u8a2d\u5b9a SSL \u865b\u64ec\u7ad9\u53f0(VirtualHost)<\/p>\n<p> &nbsp;&nbsp;&nbsp; * cd \/etc\/apache2\/sites-available\/<br \/> &nbsp;&nbsp;&nbsp; * cp default ssl<br \/> &nbsp;&nbsp;&nbsp; * vi ssl (\u7d05\u5b57\u70ba\u4fee\u6539\u5340)<\/p>\n<p> NameVirtualHost *:443<\/p>\n<p> &lt;VirutalHost *:443&gt;<br \/> \uff5c<br \/> \uff5c<br \/> DocumentRoot \/var\/www\/<br \/> SSLEngine On<br \/> SSLCertificateFile \/etc\/apache2\/apache.pem<br \/> \uff5c<br \/> \uff5c<\/p>\n<p> &nbsp;&nbsp;&nbsp; * a2ensite ssl<\/p>\n<p> \u4fee\u6539 \/etc\/apache2\/ports.conf<\/p>\n<p> &nbsp;&nbsp;&nbsp; * vi \/etc\/apache2\/ports.conf<br \/> &nbsp;&nbsp;&nbsp; * OB2D t\u7cfb\u5217\u4f5c\u6cd5\uff0c\u65b0\u589e Listen 443<\/p>\n<p> Listen 80<\/p>\n<p> Listen 443<\/p>\n<p> &nbsp;&nbsp;&nbsp; * OB2D e \u53ca sqz \u4f5c\u6cd5\uff0c\u65b0\u589e NameVirtualHost *:443<\/p>\n<p> NameVirtualHost *:80<\/p>\n<p> NameVirtualHost *:443<\/p>\n<p> &nbsp;&nbsp;&nbsp; * \/etc\/init.d\/apache2 restart<\/p>\n<p> <font size=\"3\" color=\"#ff0000\"><strong>\u6700\u5f8c\u6e2c\u8a66\uff1a<\/strong><\/font><\/p>\n<p> &nbsp;&nbsp;&nbsp; * \u6e2c\u8a66 https:\/\/\u4f60\u7684\u7db2\u5740\u540d\u7a31<\/p>\n<p> <font size=\"2\" color=\"#808080\">\u672c\u6587\u5f15\u7528\u4f86\u81f3\uff1ahttp:\/\/myip.tw\/itsmw\/index.php\/Ob2d_https<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Linux\u4e3b\u6a5f\u4e0a\u67b6\u8a2d\u52a0\u5bc6\u7684\u7db2\u9801\u901a\u9053\uff08HTTPS\u52a0\u5bc6\u7db2\u9801\uff09 \u5728Linux\u4e3b\u6a5f\u4e0a\u67b6\u8a2d\u52a0\u5bc6\u7684\u7db2\u9801\u901a\u9053\uff0c\u9069\u7528\u8f03\u6a5f\u5bc6( [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":505,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[20],"class_list":["post-32","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/posts\/32"}],"collection":[{"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":0,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/media\/505"}],"wp:attachment":[{"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}