﻿{"id":1931,"date":"2018-03-29T14:55:49","date_gmt":"2018-03-29T21:55:49","guid":{"rendered":"https:\/\/www.anvilsoftcraft.com\/weblog\/?p=1931"},"modified":"2018-03-29T15:28:36","modified_gmt":"2018-03-29T22:28:36","slug":"%e3%82%b5%e3%82%a4%e3%83%88%e3%81%aessl%e5%8c%96","status":"publish","type":"post","link":"https:\/\/www.anvilsoftcraft.com\/weblog\/?p=1931","title":{"rendered":"\u30b5\u30a4\u30c8\u306eSSL\u5316"},"content":{"rendered":"<p>\u3044\u307e\u3060\u306bSSL\u306b\u306a\u3063\u3066\u306a\u304b\u3063\u305f\u3053\u306e\u30d6\u30ed\u30b0\u3092\u3044\u307e\u3055\u3089\u306a\u304c\u3089SSL\u5316\u3002<br \/>\n\u4f7f\u7528\u3057\u305f\u306e\u306f<strong>Let&#8217;s Encrypt<\/strong>\u3067<a href=\"https:\/\/letsencrypt.jp\/\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u3002<\/p>\n<p>\u4f7f\u3046\u30c4\u30fc\u30eb\u306f<a href=\"https:\/\/certbot.eff.org\/\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089\u304b\u3089<\/a>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u306a\u304a\u3053\u306e\u30b5\u30fc\u30d0\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066OS\u306fCentOS7,\u30b5\u30fc\u30d0Apache\u3092\u9078\u629e\u3002<br \/>\n\u307e\u305a\u306fyum\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3002\u3002\u3002<\/p>\n<pre class=\"lang:default decode:true\">$ yum -y install yum-utils\r\n$ yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional<\/pre>\n<p>\u305d\u306e\u3042\u3068<\/p>\n<pre class=\"lang:default decode:true\">yum install certbot-apache<\/pre>\n<p>\u3067certbot\u672c\u4f53\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\n\u305d\u306e\u5f8c\u306b\u8d77\u52d5\u3002<\/p>\n<pre class=\"lang:default decode:true\">certbot --apache<\/pre>\n<p>\u3042\u3068\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u30c9\u30e1\u30a4\u30f3\u3092\u5165\u308c\u3066\u3044\u304f\u3060\u3051\u3002\u3068\u3063\u3066\u3082\u7c21\u5358\u3002\u3061\u306a\u307f\u306b\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u304cvhost\u306b\u306a\u3063\u3066\u306a\u3044\u3068\u30c9\u30e1\u30a4\u30f3\u898b\u3064\u3051\u3066\u304f\u308c\u306a\u304b\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3002Apache2.4\u306a\u3089\/etc\/httpd\/conf.d\u30d5\u30a1\u30a4\u30eb\u306b\u4e0b\u8a18\u306e&lt;VirtualHost&gt;\u307f\u305f\u3044\u306b\u66f8\u3044\u305f\u30d5\u30a1\u30a4\u30ebvhosts.conf\u3068\u304b\u306e\u540d\u524d\u3067\u7f6e\u3044\u3066\u304a\u304f\u3002ssl\u306e\u30dd\u30fc\u30c8\u306f443\u3002<\/p>\n<pre class=\"lang:default decode:true\">\t&lt;VirtualHost *:443&gt;\r\n\t  ServerName ............\r\n\t  DocumentRoot ............\r\n      #\u4e0b\u8a18SSL\u95a2\u9023\u9805\u76ee\u3092\u8ffd\u52a0\r\n\t  SSLEngine On\r\n\t  SSLCertificateFile \/etc\/letsencrypt\/live\/www.anvilsoftcraft.com\/cert.pem\r\n\t  SSLCertificateKeyFile \/etc\/letsencrypt\/live\/www.anvilsoftcraft.com\/privkey.pem\r\n\t  SSLCertificateChainFile \/etc\/letsencrypt\/live\/www.anvilsoftcraft.com\/chain.pem\r\n\t&lt;\/VirtualHost&gt;<\/pre>\n<p>\/etc\/letsencrypt\/live\/{\u4f5c\u6210\u3057\u305f\u30c9\u30e1\u30a4\u30f3}\/\u306b\u8a3c\u660e\u66f8\u30d5\u30a1\u30a4\u30eb\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u304c\u5f35\u3089\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u308c\u305e\u308c\u306e.pem\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\u3092\u8a18\u8ff0\u3057\u3066\u304a\u3057\u307e\u3044\u3002\u3042\u3001httpd\u306e\u518d\u8d77\u52d5\u3092\u5fd8\u308c\u305a\u306b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u307e\u3060\u306bSSL\u306b\u306a\u3063\u3066\u306a\u304b\u3063\u305f\u3053\u306e\u30d6\u30ed\u30b0\u3092\u3044\u307e\u3055\u3089\u306a\u304c\u3089SSL\u5316\u3002 \u4f7f\u7528\u3057\u305f\u306e\u306fLet&#8217;s Encrypt\u3067\u3053\u3061\u3089\u3002 \u4f7f\u3046\u30c4\u30fc\u30eb\u306f\u3053\u3061\u3089\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u306a\u304a\u3053\u306e\u30b5\u30fc\u30d0\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066OS\u306fCentOS7,\u30b5 &hellip; <a href=\"https:\/\/www.anvilsoftcraft.com\/weblog\/?p=1931\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6],"tags":[],"class_list":["post-1931","post","type-post","status-publish","format-standard","hentry","category-software-development","category-6"],"_links":{"self":[{"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/1931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1931"}],"version-history":[{"count":0,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/1931\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}