{"id":279,"date":"2021-10-01T14:16:38","date_gmt":"2021-10-01T05:16:38","guid":{"rendered":"https:\/\/hironori.work\/?p=279"},"modified":"2021-10-01T14:16:38","modified_gmt":"2021-10-01T05:16:38","slug":"lightsail%e7%92%b0%e5%a2%83%e4%b8%8b%e3%81%a7%e3%81%aessl-tls%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":"http:\/\/54.248.82.128\/?p=279","title":{"rendered":"Lightsail\u74b0\u5883\u4e0b\u3067\u306eSSL\/TLS\u8a3c\u660e\u66f8\u81ea\u52d5\u66f4\u65b0"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Lightsail\u74b0\u5883\u4e0b\u3067\u3001\u7121\u511f\u306eSSL\/TLS\u8a3c\u660e\u66f8\u3092\u81ea\u52d5\u66f4\u65b0\u3059\u308b\u624b\u9806\u3092\u5065\u5fd8\u7984\u3068\u3057\u3066\u30e1\u30e2\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uff12\uff10\uff12\uff12\uff0f\uff13\uff0f\uff13\uff11\u3000\u8a3c\u660e\u66f8\u306e\u9375\u9577\u306e\u7591\u554f\u3078\u8ffd\u8a18\u3002<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uff12\uff10\uff12\uff12\uff0f\uff12\uff0f\uff11\u3000\u8a3c\u660e\u66f8\u306e\u8aa4\u767a\u884c\u5bfe\u5fdc\u3092\u8ffd\u8a18\u3002<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/opt\/bitnami\/letsencrypt\/renew-certficate.sh  \u3092\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u4f5c\u6210\u3059\u308b\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">#!\/bin\/bash<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo \/opt\/bitnami\/ctlscript.sh stop apache<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo \/opt\/bitnami\/letsencrypt\/lego &#8211;tls &#8211;email=&#8221;\u7ba1\u7406\u8005\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9&#8221; &#8211;domains=&#8221;\u30c9\u30e1\u30a4\u30f3\u540d&#8221; &#8211;path=&#8221;\/opt\/bitnami\/letsencrypt&#8221; renew<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo mv \/opt\/bitnami\/apache2\/conf\/server.crt \/opt\/bitnami\/apache2\/conf\/server.crt-OLD<br>sudo cp \/opt\/bitnami\/letsencrypt\/certificates\/\u30c9\u30e1\u30a4\u30f3\u540d.crt \/opt\/bitnami\/apache2\/conf\/<br>server.crt<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo mv \/opt\/bitnami\/apache2\/conf\/server.key \/opt\/bitnami\/apache2\/conf\/server.key-OLD<br>sudo cp \/opt\/bitnami\/letsencrypt\/certificates\/\u30c9\u30e1\u30a4\u30f3\u540d.key \/opt\/bitnami\/apache2\/conf\/<br>server.key<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo \/opt\/bitnami\/ctlscript.sh start apache<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f5c\u6210\u3057\u305fshell\u306f\u5358\u72ec\u3067\u52d5\u4f5c\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30af\u30ed\u30fc\u30f3\u3078\u767b\u9332\u3059\u308b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/var\/spool\/cron\/root.lst  \u3092\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u4f5c\u6210\u3059\u308b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">30 14 1 02,04,06,08,10,12 * \/opt\/bitnami\/letsencrypt\/renew-certficate.sh &gt;&gt; \/home\/bitnami\/renew-cert.txt<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo crontab -l<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo crontab -r<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo crontab &lt; root.lst<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f8c\u306f\u3001\u5b9f\u969b\u306b\u30af\u30ed\u30fc\u30f3\u304c\u5b9f\u884c\u3055\u308c\u3001\u8a3c\u660e\u66f8\u304c\u66f4\u65b0\u3055\u308c\u308b\u4e8b\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u203b\uff1a\u8a3c\u660e\u66f8\u306f\uff13\uff10\u65e5\u4ee5\u4e0a\u7d4c\u904e\u3057\u3066\u3044\u306a\u3044\u3068\u66f4\u65b0\u3055\u308c\u306a\u3044\u306e\u3067\u3001\uff13\uff10\u65e5\u4ee5\u4e0a\u7d4c\u904e\u3057\u3066\u306e\u52d5\u4f5c\u3092\u78ba\u8a8d\u3059\u308b\u4e8b\uff01\uff01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u203b\uff12\uff1a\uff12\uff10\uff12\uff11\uff0f\uff11\uff12\uff0f\uff13\u8ffd\u8a18\u3000\u8a3c\u660e\u66f8\u306e\uff2b\uff45\uff59\u30b5\u30a4\u30ba\u304c\uff12\uff15\uff16\u3002\u3053\u308c\u3092\uff14\uff10\uff19\uff16\u306b\u5909\u66f4\u3057\u3088\u3046\u3068\u3057\u305f\u304c\u3001\u53cd\u6620\u3055\u308c\u306a\u3044\u3002<\/strong>\u8981\u8abf\u67fb\u306e\u4e8b\u3002\uff08\u305d\u306e\u5185\u78ba\u8a8d\u3057\u307e\u3059\uff09\u3000\uff1c\uff0d\uff12\uff10\uff12\uff12\uff0f\uff13\uff0f\uff13\uff11\u3000\u78ba\u8a8d\u3057\u305f\u3002\u73fe\u72b6\u3067\u554f\u984c\u304c\u7121\u3044\u4e8b\u304c\u78ba\u8a8d\u51fa\u6765\u305f\u306e\u3067\u73fe\u72b6\u306e\u307e\u307e\u3068\u3059\u308b\u3002\u8a73\u7d30\u306f\u5225\u6295\u7a3f\u3078\u8a18\u8f09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DNS\u306e\u767b\u9332\u60c5\u5831\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5\u3002\u4ee5\u4e0b\u306eURL\u3067\u78ba\u8a8d\u51fa\u6765\u308b\uff08AWS\u306e\u8aac\u660e\u306b\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u30b5\u30a4\u30c8\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/mxtoolbox.com\/TXTLookup.aspx\">https:\/\/mxtoolbox.com\/TXTLookup.aspx<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u203b\uff13\uff1a\uff12\uff10\uff12\uff12\uff0f\uff12\uff0f\uff11\u3000\u8a3c\u660e\u66f8\u306e\u691c\u8a3c\u65b9\u6cd5\u306b\u4ed5\u69d8\u9055\u53cd\u304c\u6709\u308a\u3001\u8a3c\u660e\u66f8\u304c\u53d6\u308a\u6d88\u3055\u308c\u305f\u306e\u3067\u66f4\u65b0\u3057\u305f\u3002<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\uff12\uff10\uff12\uff12\uff0f\uff11\uff0f\uff12\uff18\u3000\uff11\uff16\uff1a\uff10\uff10\u3000\uff08UTC\u6642\u9593\u306a\u306e\u3067\u3001\uff12\uff19\u65e5\u3000\uff11\uff1a\uff10\uff10\uff08AM\uff09\u304c\u65e5\u672c\u6642\u9593\uff09\u306b\u8a3c\u660e\u66f8\u304c\u7121\u52b9\u306b\u306a\u308b\u3068\u30e1\u30fc\u30eb\u304c\u5c4a\u3044\u305f\u3002\u30e1\u30fc\u30eb\u306f\u3001\uff11\uff0f\uff12\uff16\u306b\u5c4a\u3044\u3066\u3044\u308b\u3002\u3053\u308c\u3001\u201dTLS-ALPN-01\u691c\u8a3c\u65b9\u5f0f\u3092\u4f7f\u3063\u3066Let&#8217;s Encrypt\u304b\u3089\u767a\u884c\u3055\u308c\u305fTLS\u8a3c\u660e\u66f8\u201d\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3067\u3001\u8aa4\u767a\u884c\u3068\u898b\u306a\u3059\u3068\u306e\u5bfe\u5fdc\u306b\u306a\u308b\u307f\u305f\u3044\u3002\uff12\uff10\uff11\uff19\u5e74\u3068\u304b\u3001\u540c\u3058\u3088\u3046\u306a\u8a71\u304c\u6709\u3063\u305f\u306f\u305a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u4eca\u56de\u3001\u671f\u9650\u3092\u904e\u304e\u308b\u3068\u3001\u3069\u306e\u3088\u3046\u306a\u52d5\u304d\u3092\u3059\u308b\u306e\u304b\u78ba\u8a8d\u3057\u305f\uff08\u8981\u306f\u8a3c\u660e\u66f8\u3092\u66f4\u65b0\u305b\u305a\u306b\u671f\u9650\u304c\u904e\u304e\u308b\u306e\u3092\u5f85\u3063\u305f\uff09\u3002\u7d50\u679c\u306f\u4ee5\u4e0b\uff08\u4ee3\u8868\u7684\u306a\u7269\u306e\u307f\u8a18\u8f09\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000a)ESET\u3068\u304b\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30bd\u30d5\u30c8\u304c\u5165\u3063\u305f\u74b0\u5883\u3067\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30bd\u30d5\u30c8\u304c\u30d6\u30ed\u30c3\u30af\u3059\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000b)iPhone\u3000\u3067\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u304c\u30d6\u30ed\u30c3\u30af\u3059\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000c)<strong>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30bd\u30d5\u30c8\u7121\u3057<\/strong>\uff08ESET\u7b49\u306e\u4e8b\u3002<strong>Defender\u306f\u6709\u52b9<\/strong>\u306b\u306a\u3063\u3066\u304a\u308a\u6a5f\u80fd\u3057\u3066\u3044\u308b\uff09\u3060\u3068\u3001Windows10\uff0bEdge\u3000\u306f<strong>\u4f55\u306e\u554f\u984c\u3082\u7121\u304f\u30a2\u30af\u30bb\u30b9\u51fa\u6765\u308b<\/strong>\u3002\u8a3c\u660e\u66f8\u3082\u554f\u984c\u7121\u3057\u3068\u8868\u793a\u3055\u308c\u3001\u5185\u5bb9\u8a73\u7d30\u3082\u7121\u52b9\u306b\u306a\u308b\u524d\u3068\u5168\u304f\u540c\u3058\uff08\u3064\u307e\u308a\u3001<strong>\u7121\u52b9\u306a\u8a3c\u660e\u66f8\u3068\u5224\u65ad\u304c\u51fa\u6765\u306a\u3044<\/strong>\uff09\u3002\u3000\uff1c\u30fc\u3053\u308c\u3001<strong>\u826f\u3044\u306e\u304b\uff1f\uff1f\uff1f\uff1f<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u5bfe\u5fdc\u306f\u3001\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u3092\u5b9f\u65bd\u3067OK\uff08\u901a\u5e38\u306e\u671f\u9650\u5207\u308c\uff08\u666e\u901a\u306f\uff19\uff10\u65e5\u3067\u5207\u308c\u308b\uff09\u3068\u540c\u3058\u66f4\u65b0\u65b9\u6cd5\u3067\uff09\u3002\u4f46\u3057\u3001\u6b8b\u306e\u6709\u52b9\u671f\u9650\u304c\uff13\uff10\u65e5\u3092\u8d85\u3048\u308b\u5834\u5408\u306f\u5f37\u5236\u7684\u306b\u518d\u767a\u884c\u304c\u5fc5\u8981\uff08\u3053\u308c\u306f\u4ed5\u69d8\u3067\u3001\u4eca\u56de\u306e\u3088\u3046\u306b\u3001\u7121\u52b9\u306b\u306a\u3063\u305f\u5f8c\u3067\u3082\uff08\uff12\uff19\u65e5\u3092\u904e\u304e\u3066\uff08JST\uff09\u3044\u3066\u3082\u3001\u6709\u52b9\u671f\u9650\u304c\uff13\uff10\u65e5\u3092\u8d85\u3048\u308b\u3068\u518d\u767a\u884c\u3055\u308c\u306a\u3044\uff09\u540c\u69d8\u306e\u52d5\u304d\u3060\u3063\u305f\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\uff1c\u53c2\u8003\uff1a\u5c4a\u3044\u305f\u30e1\u30fc\u30eb\u672c\u6587\uff1e<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Hello,\n\nPlease immediately renew your TLS certificate(s) that were issued from \nLet's Encrypt using the TLS-ALPN-01 validation method and the following \nACME registration (account) ID(s):\n\n 129393320 \n\nWe've determined that an error made it possible for TLS-ALPN-01 \nchallenges, completed before today, to not comply with certificate \nissuance requirements. We have remediated this problem and will revoke \nall unexpired certificates that used this validation method at 16:00 UTC \non 28 January 2022. Please renew your certificates now to ensure an \nuninterrupted experience for your site visitors.\n\nWe apologize for any inconvenience this may cause. If you need support \nin the renewal process, please comment on our forum post. Our staff and \ncommunity members are available to help:\n\n<a href=\"https:\/\/community.letsencrypt.org\/t\/170449\">https:\/\/community.letsencrypt.org\/t\/170449<\/a>\n\nThank you,\n\nThe Let's Encrypt Team\n\nIf you are receiving this email in error, unsubscribe at:\n  <a href=\"http:\/\/delivery.letsencrypt.org\/track\/unsub.php?u=30850198&amp;id=5c0a35b5472949619110d2fcf57752d5.5MIcVwCUXM%2Fc3rNh%2Bh2d8NcDT9s%3D&amp;r=https%3A%2F%2Fmandrillapp.com%2Funsub%3Fmd_email%3Dh%252A%252A%252A%252A%2540c%252A%252A%252A%252A.%252A%252A%252A\">http:\/\/delivery.letsencrypt.org\/track\/unsub.php?u=30850198&amp;id=5c0a35b5472949619110d2fcf57752d5.5MIcVwCUXM%2Fc3rNh%2Bh2d8NcDT9s%3D&amp;r=https%3A%2F%2Fmandrillapp.com%2Funsub%3Fmd_email%3Dh%252A%252A%252A%252A%2540c%252A%252A%252A%252A.%252A%252A%252A<\/a>\nPlease note that this would also unsubscribe you from other Let's Encrypt \nservice notices, like expiration reminders.<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lightsail\u74b0\u5883\u4e0b\u3067\u3001\u7121\u511f\u306eSSL\/TLS\u8a3c\u660e\u66f8\u3092\u81ea\u52d5\u66f4\u65b0\u3059\u308b\u624b\u9806\u3092\u5065\u5fd8\u7984\u3068\u3057\u3066\u30e1\u30e2\u3002 \uff12\uff10\uff12\uff12\uff0f\uff13\uff0f\uff13\uff11\u3000\u8a3c\u660e\u66f8\u306e\u9375\u9577\u306e\u7591\u554f\u3078\u8ffd\u8a18\u3002 \uff12\uff10\uff12\uff12\uff0f\uff12\uff0f\uff11\u3000\u8a3c\u660e\u66f8\u306e\u8aa4\u767a\u884c\u5bfe\u5fdc\u3092\u8ffd\u8a18\u3002 \/opt\/bitnami\/letsencrypt\/renew-certficate.sh \u3092\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u4f5c\u6210\u3059\u308b\u3002 #!\/bin\/bash sudo \/opt\/bitnami\/ctlscript.sh stop apache sudo \/opt\/bitnami\/letsencrypt\/lego &#8211;tls &#8211;email=&#8221;\u7ba1\u7406\u8005\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9&#8221; &#8211;domains=&#8221;\u30c9\u30e1\u30a4\u30f3\u540d&#8221; &#8211;path=&#8221;\/opt\/bitnami\/letsencrypt&#8221; renew sudo mv \/opt\/bitnami\/apache2\/conf\/server.crt \/opt\/bitnami\/apache2\/conf\/server.crt-OLDsudo cp \/opt\/bitnami\/letsencrypt\/certificates\/\u30c9\u30e1\u30a4\u30f3\u540d.crt \/opt\/bitnami\/apache2\/conf\/server.crt sudo mv \/opt\/bitnami\/apache2\/conf\/server.key \/opt\/bitnami\/apache2\/conf\/server.key-OLDsudo cp \/opt\/bitnami\/letsencrypt\/certificates\/\u30c9\u30e1\u30a4\u30f3\u540d.key \/opt\/bitnami\/apache2\/conf\/server.key sudo \/opt\/bitnami\/ctlscript.sh start apache \u4f5c\u6210\u3057\u305fshell\u306f\u5358\u72ec\u3067\u52d5\u4f5c\u3092\u78ba\u8a8d\u3059\u308b\u3002 \u30af\u30ed\u30fc\u30f3\u3078\u767b\u9332\u3059\u308b \/var\/spool\/cron\/root.lst \u3092\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u4f5c\u6210\u3059\u308b 30 14 1 02,04,06,08,10,12 * \/opt\/bitnami\/letsencrypt\/renew-certficate.sh &gt;&gt; \/home\/bitnami\/renew-cert.txt sudo crontab -l sudo crontab -r sudo crontab [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-279","post","type-post","status-publish","format-standard","hentry","category-work"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/54.248.82.128\/index.php?rest_route=\/wp\/v2\/posts\/279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/54.248.82.128\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/54.248.82.128\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/54.248.82.128\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/54.248.82.128\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=279"}],"version-history":[{"count":0,"href":"http:\/\/54.248.82.128\/index.php?rest_route=\/wp\/v2\/posts\/279\/revisions"}],"wp:attachment":[{"href":"http:\/\/54.248.82.128\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/54.248.82.128\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=279"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/54.248.82.128\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}