{"id":12092,"date":"2022-09-16T05:10:34","date_gmt":"2022-09-16T05:10:34","guid":{"rendered":"https:\/\/www.varidata.com\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04"},"modified":"2022-10-11T05:35:46","modified_gmt":"2022-10-11T05:35:46","slug":"how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04","status":"publish","type":"kb","link":"https:\/\/www.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/","title":{"rendered":"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u7528Apache\u4fdd\u8b49SSL\u9023\u63a5\u5b89\u5168"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row gap=&#8221;25&#8243; css=&#8221;.vc_custom_1661417481090{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 0px !important;}&#8221; el_class=&#8221;kb-wrapper&#8221;][vc_column css=&#8221;.vc_custom_1659597638453{margin-top: 0px !important;padding-top: 0px !important;border-radius: 20px !important;}&#8221;][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1664243900839{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;}&#8221;]\u76ee\u7684[\/vc_column_text][vc_column_text el_class=&#8221;content&#8221; css=&#8221;.vc_custom_1665466566836{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 0px !important;}&#8221;]\u901a\u904e\u914d\u7f6eSSL\u9023\u63a5\uff0c\u60a8\u53ef\u4ee5\u5411\u516c\u5171HTTP\u6dfb\u52a0\u984d\u5916\u7684\u975e\u5c0d\u7a31\u52a0\u5bc6\u5354\u8b70\u3002SSL\u5354\u8b70\u53ef\u4ee5\u7528\u65bc\u52a0\u5f37\u7db2\u7ad9\u7684\u8a8d\u8b49\u7cfb\u7d71\u6216\u61c9\u7528\u7a0b\u5f0f\u8207\u4f3a\u670d\u5668\u4e4b\u9593\u7684\u6578\u64da\u4ea4\u63db\u3002\u5728\u672c\u6587\u4e2d\uff0c\u60a8\u53ef\u4ee5\u5b78\u7fd2\u5982\u4f55\u914d\u7f6eSSL\u9023\u63a5\uff0c\u4e26\u5728\u4f7f\u7528Ubuntu 18.04\u7684Apache\u4e0a\u555f\u7528HTTPS\u3002<\/p>\n<p>\u9996\u5148\uff0c\u901a\u904eSSH\u9023\u63a5\u9023\u63a5\u5230\u4f3a\u670d\u5668\u3002\u6211\u5011\u6559\u7a0b\u4e2d\u6709\u6db5\u84cb\u76f8\u95dc\u5167\u5bb9\uff0c\u65b9\u4fbf\u60a8\u5b8c\u6210\u9023\u63a5SSH\u5354\u8b70\u64cd\u4f5c\u3002\u5982\u679c\u662f\u672c\u5730\u4f3a\u670d\u5668\uff0c\u8acb\u9032\u5165\u4e0b\u4e00\u6b65\uff0c\u6253\u958b\u4f3a\u670d\u5668\u7684\u7d42\u7aef\u3002<br \/>\n[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1665466572947{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u53d6\u5f97SSL\u8b49\u66f8[\/vc_column_text][vc_column_text el_class=&#8221;content&#8221; css=&#8221;.vc_custom_1665466601003{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 0px !important;}&#8221;]\u70ba\u4e86\u5efa\u7acb\u5b89\u5168\u7684\u9023\u63a5\uff0cApache\u9700\u8981\u4e00\u500b\u53ef\u4ee5\u5f9e\u8b49\u66f8\u9812\u767c\u6a5f\u69cb\uff08CA\uff09\u7372\u5f97\u7684SSL\u8b49\u66f8\u3002\u70ba\u4e86\u65b9\u4fbf\u8d77\u898b\uff0c\u5728\u672c\u4f8b\u4e2d\uff0c\u6211\u5011\u5c07\u4f7f\u7528\u81ea\u7c3d\u540d\u6216\u81ea\u7c3d\u540d\u8b49\u66f8\uff0c\u50c5\u5728\u6e2c\u8a66\u548c\u958b\u767c\u74b0\u5883\u4e2d\u4f7f\u7528\u3002\u8981\u7372\u5f97\u81ea\u7c3d\u540d\u8b49\u66f8\uff0c\u5247\u53c3\u95b1\u53e6\u4e00\u7bc7\u6559\u7a0b\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6709\u8208\u8da3\u7372\u5f97\u7531\u8a8d\u8b49\u6a5f\u69cb\u9812\u767c\u7684\u514d\u8cbbSSL\u8b49\u66f8\uff0c\u8acb\u770b\u5982\u4f55\u4f7f\u7528Let&#8217;s Encrypt\u548cUbuntu 18.04\u4fdd\u8b77Apache\u7684\u5167\u5bb9\u3002<\/p>\n<p>\u8acb\u6ce8\u610f\uff1a\u5728\u5275\u5efa\u8b49\u66f8\u671f\u9593\uff0c\u8f38\u5165\u4f3a\u670d\u5668\u7684IP\u4f4d\u5740\u548c\u6216\u57df\u540d\u6642\uff0c\u4ee5Common Name\u547d\u4ee4\uff1a<\/p>\n<pre><code>Common Name (e.g. server FQDN or YOUR name) []: domain.com<\/code><\/pre>\n<p>\u7372\u53d6\u8b49\u66f8\u5f8c\uff0c\u5275\u5efa\u300c\/etc\/certificate\u300d\u6587\u4ef6\u593e\uff1a<\/p>\n<pre><code>$ sudo mkdir \/etc\/certificate<\/code><\/pre>\n<p>\u7136\u5f8c\u5c07\u8b49\u66f8\u548c\u79c1\u9470\u4fdd\u5b58\u5728\u8a72\u6587\u4ef6\u593e\u5167\u3002[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1665466608738{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u914d\u7f6eApache SSL\u53c3\u6578[\/vc_column_text][vc_column_text el_class=&#8221;content&#8221; css=&#8221;.vc_custom_1665466630556{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 0px !important;}&#8221;]\u70baApache\u5c07\u5275\u5efa\u5b89\u5168\u9023\u63a5\u8a2d\u7f6e\u6307\u4ee4\u3002\u5728Apache conf-available\u76ee\u9304\u4e0b\u5275\u5efassl-params.conf\u6587\u4ef6\uff1a<\/p>\n<pre><code>$ sudo nano \/etc\/apache2\/conf-available\/ssl-params.conf<\/code><\/pre>\n<p>\u5c07\u4ee5\u4e0b\u6307\u4ee4\u8907\u88fd\uff0c\u7136\u5f8c\u7c98\u8cbc\u5230\u65b0\u5275\u5efa\u7684\u6587\u4ef6\u4e2d\uff1a<\/p>\n<pre><code>SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH<\/code><\/pre>\n<pre><code>SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1<\/code><\/pre>\n<pre><code>SSLHonorCipherOrder On<\/code><\/pre>\n<pre><code>Header always set X-Frame-Options DENY<\/code><\/pre>\n<pre><code>Header always set X-Content-Type-Options nosniff<\/code><\/pre>\n<pre><code># Requires Apache &gt;= 2.4<\/code><\/pre>\n<pre><code>SSLCompression off<\/code><\/pre>\n<pre><code>SSLUseStapling on<\/code><\/pre>\n<pre><code>SSLStaplingCache \"shmcb:logs\/stapling-cache(150000)\"<\/code><\/pre>\n<pre><code># Requires Apache &gt;= 2.4.11<\/code><\/pre>\n<pre><code>SSLSessionTickets Off<\/code><\/pre>\n<p>\u4fdd\u5b58\u5f8c\u95dc\u9589\u6587\u6a94\u3002[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1665466638227{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u66f4\u63db\u865b\u64ec\u4e3b\u6a5f[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1665466673932{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221; el_class=&#8221;content&#8221;]\u5b8c\u6210\u6b64\u6b21\u64cd\u4f5c\u9700\u8981\u7528SSL\u9023\u63a5\u4fdd\u8b77\u7684\u57df\u540d\u7684\u865b\u64ec\u4e3b\u6a5fSSL\u914d\u7f6e\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u5c07\u4f7f\u7528\u9ed8\u8a8dApache Virtual Host\u7684SSL\u914d\u7f6e\u4f5c\u70ba\u793a\u4f8b\u3002<\/p>\n<p>\u6253\u958b\u865b\u64ec\u4e3b\u6a5fSSL\u914d\u7f6e\uff1a<\/p>\n<pre><code>l$ sudo nano \/etc\/apache2\/sites-available\/default-ssl.conf<\/code><\/pre>\n<p>\u4f60\u6703\u770b\u5230\uff1a<\/p>\n<pre><code>&lt;IfModule mod_ssl.c&gt;<\/code><\/pre>\n<pre><code>&lt;VirtualHost _default_:443&gt;<\/code><\/pre>\n<pre><code>ServerAdmin webmaster@localhost<\/code><\/pre>\n<pre><code>DocumentRoot \/var\/www\/html<\/code><\/pre>\n<pre><code>ErrorLog ${APACHE_LOG_DIR}\/error.log<\/code><\/pre>\n<pre><code>CustomLog ${APACHE_LOG_DIR}\/access.log combined<\/code><\/pre>\n<pre><code>SSLEngine on<\/code><\/pre>\n<pre><code>SSLCertificateFile      \/etc\/ssl\/certs\/ssl-cert-snakeoil.pem<\/code><\/pre>\n<pre><code>SSLCertificateKeyFile \/etc\/ssl\/private\/ssl-cert-snakeoil.key<\/code><\/pre>\n<pre><code>&lt;FilesMatch \"\\.(cgi|shtml|phtml|php)$\"&gt;<\/code><\/pre>\n<pre><code>SSLOptions +StdEnvVars<\/code><\/pre>\n<pre><code>&lt;\/FilesMatch&gt;<\/code><\/pre>\n<pre><code>&lt;Directory \/usr\/lib\/cgi-bin&gt;<\/code><\/pre>\n<pre><code>SSLOptions +StdEnvVars<\/code><\/pre>\n<pre><code>&lt;\/Directory&gt;<\/code><\/pre>\n<pre><code>&lt;\/VirtualHost&gt;<\/code><\/pre>\n<pre><code>&lt;\/IfModule&gt;<\/code><\/pre>\n<p>\u901a\u904e\u8f38\u5165\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6\u4f86\u6b63\u78ba\u8a2d\u7f6eServerAdmin\u6307\u4ee4\uff0c\u4e26\u6dfb\u52a0ServerName\u6307\u4ee4\uff0c\u4ee5\u53ca\u60a8\u7684\u57df\u540d\u6216\u4f3a\u670d\u5668IP\u4f4d\u5740\u3002<\/p>\n<p>\u6700\u5f8c\uff0c\u66f4\u6539SSLCertificateFile\u548cSSLCertificateKeyFile\u6307\u4ee4\u6307\u793a\u7684\u8def\u5f91\uff0c\u5206\u5225\u8f38\u5165\u8b49\u66f8\u548c\u79c1\u9470\u7684\u8def\u5f91\u3002<br \/>\n\u9019\u6642\uff0c\u60a8\u6703\u770b\u5230\uff1a<\/p>\n<pre><code>&lt;IfModule mod_ssl.c&gt;<\/code><\/pre>\n<pre><code>&lt;VirtualHost _default_:443&gt;<\/code><\/pre>\n<pre><code>ServerAdmin john@mydomain.com<\/code><\/pre>\n<pre><code>ServerName mydomain.com<\/code><\/pre>\n<pre><code>DocumentRoot \/var\/www\/html<\/code><\/pre>\n<pre><code>ErrorLog ${APACHE_LOG_DIR}\/error.log<\/code><\/pre>\n<pre><code>CustomLog ${APACHE_LOG_DIR}\/access.log combined<\/code><\/pre>\n<pre><code>SSLEngine on<\/code><\/pre>\n<pre><code>SSLCertificateFile      \/etc\/certificate\/certificate.crt<\/code><\/pre>\n<pre><code>SSLCertificateKeyFile \/etc\/certificate\/private.key<\/code><\/pre>\n<pre><code>&lt;FilesMatch \"\\.(cgi|shtml|phtml|php)$\"&gt;<\/code><\/pre>\n<pre><code>SSLOptions +StdEnvVars<\/code><\/pre>\n<pre><code>&lt;\/FilesMatch&gt;<\/code><\/pre>\n<pre><code>&lt;Directory \/usr\/lib\/cgi-bin&gt;<\/code><\/pre>\n<pre><code>&lt;\/Directory&gt;<\/code><\/pre>\n<pre><code>&lt;\/VirtualHost&gt;<\/code><\/pre>\n<pre><code>&lt;\/IfModule&gt;<\/code><\/pre>\n<p>\u4fdd\u5b58\u5f8c\u95dc\u9589\u6587\u4ef6\u3002[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1665466683193{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u914d\u7f6e\u9632\u706b\u7246[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1665466718914{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221; el_class=&#8221;content&#8221;]\u5982\u679c\u60a8\u7684\u7cfb\u7d71\u4e0a\u88dd\u6709\u9632\u706b\u7246\uff0c\u8acb\u5c07\u5176\u8a2d\u7f6e\u70ba\u555f\u7528\u5230\u8a08\u7b97\u6a5f\u7684HTTP\u901a\u4fe1\u548cHTTPS\u901a\u4fe1\u3002<br \/>\n\u5728\u4f7f\u7528UFW\u9632\u706b\u7246\u6642\uff0c\u6709\u4e00\u4e9bApache\u7684\u9810\u5b89\u88dd\u914d\u7f6e\u6587\u4ef6\u53ef\u7528\u3002<br \/>\n\u67e5\u770bUFW\u9632\u706b\u7246\u4e2d\u5b89\u88dd\u7684\u53ef\u7528\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<pre><code>$ sudo ufw app list<\/code><\/pre>\n<p>\u9019\u6642\u60a8\u6703\u770b\u5230\u4ee5\u4e0b\u5167\u5bb9\uff1a<\/p>\n<pre><code>Available applications:<\/code><\/pre>\n<pre><code>Apache<\/code><\/pre>\n<pre><code>Apache Full<\/code><\/pre>\n<pre><code>Apache Secure<\/code><\/pre>\n<pre><code>OpenSSH<\/code><\/pre>\n<p>\u70ba\u5141\u8a31HTTP\uff08\u57e080\uff09\u548cHTTPS\uff08\u57e0443\uff09\u901a\u4fe1\uff0c\u8acb\u4f7f\u7528\u300cApache Full\u300d\u914d\u7f6e\u6587\u4ef6\u3002<br \/>\n\u67e5\u770b\u914d\u7f6e\u6587\u4ef6\u4fe1\u606f\u5982\uff1a<\/p>\n<pre><code>$ sudo ufw app info \"Apache Full\"<\/code><\/pre>\n<p>\u5c4f\u5e55\u4e0a\u6703\u986f\u793a\uff1a<\/p>\n<pre><code>Profile: Apache Full<\/code><\/pre>\n<pre><code>Title: Web Server (HTTP,HTTPS)<\/code><\/pre>\n<pre><code>Description: Apache v2 is the next generation of the omnipresent Apache web server.<\/code><\/pre>\n<pre><code>Ports:80,443\/tcp<\/code><\/pre>\n<p>\u9a57\u8b49\u5b8c\u4e4b\u5f8c\uff0c\u652f\u6301\u5176\u8a2a\u554f\uff1a<\/p>\n<pre><code>$ sudo ufw allow in \"Apache Full\"<\/code><\/pre>\n<p>[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1665466728344{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u914d\u7f6eApache[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1665466762362{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221; el_class=&#8221;content&#8221;]\u5b8c\u6210\u4e0a\u8ff0\u64cd\u4f5c\u4e4b\u5f8c\uff0c\u5c31\u53ef\u4ee5\u958b\u59cb\u914d\u7f6eApache\u3002<\/p>\n<p>\u555f\u7528mod_ssl\u548cmod_headers\u6a21\u584a\uff1a<\/p>\n<pre><code>$ sudo a2enmod ssl<\/code><\/pre>\n<pre><code>$ sudo a2enmod headers<\/code><\/pre>\n<p>\u555f\u7528\u8b80\u53d6\u6240\u5275\u5efa\u7684SSL\u914d\u7f6e\uff1a<\/p>\n<pre><code>$ sudo a2enconf ssl-params<\/code><\/pre>\n<p>\u555f\u7528\u9ed8\u8a8dSSL\u865b\u64ec\u4e3b\u6a5f\uff1a<\/p>\n<pre><code>$ sudo a2ensite default-ssl<\/code><\/pre>\n<p>\u6aa2\u67e5Apache\u914d\u7f6e\u6587\u4ef6\u4e2d\u662f\u5426\u6709\u932f\u8aa4\uff1a<\/p>\n<pre><code>$ sudo apache2ctl configtest<\/code><\/pre>\n<p>\u5982\u679c\u770b\u5230\u8df3\u51fa\u300cSyntax OK\u300d\u6d88\u606f\uff0c\u5247\u53ef\u4ee5\u91cd\u555fApache\u7e7c\u7e8c\uff1a<\/p>\n<pre><code>$ sudo systemctl restart apache2<\/code><\/pre>\n<p>[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1665466770040{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u6aa2\u67e5\u9023\u63a5[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1665466781384{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221; el_class=&#8221;content&#8221;]\u901a\u904e\u9023\u63a5\u5230\u60a8\u914d\u7f6e\u7684\u865b\u64ec\u4f3a\u670d\u5668\u7684\u57df\u540d\u6216IP\u4f4d\u5740\u4f86\u6253\u958b\u700f\u89bd\u5668\uff0c\u78ba\u4fdd\u4f7f\u7528https\u5354\u8b70\uff1a<\/p>\n<p><a href=\"https:\/\/mydomain.com\">https:\/\/mydomain.com<\/a>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"featured_media":0,"template":"","kb_category":[466],"class_list":["post-12092","kb","type-kb","status-publish","hentry","kb_category-ubuntu-tc"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u7528Apache\u4fdd\u8b49SSL\u9023\u63a5\u5b89\u5168 - Varidata Limited<\/title>\n<meta name=\"description\" content=\"\u76ee\u7684\u901a\u904e\u914d\u7f6eSSL\u9023\u63a5\uff0c\u60a8\u53ef\u4ee5\u5411\u516c\u5171HTTP\u6dfb\u52a0\u984d\u5916\u7684\u975e\u5c0d\u7a31\u52a0\u5bc6\u5354\u8b70\u3002SSL\u5354\u8b70\u53ef\u4ee5\u7528\u65bc\u52a0\u5f37\u7db2\u7ad9\u7684\u8a8d\u8b49\u7cfb\u7d71\u6216\u61c9\u7528\u7a0b\u5f0f\u8207\u4f3a\" \/>\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.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u7528Apache\u4fdd\u8b49SSL\u9023\u63a5\u5b89\u5168 - Varidata Limited\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Varidata Limited\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-11T05:35:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.varidata.com\/wp-content\/uploads\/2023\/01\/varidata_logo_black.png\" \/>\n\t<meta property=\"og:image:width\" content=\"248\" \/>\n\t<meta property=\"og:image:height\" content=\"94\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/\",\"url\":\"https:\/\/www.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/\",\"name\":\"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u7528Apache\u4fdd\u8b49SSL\u9023\u63a5\u5b89\u5168 - Varidata Limited\",\"isPartOf\":{\"@id\":\"https:\/\/www.varidata.com\/zh-tw\/#website\"},\"datePublished\":\"2022-09-16T05:10:34+00:00\",\"dateModified\":\"2022-10-11T05:35:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.varidata.com\/zh-tw\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledgebase\",\"item\":\"https:\/\/www.varidata.com\/zh-tw\/kb\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u7528Apache\u4fdd\u8b49SSL\u9023\u63a5\u5b89\u5168\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.varidata.com\/zh-tw\/#website\",\"url\":\"https:\/\/www.varidata.com\/zh-tw\/\",\"name\":\"Varidata Limited\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.varidata.com\/zh-tw\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.varidata.com\/zh-tw\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.varidata.com\/zh-tw\/#organization\",\"name\":\"Varidata\",\"url\":\"https:\/\/www.varidata.com\/zh-tw\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/www.varidata.com\/zh-tw\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png\",\"contentUrl\":\"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png\",\"width\":248,\"height\":94,\"caption\":\"Varidata\"},\"image\":{\"@id\":\"https:\/\/www.varidata.com\/zh-tw\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u7528Apache\u4fdd\u8b49SSL\u9023\u63a5\u5b89\u5168 - Varidata Limited","description":"\u76ee\u7684\u901a\u904e\u914d\u7f6eSSL\u9023\u63a5\uff0c\u60a8\u53ef\u4ee5\u5411\u516c\u5171HTTP\u6dfb\u52a0\u984d\u5916\u7684\u975e\u5c0d\u7a31\u52a0\u5bc6\u5354\u8b70\u3002SSL\u5354\u8b70\u53ef\u4ee5\u7528\u65bc\u52a0\u5f37\u7db2\u7ad9\u7684\u8a8d\u8b49\u7cfb\u7d71\u6216\u61c9\u7528\u7a0b\u5f0f\u8207\u4f3a","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.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/","og_locale":"zh_TW","og_type":"article","og_title":"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u7528Apache\u4fdd\u8b49SSL\u9023\u63a5\u5b89\u5168 - Varidata Limited","og_url":"https:\/\/www.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/","og_site_name":"Varidata Limited","article_modified_time":"2022-10-11T05:35:46+00:00","og_image":[{"width":248,"height":94,"url":"https:\/\/www.varidata.com\/wp-content\/uploads\/2023\/01\/varidata_logo_black.png","type":"image\/png"}],"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/","url":"https:\/\/www.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/","name":"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u7528Apache\u4fdd\u8b49SSL\u9023\u63a5\u5b89\u5168 - Varidata Limited","isPartOf":{"@id":"https:\/\/www.varidata.com\/zh-tw\/#website"},"datePublished":"2022-09-16T05:10:34+00:00","dateModified":"2022-10-11T05:35:46+00:00","breadcrumb":{"@id":"https:\/\/www.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.varidata.com\/zh-tw\/kb\/how-to-secure-a-ssl-connection-with-apache-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.varidata.com\/zh-tw\/"},{"@type":"ListItem","position":2,"name":"Knowledgebase","item":"https:\/\/www.varidata.com\/zh-tw\/kb\/"},{"@type":"ListItem","position":3,"name":"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u7528Apache\u4fdd\u8b49SSL\u9023\u63a5\u5b89\u5168"}]},{"@type":"WebSite","@id":"https:\/\/www.varidata.com\/zh-tw\/#website","url":"https:\/\/www.varidata.com\/zh-tw\/","name":"Varidata Limited","description":"","publisher":{"@id":"https:\/\/www.varidata.com\/zh-tw\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.varidata.com\/zh-tw\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Organization","@id":"https:\/\/www.varidata.com\/zh-tw\/#organization","name":"Varidata","url":"https:\/\/www.varidata.com\/zh-tw\/","logo":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.varidata.com\/zh-tw\/#\/schema\/logo\/image\/","url":"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png","contentUrl":"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png","width":248,"height":94,"caption":"Varidata"},"image":{"@id":"https:\/\/www.varidata.com\/zh-tw\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.varidata.com\/zh-tw\/wp-json\/wp\/v2\/kb\/12092","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.varidata.com\/zh-tw\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.varidata.com\/zh-tw\/wp-json\/wp\/v2\/types\/kb"}],"wp:attachment":[{"href":"https:\/\/www.varidata.com\/zh-tw\/wp-json\/wp\/v2\/media?parent=12092"}],"wp:term":[{"taxonomy":"kb_category","embeddable":true,"href":"https:\/\/www.varidata.com\/zh-tw\/wp-json\/wp\/v2\/kb_category?post=12092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}