{"id":834,"date":"2016-05-05T15:56:01","date_gmt":"2016-05-05T06:56:01","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=834"},"modified":"2022-05-04T06:19:57","modified_gmt":"2022-05-03T21:19:57","slug":"lets-encrypt%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/834","title":{"rendered":"Let&#8217;s Encrypt\u306e\u8a2d\u5b9a"},"content":{"rendered":"<h3>\u3010\u6ce8\u610f\u3011<\/h3>\n<p>\u4ee5\u4e0b\u306f2017\u5e7412\u6708\u73fe\u5728\u306e\u904e\u53bb\u306e\u60c5\u5831\u3067\u3059\u3002<br \/>\n2021\u5e741\u6708\u4ee5\u964d &quot;certbot-auto&quot; \u306f\u975e\u63a8\u5968\uff08\u975e\u30b5\u30dd\u30fc\u30c8\uff09\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true \" >$ sudo \/usr\/local\/bin\/certbot-auto --dru-run renew\r\nYour system is not supported by certbot-auto anymore.\r\ncertbot-auto and its Certbot installation will no longer receive updates.\r\nYou will not receive any bug fixes including those fixing server compatibility\r\nor security problems.\r\nPlease visit https:\/\/certbot.eff.org\/ to check for other alternatives.<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h3>\n<p><a href=\"https:\/\/certbot.eff.org\">https:\/\/certbot.eff.org<\/a><\/p>\n<h4>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u4f8b<\/h4>\n<pre class=\"lang:sh decode:true \">$ cd \/usr\/local\/bin\r\n$ sudo wget https:\/\/dl.eff.org\/certbot-auto\r\n$ sudo chmod a+x certbot-auto<\/pre>\n<h4>[\u88dc\u8db3] 2016\u5e7410\u6708\u4ee5\u524d(\u96fb\u5b50\u30d5\u30ed\u30f3\u30c6\u30a3\u30a2\u8ca1\u56e3EFF\u79fb\u884c\u524d)\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h4>\n<pre class=\"lang:sh decode:true \">$ cd \/usr\/local\r\n$ sudo git clone https:\/\/github.com\/certbot\/certbot<\/pre>\n<h4>[\u88dc\u8db3] 2016\u5e745\u6708\u4ee5\u524d\u306e\u65e7GitHub\u30ea\u30dd\u30b8\u30c8\u30ea<\/h4>\n<pre class=\"lang:sh decode:true \">https:\/\/github.com\/letsencrypt\/letsencrypt<\/pre>\n<p>&nbsp;<\/p>\n<h3>SSL\u8a3c\u660e\u66f8\u53d6\u5f97\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u3044\u65b9<\/h3>\n<h3>standalone \u3068 webroot<\/h3>\n<dl>\n<dt>standalone<\/dt>\n<dd>SSL\u8a3c\u660e\u66f8\u53d6\u5f97\u30b3\u30de\u30f3\u30c9(certbot-auto)\u304c\u5358\u72ec\u3067\u52d5\u4f5c\u3057\u3066SSL\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3002certbot-auto\u30b3\u30de\u30f3\u30c9\u304cHTTP(80\u756a)\u30dd\u30fc\u30c8\u3068HTTPS(443\u756a)\u30dd\u30fc\u30c8\u3092\u5360\u6709\u3059\u308b\u3002apache\u3084nginx\u306a\u3069\u306eWeb\u30b5\u30fc\u30d0\u30d7\u30ed\u30bb\u30b9\u304c\u5b58\u5728\u3059\u308b\u3068\u304d\u306f\u3001\u305d\u306e\u30d7\u30ed\u30bb\u30b9\u3092certbot-auto\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u6700\u4e2d\u306f\u4e00\u6642\u505c\u6b62\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/dd>\n<\/dl>\n<dl>\n<dt>webroot<\/dt>\n<dd>apache\u3084nginx\u3067\u5916\u90e8\u516c\u958b\u3057\u3066\u3044\u308bwebroot(\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea)\u3092\u4f7f\u3063\u3066SSL\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3002Web\u30b5\u30fc\u30d0\u30d7\u30ed\u30bb\u30b9\u3092\u4e00\u6642\u505c\u6b62\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u3002<\/dd>\n<\/dl>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<h3>Apache2\u306e\u8a2d\u5b9a<\/h3>\n<h4>\/etc\/httpd\/conf.d\/ssl.conf<\/h4>\n<pre class=\"lang:apache decode:true \">...\r\nSSLCertificateFile \/etc\/letsencrypt\/live\/chihayafuru.jp\/cert.pem\r\nSSLCertificateKeyFile \/etc\/letsencrypt\/live\/chihayafuru.jp\/privkey.pem\r\nSSLCertificateChainFile \/etc\/letsencrypt\/live\/chihayafuru.jp\/chain.pem\r\n...<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u8a3c\u660e\u66f8\u306e\u66f4\u65b0<\/h3>\n<h4>\u8a3c\u660e\u66f8\u306e\u518d\u767a\u884c<\/h4>\n<pre class=\"lang:sh highlight:0 decode:true \">$ sudo \/usr\/local\/bin\/certbot-auto renew<\/pre>\n<p>\/etc\/letsencrypt\/renewal\/chihayafuru.jp.conf\u3092\u8aad\u307f\u8fbc\u3093\u3067\u5b9f\u884c\u3059\u308b\u305f\u3081\u7d30\u304b\u3044\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u4e0d\u8981\u3002 &#8211;dry-run \u3067\u30c6\u30b9\u30c8\u52d5\u4f5c\u3002<\/p>\n<pre class=\"lang:sh highlight:0 decode:true \">$ sudo \/usr\/local\/bin\/certbot-auto certonly --renew-by-default --webroot --webroot-path \/var\/www\/html -d chihayafuru.jp -d www.chihayafuru.jp --debug<\/pre>\n<p>&#8211;debug : certbot-auto \u304c Amazon Linux \u306b\u672a\u5bfe\u5fdc\u306e\u305f\u3081\u3001debug\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u5fc5\u8981<\/p>\n<h4>apache2\u306e\u518d\u8d77\u52d5<\/h4>\n<pre class=\"lang:sh highlight:0 decode:true \">$ sudo systemctl restart httpd<\/pre>\n<p>&nbsp;<\/p>\n<p>\u203b 2016\u5e745\u6708\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30c4\u30fc\u30eb\u306e\u30b3\u30de\u30f3\u30c9\u540d\u304c &#8220;letencrypt-auto&#8221; \u304b\u3089 &#8220;certbot-auto&#8221; \u3078\u5909\u66f4\u3055\u308c\u305f\u3002<\/p>\n<p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u6ce8\u610f\u3011 \u4ee5\u4e0b\u306f2017\u5e7412\u6708\u73fe\u5728\u306e\u904e\u53bb\u306e\u60c5\u5831\u3067\u3059\u3002 2021\u5e741\u6708\u4ee5\u964d &quot;certbot-auto&quot; \u306f\u975e\u63a8\u5968\uff08\u975e\u30b5\u30dd\u30fc\u30c8\uff09\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 $ sudo \/usr\/local\/bin\/certb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[37],"class_list":["post-834","post","type-post","status-publish","format-standard","hentry","category-memo","tag-lets-encrypt"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=834"}],"version-history":[{"count":23,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/834\/revisions"}],"predecessor-version":[{"id":5245,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/834\/revisions\/5245"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}