{"id":310,"date":"2022-11-25T15:23:29","date_gmt":"2022-11-25T07:23:29","guid":{"rendered":"https:\/\/app.applebyme.cn\/cloud\/wwwinfo\/310.html"},"modified":"2022-11-25T15:23:29","modified_gmt":"2022-11-25T07:23:29","slug":"apache-mod_ssl-so-apache%e5%ae%89%e8%a3%85ssl%e8%af%81%e4%b9%a6-https%e9%85%8d%e7%bd%ae%e5%ae%89%e8%a3%85%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/app.applebyme.cn\/cloud\/wwwinfo\/310.html","title":{"rendered":"Apache + mod_ssl.so APACHE\u5b89\u88c5SSL\u8bc1\u4e66 https\u914d\u7f6e\u5b89\u88c5\u6559\u7a0b"},"content":{"rendered":"<p><span class=\"wpcom_tag_link\">Apache<\/span> + <span class=\"wpcom_tag_link\">mod_ssl.so<\/span> APACHE\u5b89\u88c5SSL\u8bc1\u4e66 https\u914d\u7f6e\u5b89\u88c5\u6559\u7a0b<br \/>1.\u9700\u8981\u6709Apache\u670d\u52a1\u5668\u73af\u5883\u7684SSL\u8bc1\u4e66<\/p>\n<pre class=\"wp-block-code\"><code>yourdomain.com.crt     (\u670d\u52a1\u5668\u8bc1\u4e66)\nyourdomain.com.key   (\u79c1\u94a5\u6587\u4ef6\uff09\u5982\u679c\u4e3a\u7a7a\u8bf7\u5c06\u751f\u6210CSR\u65f6\u4fdd\u5b58\u7684\u79c1\u94a5\u5185\u5bb9\u7c98\u8d34\u5728\u6587\u4ef6\u4e2d\nyourdomain.com.ca-bundle  (\u6839\u8bc1\u4e66\u94fe\uff09<\/code><\/pre>\n<p>\u9996\u8981\u6761\u4ef6\u5c31\u662f apache \u5df2\u7ecf\u5b89\u88c5\u4e86 mod_<span class=\"wpcom_tag_link\">ssl<\/span>.so \u6a21\u5757 \u3002<br \/>\u68c0\u6d4b\u65b9\u6cd5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4:<\/p>\n<pre class=\"wp-block-code\"><code>httpd -M | grep mod_ssl<\/code><\/pre>\n<p>\u5982\u679c\u6709\u663e\u793a mod_ssl.so \u8868\u793a\u5df2\u7ecf\u5b89\u88c5\u4e86apache\u6a21\u5757\u3002<br \/>CentOS\/Redhat\u5b89\u88c5mod_ssl.so<\/p>\n<p><a href=\"https:\/\/app.applebyme.cn\/shengcheng-24.html\">\u4e00\u952e\u751f\u6210APP<\/a><\/p>\n<pre class=\"wp-block-code\"><code>yum install mod_ssl<\/code><\/pre>\n<p>Debian\/Ubuntu<\/p>\n<pre class=\"wp-block-code\"><code>sudo a2enmod ssl\nsudo service apache2 restart<\/code><\/pre>\n<p>Apache SSL\u914d\u7f6e<\/p>\n<pre class=\"wp-block-code\"><code>Listen 443  (\u5982\u679c\u914d\u7f6e\u5df2\u7ecf\u5b58\u5728\u5c31\u4e0d\u8981\u52a0\uff09\nLoadModule ssl_module modules\/mod_ssl.so (\u5982\u679c\u914d\u7f6e\u5df2\u7ecf\u5b58\u5728\u5c31\u4e0d\u8981\u52a0\uff09\nNameVirtualHost *:443 (\u975e\u5fc5\u987b\uff0c\u914d\u7f6e\u591a\u4e2aSSL\u7ad9\u70b9\u4f1a\u9700\u8981\uff09\n\n&lt;VirtualHost *:443&gt;\nServerName www.getssl.cn\nServerAlias getssl.cn\nDocumentRoot \/var\/www\/html\nSSLEngine on\nSSLProtocol all -SSLv2 -SSLv3\nSSLCertificateFile \/etc\/ssl\/yourdomain.com.crt \nSSLCertificateKeyFile \/etc\/ssl\/yourdomain.com.key \nSSLCertificateChainFile \/etc\/ssl\/yourdomain.com.ca-bundle\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n<p>\u4ee5\u4e0a\u53ea\u662fSSL\u914d\u7f6e\u8303\u4f8b\uff0c\u5c3d\u91cf\u4e0d\u8981\u76f4\u63a5\u5e94\u7528\u4e8e\u751f\u4ea7\u73af\u5883\uff0c\u8bf7\u6839\u636e80\u7aef\u53e3\u7684\u7ad9\u70b9\u914d\u7f6e\u4fee\u6539\u3002<br \/>\u8bc1\u4e66\u53ef\u4ee5\u653e\u5728\u5176\u4ed6\u4f4d\u7f6e\uff0c\u6ca1\u6709\u5f3a\u5236\u8981\u6c42<br \/>ServerName \u548c ServerAlias \u9700\u8981\u4fee\u6539<\/p>\n<p><strong>\u914d\u7f6e\u5b8c\u6210\u91cd\u542fApache\u4f7f\u5176\u751f\u6548<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>service httpd restart<\/code><\/pre>\n<pre class=\"wp-block-code\"><code>service httpd restart<\/code><\/pre>\n<p>                                         <a href=\"https:\/\/app.applebyme.cn\/shengcheng-109.html\">\u751f\u6210\u79d2\u4f20\u94fe\u63a5\u7684app<\/a>               <\/p>\n<div class=\"entry-copyright\">\n<p>\u7f16\u8f91\uff1a\u5a1c\u5a1c\uff0c\u5982\u82e5\u8f6c\u8f7d\uff0c\u8bf7\u6ce8\u660e\u51fa\u5904\uff1ahttps:\/\/www.yimenapp.com\/kb-yimen\/4889\/<\/p>\n<p>\u90e8\u5206\u5185\u5bb9\u6765\u81ea\u7f51\u7edc\u6295\u7a3f\uff0c\u5982\u6709\u4fb5\u6743\u8054\u7cfb\u7acb\u5220<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0a\u53ea\u662fSSL\u914d\u7f6e\u8303\u4f8b\uff0c\u5c3d\u91cf\u4e0d\u8981\u76f4\u63a5\u5e94\u7528\u4e8e\u751f\u4ea7\u73af\u5883\uff0c\u8bf7\u6839\u636e80\u7aef\u53e3\u7684\u7ad9\u70b9\u914d\u7f6e\u4fee\u6539<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[706,707,708,709,181,696],"class_list":["post-310","post","type-post","status-publish","format-standard","hentry","category-wwwinfo","tag-apache","tag-apache-ssl","tag-apachessl","tag-mod_ssl-so","tag-ssl"],"_links":{"self":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/comments?post=310"}],"version-history":[{"count":0,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/310\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/media?parent=310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/categories?post=310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/tags?post=310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}