{"id":5011,"date":"2020-08-26T14:05:42","date_gmt":"2020-08-26T05:05:42","guid":{"rendered":"https:\/\/learningbox.co.jp\/?p=5011"},"modified":"2020-08-26T14:05:42","modified_gmt":"2020-08-26T05:05:42","slug":"blog_ssl-certification-2","status":"publish","type":"post","link":"https:\/\/learningbox.co.jp\/en\/2020\/08\/26\/blog_ssl-certification-2\/","title":{"rendered":"Recommendation of free SSL certificate Let's Encrypt Part2"},"content":{"rendered":"<p>\u9f8d\u91ce\u60c5\u5831\u30b7\u30b9\u30c6\u30e0\u6771\u4eac\u30c1\u30fc\u30e0\u3067\u3059\ud83d\udcbb\uff01\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001SSL\u306e\u7d9a\u7de8\u8a18\u4e8b\u3068\u3057\u3066\u300e<a href=\"https:\/\/tatsuno-system.co.jp\/2020\/04\/27\/blog_ssl-server-test\/\" rel=\"noopener noreferrer\" target=\"_blank\">SSL\u8106\u5f31\u6027\u8a3a\u65ad\u306e\u30b9\u30b9\u30e1<\/a>\u300f\u3068\u984c\u3057\u307e\u3057\u3066\u3001SSL\u6697\u53f7\u5316\u306e\u5b89\u5168\u6027\u3092\u78ba\u8a8d\u3059\u308b\u70ba\u306e\u7121\u6599\u30c4\u30fc\u30eb\u3092\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u3082\u524d\u56de\u306b\u5f15\u304d\u7d9a\u304d\u3001SSL\u306b\u3064\u3044\u3066\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>Amazon Linux\u3092\u3054\u5229\u7528\u306e\u7686\u69d8\u306f\u3001Amazon Linux\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u7d42\u4e86\u306b\u4f34\u3044\u3001Amazon Linux2 \u3078\u306e\u79fb\u884c\u3092\u3059\u3059\u3081\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u4ee5\u524d\u3001<a href=\"https:\/\/tatsuno-system.co.jp\/2020\/01\/30\/blog_ssl-certification\/\" rel=\"noopener noreferrer\" target=\"_blank\">\u7121\u6599SSL\u8a3c\u660e\u66f8 Let\u2019s Encrypt\u306e\u30b9\u30b9\u30e1<\/a>\u3068\u3057\u3066Let\u2019s Encrypt\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3092\u66f8\u304d\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u3042\u306e\u65b9\u6cd5\u3067\u306fAmazon Linux2\u306b\u306f\u4eca\u306e\u3068\u3053\u308d\u5bfe\u5fdc\u3057\u3066\u304a\u3089\u305a\u3001certbot\u3092\u624b\u52d5\u3067\u66f8\u304d\u63db\u3048\u3066\u52d5\u304f\u3088\u3046\u306b\u3057\u305f\u308a\u3068\u624b\u9593\u304c\u304b\u304b\u3063\u3066\u3044\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u3054\u7d39\u4ecb\u3059\u308b\u65b9\u6cd5\u3092\u4f7f\u3048\u3070\u3001\u308f\u3056\u308f\u3056\u66f8\u304d\u63db\u3048\u305f\u308a\u305b\u305a\u306bcertbot\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u3001Let\u2019s Encrypt\u306e\u904b\u7528\u306b\u3082\u652f\u969c\u304c\u3042\u308a\u307e\u305b\u3093\uff01\uff01\u672c\u7a3f\u3092\u53c2\u8003\u306b\u3001\u662f\u975e\u304a\u8a66\u3057\u4e0b\u3055\u3044\u3002<\/p>\n<p class=\"mokujimidasi\">\u76ee\u6b21\u306f\u3053\u3061\u3089<\/p>\n<ul class=\"mokuji\">\n<li>\uff11. Amazon Linux\u3068\u306f<\/li>\n<li>\uff12. Amazon Linux 2 \u306e\u7279\u5fb4\u306b\u3064\u3044\u3066<\/li>\n<li>\uff13. Amazon Linux 2 \u5bfe\u5fdc\u306ecertbot\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/li>\n<li>\uff14. \u307e\u3068\u3081<\/li>\n<\/ul>\n<h2><strong>Amazon Linux\u3068\u306f<\/strong><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tatsuno-system.co.jp\/wp-content\/uploads\/2020\/08\/3800184_m.jpg\" alt=\"Amazon Linux 2-SSL\" width=\"1920\" height=\"1280\" class=\"alignnone size-full wp-image-5026\" srcset=\"https:\/\/learningbox.co.jp\/wp-content\/uploads\/2020\/08\/3800184_m.jpg 1920w, https:\/\/learningbox.co.jp\/wp-content\/uploads\/2020\/08\/3800184_m-300x200.jpg 300w, https:\/\/learningbox.co.jp\/wp-content\/uploads\/2020\/08\/3800184_m-768x512.jpg 768w, https:\/\/learningbox.co.jp\/wp-content\/uploads\/2020\/08\/3800184_m-1024x683.jpg 1024w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>Amazon Linux \u306f\u30a2\u30de\u30be\u30f3 \u30a6\u30a7\u30d6 \u30b5\u30fc\u30d3\u30b9(AWS)\u3088\u308a\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b Linux \u30b5\u30fc\u30d0\u30fc\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3067\u3042\u308a\u3001\u73fe\u5728\u3067\u306f\u3001Amazon Linux AMI \u3068\u305d\u306e\u6b21\u4e16\u4ee3\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3042\u305f\u308b Amazon Linux 2 \u304c\u63d0\u4f9b\u3055\u308c\u3066\u307e\u3059\u3002<\/p>\n<h3>Amazon Linux 2<\/h3>\n<p>Amazon Linux 2 \u306f Amazon Linux \u306e\u6b21\u4e16\u4ee3\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3001\u30a2\u30de\u30be\u30f3 \u30a6\u30a7\u30d6 \u30b5\u30fc\u30d3\u30b9 (AWS) \u304c\u63d0\u4f9b\u3059\u308b Linux \u30b5\u30fc\u30d0\u30fc\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002 \u3053\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u5b89\u5b9a\u6027\u306b\u512a\u308c\u3001\u5b89\u5168\u3067\u9ad8\u6027\u80fd\u306a\u5b9f\u884c\u74b0\u5883\u3067\u3001\u30af\u30e9\u30a6\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u304a\u3088\u3073\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002 <\/p>\n<p>Amazon Linux 2 \u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u74b0\u5883\u3067\u306f\u3001\u9577\u671f\u30b5\u30dd\u30fc\u30c8\u3092\u53d7\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u3001Linux \u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u3067\u6700\u65b0\u306e\u30a4\u30ce\u30d9\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30aa\u30f3\u30d7\u30ec\u30df\u30b9\u3067\u306e\u958b\u767a\u3068\u30c6\u30b9\u30c8\u7528\u306b\u4eee\u60f3\u30de\u30b7\u30f3\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u3082\u5165\u624b\u3067\u304d\u308b\u305f\u3081\u3001\u30ed\u30fc\u30ab\u30eb\u306e\u958b\u767a\u74b0\u5883\u3067\u76f4\u63a5\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u3001\u30c6\u30b9\u30c8\u3001\u52d5\u4f5c\u4fdd\u8a3c\u3092\u884c\u3046\u969b\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<h2><strong>Amazon Linux 2\u306e\u7279\u5fb4\u306b\u3064\u3044\u3066<\/strong><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tatsuno-system.co.jp\/wp-content\/uploads\/2020\/08\/2020-08-25_11-27-42.png\" alt=\"Amazon Linux2-\u7279\u5fb4\" width=\"1114\" height=\"251\" class=\"alignnone size-full wp-image-5029\" srcset=\"https:\/\/learningbox.co.jp\/wp-content\/uploads\/2020\/08\/2020-08-25_11-27-42.png 1114w, https:\/\/learningbox.co.jp\/wp-content\/uploads\/2020\/08\/2020-08-25_11-27-42-300x68.png 300w, https:\/\/learningbox.co.jp\/wp-content\/uploads\/2020\/08\/2020-08-25_11-27-42-768x173.png 768w, https:\/\/learningbox.co.jp\/wp-content\/uploads\/2020\/08\/2020-08-25_11-27-42-1024x231.png 1024w\" sizes=\"auto, (max-width: 1114px) 100vw, 1114px\" \/>\u591a\u6570\u306e AWS \u30c4\u30fc\u30eb (AWS CLI \u306a\u3069) \u3068 cloud-init \u304c\u4ed8\u5c5e\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30c4\u30fc\u30eb\u306f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5185\u304b\u3089\u4f5c\u6210\u3059\u308b\u4e00\u822c\u7684\u306a\u7ba1\u7406\u30bf\u30b9\u30af\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7c21\u7565\u5316\u3057\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30ea\u30e2\u30fc\u30c8\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Amazon Linux 2 \u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001\u30c7\u30fc\u30bf\u5206\u6790\u3001\u696d\u52d9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3001\u672c\u756a\u74b0\u5883\u3067\u306e\u5e45\u5e83\u3044\u4eee\u60f3\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3084\u30b3\u30f3\u30c6\u30ca\u5316\u3055\u308c\u305f\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p class=\"well2\">\n<strong>\u25bcAmazon Linux 2\u306e\u30e1\u30ea\u30c3\u30c8\u306f\u3053\u3061\u3089\uff01<\/strong><br \/>\n\u30fb\u6700\u9069\u5316\u3055\u308c\u305f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9<br \/>\n\u30fb\u9577\u671f\u30b5\u30dd\u30fc\u30c8\u306b\u3088\u308b\u4e88\u6e2c\u53ef\u80fd\u6027<br \/>\n\u30fb\u958b\u767a\u8005\u306e\u751f\u7523\u6027\u306e\u5411\u4e0a<br \/>\n\u30fb\u6025\u6210\u9577\u3059\u308b\u30d1\u30fc\u30c8\u30ca\u30fc\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\n<\/p>\n<h2><strong>Amazon Linux 2 \u5bfe\u5fdc\u306ecertbot\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/strong><\/h2>\n<p>\u3053\u3053\u3067\u306fAmazon Linux2\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001yum\u3092\u5b9f\u65bd\u3059\u308b\u90fd\u5408\u4e0a\u3001root\u6a29\u9650\u306b\u3066\u4f5c\u696d\u3092\u5b9f\u65bd\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p class=\"well\">\u30fbAmazon Linux 2\u306eEPEL\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u6709\u52b9\u306b\u3059\u308b<br \/>\namazon-linux-extras install -y epel<br \/>\n\u30fbcertbot\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\nyum install certbot<br \/>\n\u30fb\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b<br \/>\ncertbot certonly &#8211;webroot -w \/var\/www\/html -d [SSL\u3092\u304b\u3051\u305f\u3044\u30c9\u30e1\u30a4\u30f3\u30fbURL] &#8211;email [\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9] -n &#8211;agree-tos<\/p>\n<p>\u7279\u306b\u554f\u984c\u304c\u306a\u3051\u308c\u3070\u3001\u4e0a\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u8a3c\u660e\u66f8\u306e\u767a\u884c\u307e\u3067\u5b8c\u4e86\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u4fdd\u5b58\u5834\u6240\u306b\u95a2\u3057\u3066\u306f\u5909\u66f4\u304c\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u7121\u6599SSL\u8a3c\u660e\u66f8 Let\u2019s Encrypt\u306e\u30b9\u30b9\u30e1\u3092\u53c2\u8003\u306b\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p>\u66f4\u65b0\u624b\u7d9a\u304d\u306e\u81ea\u52d5\u5316\u3082\u554f\u984c\u306a\u304f\u51fa\u6765\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306bcron\u306b\u767b\u9332\u3059\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n\uff08Amazon Linux\u3068\u306f\u66f8\u304d\u65b9\u304c\u3061\u3087\u3063\u3068\u9055\u3046\u306e\u3067\u3001\u4ee5\u524d\u306e\u7269\u3092\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3067\u306f\u99c4\u76ee\u3067\u3059\u3002\uff09<\/p>\n<p class=\"well\">00 4 * * 0 \/bin\/certbot renew &#8211;post-hook &#8220;\/usr\/bin\/systemctl reload httpd&#8221;<\/p>\n<p>&nbsp;<\/p>\n<h2><b>\u307e\u3068\u3081<\/b><\/h2>\n<p>Amazon Linux2\u306bcertbot\u3092\u4f7f\u3063\u3066Let\u2019s Encrypt\u306eSSL\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u9f8d\u91ce\u60c5\u5831\u30b7\u30b9\u30c6\u30e0\u6771\u4eac\u30c1\u30fc\u30e0\u3067\u3059\ud83d\udcbb\uff01\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001SSL\u306e\u7d9a\u7de8\u8a18\u4e8b\u3068\u3057\u3066\u300eSSL\u8106\u5f31\u6027\u8a3a\u65ad\u306e\u30b9\u30b9\u30e1\u300f\u3068\u984c\u3057\u307e\u3057 [&hellip;]","protected":false},"author":1,"featured_media":5036,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"0","_wpcom_ai_launchpad_first_post":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[12,6,7],"tags":[42,43,45,44],"class_list":["post-5011","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-blog","category-7","tag-amazon-linux","tag-amazon-linux-2","tag-certbot","tag-ssl"],"acf":[],"jetpack_shortlink":"https:\/\/wp.me\/pgMrZ4-1iP","jetpack_featured_media_url":"https:\/\/learningbox.co.jp\/wp-content\/uploads\/2020\/08\/2020-08-25_11-46-42.png","_links":{"self":[{"href":"https:\/\/learningbox.co.jp\/en\/wp-json\/wp\/v2\/posts\/5011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learningbox.co.jp\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learningbox.co.jp\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learningbox.co.jp\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learningbox.co.jp\/en\/wp-json\/wp\/v2\/comments?post=5011"}],"version-history":[{"count":24,"href":"https:\/\/learningbox.co.jp\/en\/wp-json\/wp\/v2\/posts\/5011\/revisions"}],"predecessor-version":[{"id":5038,"href":"https:\/\/learningbox.co.jp\/en\/wp-json\/wp\/v2\/posts\/5011\/revisions\/5038"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learningbox.co.jp\/en\/wp-json\/wp\/v2\/media\/5036"}],"wp:attachment":[{"href":"https:\/\/learningbox.co.jp\/en\/wp-json\/wp\/v2\/media?parent=5011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learningbox.co.jp\/en\/wp-json\/wp\/v2\/categories?post=5011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learningbox.co.jp\/en\/wp-json\/wp\/v2\/tags?post=5011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}