{"id":108,"date":"2012-09-06T19:30:36","date_gmt":"2012-09-06T10:30:36","guid":{"rendered":"http:\/\/appw.jp\/2012beta\/?p=108"},"modified":"2015-05-22T20:28:35","modified_gmt":"2015-05-22T11:28:35","slug":"%e3%81%8a%e5%90%8d%e5%89%8d-com-vps-kvm-%e3%81%ab%e3%81%a6-wordpress-%e3%82%92%e3%81%af%e3%81%98%e3%82%81%e3%82%8b%e3%81%be%e3%81%a7%ef%bc%88%ef%bc%96%ef%bc%89","status":"publish","type":"post","link":"https:\/\/appw.jp\/2012beta\/?p=108","title":{"rendered":"\u304a\u540d\u524d.com VPS (KVM) \u306b\u3066 WordPress \u3092\u306f\u3058\u3081\u308b\u307e\u3067\uff08\uff16\uff09"},"content":{"rendered":"<p>\u7b2c\uff16\u56de\u306f\u3001SSL \u8a3c\u660e\u66f8\u306e\u4f5c\u6210\u3068\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n<p>2012\u5e745\u6708\u304b\u3089\u3000<a href=\"http:\/\/px.a8.net\/svt\/ejp?a8mat=1ZR05O+28Z24Y+50+35L2SI\" target=\"_blank\" onmouseover=\"window.status='http:\/\/www.onamae-server.com\/';return true;\" onmouseout=\"window.status='';return true;\">\u304a\u540d\u524d.com VPS(KVM)<\/a><img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"http:\/\/www16.a8.net\/0.gif?a8mat=1ZR05O+28Z24Y+50+35L2SI\" alt=\"\">\u3000\u306e\u5229\u7528\u3092\u59cb\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6a19\u6e96 OS \u306b\u3066\u3001\u8a2d\u5b9a\u306a\u3069\u3092\u5099\u5fd8\u9332\u3068\u3057\u3066\u6b8b\u3057\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>SSL \u8a3c\u660e\u66f8\u306e\u4f5c\u6210<\/h2>\n<p>SSL \u8a3c\u660e\u66f8\u306f\u3001\u7d76\u5bfe\u306b\u5fc5\u8981\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u8003\u3048\u305f\u3068\u304d\u3001\u7528\u610f\u3057\u305f\u65b9\u304c\u826f\u3044\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u81ea\u5df1\u7f72\u540d\u306e\u3082\u306e\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u8003\u3048\u3089\u308c\u307e\u3059\u304c\u3001<a href=\"http:\/\/px.a8.net\/svt\/ejp?a8mat=1ZQX0T+EV8R5U+1WTI+TRVYQ\" target=\"_blank\">\u5e74\u984d990\u5186(\u7a0e\u629c)\u304b\u3089\u306e\u683c\u5b89SSL\u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8\u53d6\u5f97\u30b5\u30fc\u30d3\u30b9\u3001SSL\u30dc\u30c3\u30af\u30b9<\/a><img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"http:\/\/www14.a8.net\/0.gif?a8mat=1ZQX0T+EV8R5U+1WTI+TRVYQ\" alt=\"\"> \u306e\u8a8d\u8a3c\u5c40\u306e\u7f72\u540d\u306e\u3082\u306e\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u500b\u4eba\u3067\u3082\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/px.a8.net\/svt\/ejp?a8mat=1ZQX0T+EV8SPE+1WTI+TVQUQ\" target=\"_blank\" onmouseover=\"window.status='http:\/\/www.sslbox.jp\/';return true;\" onmouseout=\"window.status='';return true;\">SSL\u30dc\u30c3\u30af\u30b9<\/a><img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"http:\/\/www15.a8.net\/0.gif?a8mat=1ZQX0T+EV8SPE+1WTI+TVQUQ\" alt=\"\"> \u306e\u30b5\u30dd\u30fc\u30c8\u30de\u30cb\u30e5\u30a2\u30eb\u306b\u5f93\u3063\u3066\u624b\u7d9a\u304d\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3>CSR \u306e\u4f5c\u6210<\/h3>\n<p>\u79d8\u5bc6\u9375\u3092\u7f6e\u304f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ cd \/etc\/httpd\/conf\r\n<\/pre>\n<p>\u79d8\u5bc6\u9375\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u306f\u4f7f\u7528\u3057\u306a\u3044\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo openssl genrsa -out wwwexamplejp.key 2048\r\n<\/pre>\n<p>CSR \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4f5c\u6210\u3057\u305f\u79d8\u5bc6\u9375\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo openssl req -new -key wwwexamplejp.key -out wwwexamplejp.csr\r\n<\/pre>\n<p><a href=\"#su_03\">\u3010\u88dc\u8db3\u3011 SHA-2 (SHA256) \u3078\u79fb\u884c <\/a><\/p>\n<p>\u8b58\u5225\u540d(\u30c7\u30a3\u30b9\u30c6\u30a3\u30f3\u30b0\u30a4\u30c3\u30b7\u30e5\u30cd\u30fc\u30e0)\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u8a2d\u5b9a\u4f8b\u3067\u3059\u3002\u500b\u4eba\u306a\u306e\u3067 Organization Name \u306f\u500b\u4eba\u540d\u306b\u3057\u307e\u3057\u305f\u3002\u30b5\u30a4\u30c8\u904b\u55b6\u8005\u306e\u6b63\u5f0f\u82f1\u8a9e\u540d\u3068\u89e3\u91c8\u3057\u307e\u3057\u305f\u3002Organizational Unit Name \u306f\u7a7a\u6b04\u306b\u3057\u307e\u3057\u305f\u3002Common Name \u304c\u6700\u3082\u91cd\u8981\u3067\u3001www.example.jp \u306e\u3088\u3046\u306b FQDN \u3067\u5165\u529b\u3057\u307e\u3059\u3002Email Address \u306f\u7a7a\u6b04\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nCountry Name (2 letter code) &#x5B;XX]:JP\r\nState or Province Name (full name) &#x5B;]:Tokyo\r\nLocality Name (eg, city) &#x5B;Default City]:Edogawa-ku\r\nOrganization Name (eg, company) &#x5B;Default Company Ltd]:\uff08\u500b\u4eba\u540d\uff09\r\nOrganizational Unit Name (eg, section) &#x5B;]:\uff08\u672a\u5165\u529b\uff09\r\nCommon Name (eg, your name or your server's hostname) &#x5B;]:\uff08SSL\u63a5\u7d9a\u6642\u306eURL\u3092FQDN\u3067\u5165\u529b\uff09\r\nEmail Address &#x5B;]:\uff08\u672a\u5165\u529b\uff09\r\n<\/pre>\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001wwwexamplejp.key \u3068 wwwexamplejp.csr \u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u7528\u610f<\/h3>\n<p>\u627f\u8a8d\u78ba\u8a8d\u30e1\u30fc\u30eb\u304c\u53d7\u4fe1\u3067\u304d\u308b\u3088\u3046\u306b\u3001admin@(\u7533\u8acb\u3059\u308b\u30c9\u30e1\u30a4\u30f3\u540d) \u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<h3>\u8a3c\u660e\u66f8\u306e\u65b0\u898f\u53d6\u5f97<\/h3>\n<p><a href=\"http:\/\/px.a8.net\/svt\/ejp?a8mat=1ZQX0T+EV8SPE+1WTI+TVQUQ\" target=\"_blank\" onmouseover=\"window.status='http:\/\/www.sslbox.jp\/';return true;\" onmouseout=\"window.status='';return true;\">SSL\u30dc\u30c3\u30af\u30b9<\/a><img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"http:\/\/www15.a8.net\/0.gif?a8mat=1ZQX0T+EV8SPE+1WTI+TVQUQ\" alt=\"\"> \u306e\u7ba1\u7406\u30c4\u30fc\u30eb\u304b\u3089\u624b\u7d9a\u304d\u3092\u9032\u3081\u307e\u3059\u3002<\/p>\n<p>\u30b8\u30aa\u30c8\u30e9\u30b9\u30c8\u3088\u308a\u82f1\u6587\u306e\u627f\u8a8d\u78ba\u8a8d\u30e1\u30fc\u30eb\u304c\u5c4a\u304d\u307e\u3059\u3002\u30e1\u30fc\u30eb\u306b\u8a18\u8f09\u3055\u308c\u305f URL \u304b\u3089\u627f\u8a8d\u624b\u7d9a\u304d\u3092\u9032\u3081\u307e\u3059\u3002<\/p>\n<p>\u627f\u8a8d\u304c\u7d42\u308f\u308b\u3068\u8a3c\u660e\u66f8\u304c\u767a\u884c\u3055\u308c\u3001\u30e1\u30fc\u30eb\u306b\u3066\u9001\u4ed8\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u8a3c\u660e\u66f8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u9001\u4ed8\u3055\u308c\u305f\u8a3c\u660e\u66f8\u3092 \/etc\/httpd\/conf\/wwwexamplejp.crt \u306a\u3069\u3068\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<a href=\"http:\/\/px.a8.net\/svt\/ejp?a8mat=1ZQX0T+EV8SPE+1WTI+TVQUQ\" target=\"_blank\" onmouseover=\"window.status='http:\/\/www.sslbox.jp\/';return true;\" onmouseout=\"window.status='';return true;\">SSL\u30dc\u30c3\u30af\u30b9<\/a><img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"http:\/\/www15.a8.net\/0.gif?a8mat=1ZQX0T+EV8SPE+1WTI+TVQUQ\" alt=\"\"> \u306e\u30b5\u30dd\u30fc\u30c8\u30de\u30cb\u30e5\u30a2\u30eb\u306e\u4e2d\u9593\u8a3c\u660e\u66f8\u306e\u30ea\u30f3\u30af\u306a\u3069\u304b\u3089\u4e2d\u9593\u8a3c\u660e\u66f8\u3092 \/etc\/httpd\/conf\/inter.crt \u306a\u3069\u306e\u3088\u3046\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<h2>mod_ssl \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>HTTPS \u3092\u5229\u7528\u3059\u308b\u305f\u3081\u3001mod_ssl \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo yum install mod_ssl --enablerepo=epel,CentALT,remi\r\n<\/pre>\n<h2>httpd.conf \u306e\u8a2d\u5b9a<\/h2>\n<p>\u305d\u308c\u305e\u308c\u306e\u65b9\u306e\u30dd\u30ea\u30b7\u30fc\u306b\u5f93\u3063\u3066 \/etc\/httpd\/conf\/httpd.conf \u3092\u898b\u76f4\u3057\u3066\u3044\u304f\u306e\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u3088\u304f\u898b\u304b\u3051\u308b\u70b9\u3092\u542b\u3081\u3066\u3044\u304f\u3064\u304b\u3042\u3052\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n#KeepAlive Off\r\nKeepAlive On\r\n\r\n#ServerName www.example.com:80\r\nServerName www.example.jp:80\r\n\r\n#DocumentRoot 'var\/www\/html'\r\nDocumentRoot '\/home\/hoge\/www'\r\n\r\n&lt;Directory '\/home\/hoge\/www'&gt;\r\n\r\n#Options Indexes FollowSymLinks\r\nOptions FollowSymLinks ExecCGI\r\n\r\n#ServerTokens OS\r\nServerTokens Prod\r\n\r\n#ServerSignature On\r\nServerSignature Off\r\n\r\n#AllowOverride None\r\nAllowOverride All\r\n\r\n<\/pre>\n<p>\u305d\u306e\u307b\u304b LoadModule \u306a\u3069\u306e\u8a18\u8ff0\u3067\u4e0d\u8981\u3068\u5224\u65ad\u3067\u304d\u308b\u3082\u306e\u306f\u30b3\u30e1\u30f3\u30c8\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>DocumentRoot \u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ chmod 755 \/home\/hoge\/www\r\n<\/pre>\n<p>\u306a\u3069\u3068\u3057\u307e\u3059\u3002\u307e\u305f\u4e0a\u4f4d\u306e \/home\/hoge \u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3082\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ chmod 755 \/home\/hoge\r\n<\/pre>\n<p>\u306a\u3069\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u524d\u306b\u3001http:\/\/www.example.jp \u306e\u30a2\u30af\u30bb\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a<\/h2>\n<p>\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u3001http:\/\/www.example.jp\u3001http:\/\/example.jp\u3001https:\/\/www.example.jp\u3001https:\/\/example.jp \u306e\uff14\u3064\u306b\u5bfe\u5fdc\u3057\u307e\u3059\u3002<\/p>\n<p>\/etc\/httpd\/conf\/httpd.conf \u306e NameVirtualHost \u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nNameVirtualHost *:80\r\nNameVirtualHost *:443\r\n<\/pre>\n<p>\/etc\/httpd\/conf.d\/wwwexamplejp.conf\u3001\/etc\/httpd\/conf.d\/examplejp.conf \u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3068\u3057\u3001\/etc\/httpd\/conf.d\/ssl.conf \u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<p>\/etc\/httpd\/conf.d\/wwwexamplejp.conf \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&lt;VirtualHost *:80&gt;\r\n    ServerName www.example.jp:80\r\n    DocumentRoot \/home\/hoge\/www\r\n\r\n    &lt;Directory \/home\/hoge\/www&gt;\r\n        AllowOverride ALL\r\n        Options FollowSymlinks ExecCGI\r\n        Order allow,deny\r\n        Allow from all\r\n    &lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<p>\/etc\/httpd\/conf.d\/examplejp.conf \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&lt;VirtualHost *:80&gt;\r\n    ServerName example.jp:80\r\n    DocumentRoot \/home\/hoge\/www\r\n\r\n    &lt;Directory \/home\/hoge\/www&gt;\r\n        AllowOverride ALL\r\n        Options FollowSymlinks ExecCGI\r\n        Order allow,deny\r\n        Allow from all\r\n    &lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<p>\/etc\/httpd\/conf.d\/ssl.conf \u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n~ \u7701\u7565 ~\r\n&lt;VirtualHost *:443&gt;\r\nDocumentRoot '\/home\/hoge\/www'\r\nServerName www.example.jp:443\r\n~ \u7701\u7565 ~\r\nSSLCertificateFile \/etc\/httpd\/conf\/wwwexamplejp.crt\r\nSSLCertificateKeyFile \/etc\/httpd\/conf\/wwwexamplejp.key\r\nSSLCACertificateFile \/etc\/httpd\/conf\/inter.crt\r\n~ \u7701\u7565 ~\r\n    &lt;Directory \/home\/hoge\/www&gt;\r\n        AllowOverride ALL\r\n        Options FollowSymlinks ExecCGI\r\n        Order allow,deny\r\n        Allow from all\r\n    &lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;\r\n\r\n~ \u4ee5\u4e0b\u8ffd\u52a0 ~\r\n&lt;VirtualHost *:443&gt;\r\nDocumentRoot '\/home\/hoge\/www'\r\nServerName example.jp:443\r\n\r\nErrorLog logs\/ssl_error_log\r\nTransferLog logs\/ssl_access_log\r\nLogLevel warn\r\nSSLEngine on\r\nSSLProtocol all -SSLv2\r\nSSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW\r\n\r\nSSLCertificateFile \/etc\/httpd\/conf\/wwwexamplejp.crt\r\nSSLCertificateKeyFile \/etc\/httpd\/conf\/wwwexamplejp.key\r\nSSLCACertificateFile \/etc\/httpd\/conf\/inter.crt\r\n\r\n&lt;Files ~ '\\.(cgi|shtml|phtml|php3?)$'&gt;\r\n    SSLOptions +StdEnvVars\r\n&lt;\/Files&gt;\r\n\r\nSetEnvIf User-Agent '.*MSIE.*' \\\r\n         nokeepalive ssl-unclean-shutdown \\\r\n         downgrade-1.0 force-response-1.0\r\n\r\nCustomLog logs\/ssl_request_log \\\r\n          '%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \\'%r\\' %b'\r\n\r\n    &lt;Directory \/home\/hoge\/www&gt;\r\n        AllowOverride ALL\r\n        Options FollowSymlinks ExecCGI\r\n        Order allow,deny\r\n        Allow from all\r\n    &lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<p>\u518d\u8aad\u307f\u8fbc\u307f\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo service httpd reload\r\n<\/pre>\n<p>iptables \u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\/etc\/sysconfig\/iptables \u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT\r\n<\/pre>\n<p>iptables \u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo service iptables restart\r\n<\/pre>\n<p><a name=\"su\">&nbsp;<\/a><\/p>\n<h2>\u88dc\u8db3<\/h2>\n<p><a name=\"su_01\">&nbsp;<\/a><\/p>\n<h3> \u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8\u306e\u4f5c\u6210<\/h3>\n<p>\u53c2\u8003\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306f\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8\u3092\u4f5c\u6210\u3059\u308b\u30b3\u30de\u30f3\u30c9\u4f8b\u3067\u3059\u3002\u79d8\u5bc6\u9375 server.key \u3068\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8 server.crt \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u6709\u52b9\u671f\u9593\u306f\u3001365 \u65e5\u3067\u3059\u3002\u8a3c\u660e\u66f8\u3092\u4f5c\u6210\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo openssl req -newkey rsa:2048 -nodes -x509 -out server.crt -keyout server.key -days 365\r\n<\/pre>\n<p><a name=\"su_02\">&nbsp;<\/a><\/p>\n<h3> \u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u8a2d\u5b9a<\/h3>\n<p>\/etc\/httpd\/conf\/httpd.conf \u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u3067\u306f\u3059\u3079\u3066\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u6709\u52b9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u5229\u7528\u3055\u308c\u306a\u3044\u3068\u601d\u308f\u308c\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u8a2d\u5b9a\u304b\u3089\u306f\u305a\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u7121\u52b9\u306b\u3059\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u30b3\u30e1\u30f3\u30c8\u306b\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u305d\u306e\u8a2d\u5b9a\u4f8b\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nLoadModule auth_basic_module modules\/mod_auth_basic.so\r\n#LoadModule auth_digest_module modules\/mod_auth_digest.so\r\nLoadModule authn_file_module modules\/mod_authn_file.so\r\n#LoadModule authn_alias_module modules\/mod_authn_alias.so\r\n#LoadModule authn_anon_module modules\/mod_authn_anon.so\r\n#LoadModule authn_dbm_module modules\/mod_authn_dbm.so\r\n#LoadModule authn_default_module modules\/mod_authn_default.so\r\nLoadModule authz_host_module modules\/mod_authz_host.so\r\nLoadModule authz_user_module modules\/mod_authz_user.so\r\n#LoadModule authz_owner_module modules\/mod_authz_owner.so\r\n#LoadModule authz_groupfile_module modules\/mod_authz_groupfile.so\r\n#LoadModule authz_dbm_module modules\/mod_authz_dbm.so\r\n#LoadModule authz_default_module modules\/mod_authz_default.so\r\n#LoadModule ldap_module modules\/mod_ldap.so\r\n#LoadModule authnz_ldap_module modules\/mod_authnz_ldap.so\r\nLoadModule include_module modules\/mod_include.so\r\nLoadModule log_config_module modules\/mod_log_config.so\r\n#LoadModule logio_module modules\/mod_logio.so\r\nLoadModule env_module modules\/mod_env.so\r\n#LoadModule ext_filter_module modules\/mod_ext_filter.so\r\n#LoadModule mime_magic_module modules\/mod_mime_magic.so\r\n#LoadModule expires_module modules\/mod_expires.so\r\n#LoadModule deflate_module modules\/mod_deflate.so\r\nLoadModule headers_module modules\/mod_headers.so\r\n#LoadModule usertrack_module modules\/mod_usertrack.so\r\nLoadModule setenvif_module modules\/mod_setenvif.so\r\nLoadModule mime_module modules\/mod_mime.so\r\n#LoadModule dav_module modules\/mod_dav.so\r\nLoadModule status_module modules\/mod_status.so\r\nLoadModule autoindex_module modules\/mod_autoindex.so\r\nLoadModule info_module modules\/mod_info.so\r\n#LoadModule dav_fs_module modules\/mod_dav_fs.so\r\n#LoadModule vhost_alias_module modules\/mod_vhost_alias.so\r\nLoadModule negotiation_module modules\/mod_negotiation.so\r\nLoadModule dir_module modules\/mod_dir.so\r\n#LoadModule actions_module modules\/mod_actions.so\r\n#LoadModule speling_module modules\/mod_speling.so\r\nLoadModule userdir_module modules\/mod_userdir.so\r\nLoadModule alias_module modules\/mod_alias.so\r\nLoadModule rewrite_module modules\/mod_rewrite.so\r\nLoadModule proxy_module modules\/mod_proxy.so\r\nLoadModule proxy_balancer_module modules\/mod_proxy_balancer.so\r\n#LoadModule proxy_ftp_module modules\/mod_proxy_ftp.so\r\nLoadModule proxy_http_module modules\/mod_proxy_http.so\r\n#LoadModule proxy_connect_module modules\/mod_proxy_connect.so\r\n#LoadModule cache_module modules\/mod_cache.so\r\nLoadModule suexec_module modules\/mod_suexec.so\r\n#LoadModule disk_cache_module modules\/mod_disk_cache.so\r\n#LoadModule file_cache_module modules\/mod_file_cache.so\r\n#LoadModule mem_cache_module modules\/mod_mem_cache.so\r\nLoadModule cgi_module modules\/mod_cgi.so\r\n<\/pre>\n<p><a name=\"su_03\">&nbsp;<\/a><\/p>\n<h3> SHA-2 (SHA256) \u3078\u79fb\u884c<\/h3>\n<p><strong>SHA-2 (SHA256)<\/strong> \u3078\u79fb\u884c\u3059\u308b\u306b\u3042\u305f\u3063\u3066\u3001<strong>CentOS 6<\/strong> \u306e\u5834\u5408\u306f CSR \u306e\u4f5c\u6210\u306b <strong>-sha256<\/strong> \u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo openssl req -new -sha256 -key wwwexamplejp.key -out wwwexamplejp.csr\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c\uff16\u56de\u306f\u3001SSL \u8a3c\u660e\u66f8\u306e\u4f5c\u6210\u3068\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u3067\u3059\u3002 2012\u5e745\u6708\u304b\u3089\u3000\u304a\u540d\u524d.com VPS(KVM)\u3000\u306e\u5229\u7528\u3092\u59cb\u3081\u3066\u3044\u307e\u3059\u3002 \u6a19\u6e96 OS \u306b\u3066\u3001\u8a2d\u5b9a\u306a\u3069\u3092\u5099\u5fd8\u9332\u3068\u3057\u3066\u6b8b\u3057\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 SS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-onamae-com-vps-kvm"],"_links":{"self":[{"href":"https:\/\/appw.jp\/2012beta\/index.php?rest_route=\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appw.jp\/2012beta\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appw.jp\/2012beta\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appw.jp\/2012beta\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appw.jp\/2012beta\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=108"}],"version-history":[{"count":7,"href":"https:\/\/appw.jp\/2012beta\/index.php?rest_route=\/wp\/v2\/posts\/108\/revisions"}],"predecessor-version":[{"id":270,"href":"https:\/\/appw.jp\/2012beta\/index.php?rest_route=\/wp\/v2\/posts\/108\/revisions\/270"}],"wp:attachment":[{"href":"https:\/\/appw.jp\/2012beta\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appw.jp\/2012beta\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appw.jp\/2012beta\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}