{"id":7903,"date":"2025-02-18T19:07:07","date_gmt":"2025-02-18T10:07:07","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=7903"},"modified":"2025-02-19T08:53:49","modified_gmt":"2025-02-18T23:53:49","slug":"lets-encrypt-%e8%a8%bc%e6%98%8e%e6%9b%b8%e8%87%aa%e5%8b%95%e6%9b%b4%e6%96%b0","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/7903","title":{"rendered":"[Let&#8217;s Encrypt]  \u8a3c\u660e\u66f8\u81ea\u52d5\u66f4\u65b0"},"content":{"rendered":"<p>Amazon Linux 2023 (crond\u975e\u6a19\u6e96\u3001systemd \u30bf\u30a4\u30de\u30fc\u6a5f\u80fd \u63a8\u5968) \u74b0\u5883<\/p>\n<h3>\u30b5\u30fc\u30d3\u30b9\u518d\u8d77\u52d5\u306e\u8a2d\u5b9a<\/h3>\n<h4>\/etc\/sysconfig\/certbot<\/h4>\n<p>\u8a3c\u660e\u66f8\u66f4\u65b0\u51e6\u7406\u5f8c\u306e httpd (apache2) \u306e\u518d\u8d77\u52d5\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<pre class=\"lang:diff highlight:0 decode:true \" >- # POST_HOOK=\"\"\r\n+ # POST_HOOK=\"--post-hook 'systemctl restart httpd'\"<\/pre>\n<h3>systemd timer \u306e\u6709\u52b9\u5316<\/h3>\n<pre class=\"lang:sh decode:true \" >$ sudo systemctl enable --now certbot-renew.timer<\/pre>\n<h4>timer \u306e\u78ba\u8a8d<\/h4>\n<pre class=\"lang:default highlight:0 decode:true \">$ systemctl list-timers\r\nNEXT                        LEFT          LAST                        PASSED        UNIT                             ACTIVATES\r\n...\r\nWed 2025-02-19 00:07:00 JST 4h 51min left Tue 2025-02-18 00:07:02 JST 19h ago       sysstat-summary.timer            sysstat-summary.service\r\nWed 2025-02-19 11:14:49 JST 15h left      -                           -             certbot-renew.timer              certbot-renew.service<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Amazon Linux 2023 (crond\u975e\u6a19\u6e96\u3001systemd \u30bf\u30a4\u30de\u30fc\u6a5f\u80fd \u63a8\u5968) \u74b0\u5883 \u30b5\u30fc\u30d3\u30b9\u518d\u8d77\u52d5\u306e\u8a2d\u5b9a \/etc\/sysconfig\/certbot \u8a3c\u660e\u66f8\u66f4\u65b0\u51e6\u7406\u5f8c\u306e httpd (apache2)  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[37],"class_list":["post-7903","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\/7903","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=7903"}],"version-history":[{"count":10,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/7903\/revisions"}],"predecessor-version":[{"id":7913,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/7903\/revisions\/7913"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=7903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=7903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=7903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}