{"id":122,"date":"2024-09-09T02:13:06","date_gmt":"2024-09-08T17:13:06","guid":{"rendered":"https:\/\/hy2t.com\/?p=122"},"modified":"2024-09-09T02:13:07","modified_gmt":"2024-09-08T17:13:07","slug":"lets-encrypt%e3%81%ae%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%8c%e5%88%87%e3%82%8c%e3%81%9f%e3%81%ae%e3%81%a7%e6%9b%b4%e6%96%b0%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/hy2t.com\/?p=122","title":{"rendered":"Let&#8217;s Encrypt\u306e\u8a3c\u660e\u66f8\u304c\u5207\u308c\u305f\u306e\u3067\u66f4\u65b0\u3057\u305f"},"content":{"rendered":"\n<p>Let&#8217;s Encypt\u304b\u3089\u4e0b\u8a18\u306e\u30bf\u30a4\u30c8\u30eb\u3088\u3046\u306a\u30e1\u30fc\u30eb\u304c\u6765\u3066\u3044\u3066\u3001\u7121\u8996\u3057\u3066\u3044\u305f\u3089\u8a3c\u660e\u66f8\u304c\u5207\u308c\u3066\u3057\u307e\u3063\u305f\u3002<\/p>\n\n\n\n<p><em>Let&#8217;s Encrypt certificate expiration notice for domain &#8220;blog.hy2t.com&#8221; (and 1 more)<\/em><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u81ea\u4f53\u306f\u4f7f\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u6d88\u3048\u3066\u554f\u984c\u306a\u304b\u3063\u305f\u304c\u3001(and 1 more)\u306b\u5fc5\u8981\u306a\u30c9\u30e1\u30a4\u30f3\u304c\u542b\u307e\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u5bfe\u5fdc\u3057\u306a\u3044\u3068\u3002\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u3084\u308b\u3053\u3068<\/h2>\n\n\n\n<p>\u81ea\u52d5\u8a2d\u5b9a\u65b9\u6cd5\u306f<a href=\"https:\/\/weblabo.oscasierra.net\/letsencrypt-renew-cron\/\">\u8272\u3005\u306a\u30b5\u30a4\u30c8<\/a>\u3067\u3042\u308b\u304c\u3001\u3044\u3089\u306a\u3044\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a\u306f\u6d88\u3057\u305f\u3044\u3002<\/p>\n\n\n\n<p>\u4e0d\u8981\u8a2d\u5b9a\u3092\u524a\u9664 => \u518d\u8a2d\u5b9a => \u81ea\u52d5\u66f4\u65b0\u3092\u884c\u306a\u3063\u305f\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e0d\u8981\u30c9\u30e1\u30a4\u30f3\u524a\u9664<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u65e2\u5b58\u30c9\u30e1\u30a4\u30f3\u3092\u4e00\u65e6\u524a\u9664\u3059\u308b\nsudo certbot delete\n\nWhich certificate(s) would you like to delete?\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n1: blog.hy2t.com\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nSelect the appropriate numbers separated by commas and\/or spaces, or leave input\nblank to select all options shown (Enter 'c' to cancel): 1\n\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nThe following certificate(s) are selected for deletion:\n\n  * blog.hy2t.com\n\nWARNING: Before continuing, ensure that the listed certificates are not being\nused by any installed server software (e.g. Apache, nginx, mail servers).\nDeleting a certificate that is still being used will cause the server software\nto stop working. See https:\/\/certbot.org\/deleting-certs for information on\ndeleting certificates safely.\n\nAre you sure you want to delete the above certificate(s)?\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n(Y)es\/(N)o: Y\nDeleted all files relating to certificate blog.hy2t.com.<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u66f4\u65b0\u30fb\u30fb\u3002\u5931\u6557<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u66f4\u65b0\nsudo certbot -d hy2t.com  --apache --renew-with-new-domains\n\nSaving debug log to \/var\/log\/letsencrypt\/letsencrypt.log\nError while running apache2ctl configtest.\nAction 'configtest' failed.\nThe Apache error log may have more information.\n\nAH00526: Syntax error on line 18 of \/etc\/apache2\/sites-enabled\/wordpress-https.conf:\nSSLCertificateFile: file '\/etc\/letsencrypt\/live\/blog.hy2t.com\/fullchain.pem' does not exist or is empty<\/code><\/pre>\n\n\n\n<p>apache2\u306eSSL\u8a2d\u5b9a\u3092\u6d88\u3055\u306a\u3044\u3068\u30c0\u30e1\u3060\u3068\u304b\u3001\u3001key\u3068\u304b\u306e\u8a18\u8ff0\u3092\u6d88\u3057\u3066\u3082\u7acb\u3061\u4e0a\u3052\u3089\u308c\u306a\u3044\u305f\u3081<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u81ea\u4f53\u3092\u79fb\u52d5\nsudo mv \/etc\/apache2\/sites-enabled\/wordpress-https.conf \/etc\/apache2\/sites-enabled\/wordpress-https.conf2\n\n# apache2\u306e\u518d\u8d77\u52d5\nsudo systemctl restart apache2\n=> OK<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u81ea\u52d5\u66f4\u65b0<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\nsudo crontab -e\n\n00 04 01 * * certbot renew &amp;&amp; systemctl restart apache2<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4ee5\u4e0a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s Encypt\u304b\u3089\u4e0b\u8a18\u306e\u30bf\u30a4\u30c8\u30eb\u3088\u3046\u306a\u30e1\u30fc\u30eb\u304c\u6765\u3066\u3044\u3066\u3001\u7121\u8996\u3057\u3066\u3044\u305f\u3089\u8a3c\u660e\u66f8\u304c\u5207\u308c\u3066\u3057\u307e\u3063\u305f\u3002 Let&#8217;s Encrypt certificate expiration notice f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-122","post","type-post","status-publish","format-standard","hentry","category-12"],"_links":{"self":[{"href":"https:\/\/hy2t.com\/index.php?rest_route=\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hy2t.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hy2t.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hy2t.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hy2t.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=122"}],"version-history":[{"count":1,"href":"https:\/\/hy2t.com\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":123,"href":"https:\/\/hy2t.com\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions\/123"}],"wp:attachment":[{"href":"https:\/\/hy2t.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hy2t.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hy2t.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}