{"id":429,"date":"2016-11-08T07:54:35","date_gmt":"2016-11-07T22:54:35","guid":{"rendered":"https:\/\/www.dogrow.net\/linux\/?p=429"},"modified":"2018-11-01T11:22:03","modified_gmt":"2018-11-01T02:22:03","slug":"blog41","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/linux\/blog41\/","title":{"rendered":"(41) Let&#8217;s Encrypt\u3067\u7121\u6599SSL\u8a3c\u660e\u66f8\u3092\u53d6\u5f97"},"content":{"rendered":"<p>\u5f37\u5236HTTPS\u63a5\u7d9a\u3067\u30a2\u30af\u30bb\u30b9\u3055\u305b\u308b\u30b5\u30a4\u30c8\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u3053\u3067\u306f\u5e74\u984d\u6570\u5343\u5186\u306e\u6709\u6599SSL\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u305c\u306a\u3089\u3070&#8230;<br \/>\n\u305d\u306e\u30b5\u30a4\u30c8\u3092\u958b\u8a2d\u3057\u305f\u6642\u70b9\u3067\u306f <a href=\"https:\/\/letsencrypt.org\/\" target=_blank style=\"font-size:1.5rem;\">Let&#8217;s Encrypt<\/a> \u304c\u30b5\u30fc\u30d3\u30b9\u958b\u59cb\u524d\u3067\u3042\u3063\u305f\u304b\u3089\u3002<\/p>\n<h2 style=\"font-size:1.5rem;color:#00f;\">\u500b\u4eba\u904b\u55b6\u306e\u30b5\u30a4\u30c8\u3067\u4f1d\u9001\u8def\u4e0a\u3092\u6d41\u308c\u308b\u30c7\u30fc\u30bf\u3092\u6697\u53f7\u5316\u3057\u305f\u3044\u3060\u3051<\/h2>\n<p>\u3068\u3044\u3046\u30e9\u30a4\u30c8\u306a\u76ee\u7684\u3067\u3042\u308c\u3070\u3001\u6709\u6599\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u308f\u305a\u3001\u3053\u306e\u7121\u6599\u306eSSL\u8a3c\u660e\u66f8\u3067\u5341\u5206\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h1 class=\"my_h\">1. \u53d6\u5f97\u624b\u9806\uff08CentOS7\u306e\u5834\u5408\uff09<\/h1>\n<h2 class=\"my_h\">(1) Certbot \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h2>\n<pre>\r\n# yum install certbot python-certbot-apache\r\n<\/pre>\n<h2 class=\"my_h\">(2) httpd.conf\u306b VirtualHost\u60c5\u5831\u3092\u8ffd\u8a18\u3059\u308b\u3002<\/h2>\n<p>httpd.conf\u3092\u5909\u66f4\u3057\u305f\u304f\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u65b0\u898f\u306b\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u305f\u3002<\/p>\n<pre>\r\nvi \/etc\/httpd\/conf.d\/myhost.conf\r\n<\/pre>\n<p>\u305d\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u66f8\u3044\u305f\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nNameVirtualHost *:80\r\n&lt;VirtualHost *:80&gt;\r\n    ServerAdmin xxxxxxxx@xxxxxxxx.xxxx   # \u81ea\u5206\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u308b\u3002\r\n    DocumentRoot \/var\/www\/html\r\n    ServerName xxxx.xxxxxxxxx.xxx  # \u81ea\u5206\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u308b\u3002\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<h2 class=\"my_h\">(3) Certbot\u3092\u5b9f\u884c\u3059\u308b\u3002<\/h2>\n<pre>\r\n# certbot\r\n<\/pre>\n<p>\u5b9f\u884c\u5f8c\u306f\u3044\u304f\u3064\u304b\u306e\u8cea\u554f\u306b\u7b54\u3048\u308b\u3060\u3051\u3067\u3088\u3044\u3002<br \/>\n\u6570\u5206\u5f8c\u306b\u306f https \u3067\u7e4b\u304c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\uff01<\/p>\n<p><a href=\"https:\/\/letsencrypt.jp\/\" target=_blank>\u65e5\u672c\u8a9e\u3067\u89e3\u8aac\u3057\u3066\u304f\u3060\u3055\u3063\u3066\u3044\u308b\u30b5\u30a4\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" src=\"\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2016\/11\/Image1.jpg\" alt=\"image1\" \/><\/a><\/p>\n<h1 class=\"my_h\">3. \u66f4\u65b0\u624b\u9806<\/h1>\n<p>\u3053\u306eSSL\u8a3c\u660e\u66f8\u306f\u30e9\u30a4\u30bb\u30f3\u30b9\u6709\u52b9\u671f\u9593\u304c <span class=my_fc_deeppink>3\u304b\u6708\u9593<\/span>\u3057\u304b\u306a\u3044\u3002\uff082016\u5e7411\u6708\u6642\u70b9\uff09<br \/>\n\u3061\u3087\u304f\u3061\u3087\u304f\u66f4\u65b0\u4f5c\u696d\u304c\u5fc5\u8981\u3060\u3002<\/p>\n<pre>\r\nINSTALLDIR=\/opt\/letsencrypt\r\ncd $INSTALLDIR\r\n\r\nsystemctl stop httpd.service\r\n.\/letsencrypt-auto renew\r\nsystemctl start httpd.service\r\n<\/pre>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>\u5f37\u5236HTTPS\u63a5\u7d9a\u3067\u30a2\u30af\u30bb\u30b9\u3055\u305b\u308b\u30b5\u30a4\u30c8\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u3053\u3067\u306f\u5e74\u984d\u6570\u5343\u5186\u306e\u6709\u6599SSL\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002 \u306a\u305c\u306a\u3089\u3070&#8230; \u305d\u306e\u30b5\u30a4\u30c8\u3092\u958b\u8a2d\u3057\u305f\u6642\u70b9\u3067\u306f Let&#8217;s Encrypt \u304c\u30b5\u30fc\u30d3\u30b9\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/linux\/blog41\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-429","post","type-post","status-publish","format-standard","hentry","category-ssl"],"views":2611,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/comments?post=429"}],"version-history":[{"count":33,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/429\/revisions"}],"predecessor-version":[{"id":1884,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/429\/revisions\/1884"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/media?parent=429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/categories?post=429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/tags?post=429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}