{"id":640,"date":"2017-04-16T13:01:40","date_gmt":"2017-04-16T04:01:40","guid":{"rendered":"https:\/\/blog.mamimu.me\/fishblue\/?p=640"},"modified":"2017-04-16T19:03:00","modified_gmt":"2017-04-16T10:03:00","slug":"aws-ec2%ef%bc%88ami%ef%bc%89%e3%81%ablets-encrypt%e3%81%ae%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/blog.mamimu.me\/fishblue\/?p=640","title":{"rendered":"AWS EC2\uff08AMI\uff09\u306bLet&#8217;s Encrypt\u306e\u8a3c\u660e\u66f8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u306b\u306f\u7121\u6599\u306eStartCOM\u306eSSL\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3057\u305f\u304cFirefox\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067Let&#8217;s Encrypt\u306e\u7121\u6599SSL\u8a3c\u660e\u66f8\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u3001\u305d\u306e\u6642\u306e\u5099\u5fd8\u9332\u3002<br \/>\n\u4e00\u8a00\u3067\u3044\u3046\u3068\u3051\u3063\u3053\u3046\u75b2\u308c\u305f\u3002<br \/>\n\u30b5\u30fc\u30d0\u30fc\u306fAWS EC2\u306eAmazon Linux\uff08AMI\uff09\u3067\u3059\u3002<\/p>\n<p>Let&#8217;s Encrypt\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30bd\u30d5\u30c8\u3092\u4f7f\u3063\u3066\u8a3c\u660e\u66f8\u306e\u4f5c\u6210\u3092\u884c\u3046\u3093\u3067\u3059\u304c\u3001\u3053\u308c\u304cAMI\u3060\u3068\u3059\u3093\u306a\u308a\u6210\u529f\u3057\u307e\u305b\u3093\u3002<br \/>\n\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u4e0b\u8a18\u3067\u3059\u3002<br \/>\n.\/certbot-auto: line 666: virtualenv: command not found<\/p>\n<p>virtualenv\u304c\u7121\u3044\u3068\u8a00\u3063\u3066\u3044\u308b\u3093\u3067\u3059\u304c\u3001Python2.6\u3060\u304b\u3089\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u3067Python2.7\u3060\u3068\u767a\u751f\u3057\u306a\u3044\u305d\u3046\u3067\u3059\u3002<br \/>\n\u3067\u3082\u81ea\u5206\u306eAWS\u3092\u898b\u3066\u307f\u308b\u3068Python2.7\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u591a\u6570\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3044\u308d\u3044\u308d\u30b0\u30b0\u308b\u3068CentOS6\u306a\u3089SCL\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308c\u3070\u3044\u3044\u305d\u3046\u3067\u3059\u3002\u3067\u3082AMI\u3060\u3068\u305d\u308c\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<!-- responsive --><br \/>\n<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-9128529039742412\"\n     data-ad-slot=\"4798609740\"\n     data-ad-format=\"auto\"><\/ins><br \/>\n<script>\n(adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><br \/>\n\u3067\u3001\u6700\u7d42\u7684\u306b\u884c\u3063\u305f\u306e\u304cvirtualenv\u306e\u5358\u72ec\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3059\u3002\uff08\u6700\u521d\u306b\u8a66\u3057\u305f\u3093\u3067\u3059\u3051\u3069\u306d\u3002\u306a\u305c\u304b\u305d\u306e\u6642\u306f\u5931\u6557\u3057\u307e\u3057\u305f\u30fb\u30fb\u30fb\uff09<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068virtualenv\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>yum install python-devel<br \/>\nyum install python-setuptools<br \/>\neasy_install pip<br \/>\npip install virtualenv<\/p>\n<p>\u3053\u306e\u5f8c\u306fLet&#8217;s Encrypt\u306e\u8a3c\u660e\u66f8\u4f5c\u6210\u624b\u9806\u3067\u554f\u984c\u306a\u304f\u5b8c\u4e86\u3002\u3088\u304b\u3063\u305f\u3088\u304b\u3063\u305f\u3002<br \/>\n\u3061\u306a\u307f\u306b\u8a3c\u660e\u66f8\u306e\u6709\u52b9\u671f\u9650\u306f3\u304b\u6708\u3067\u3059\u3002\u3061\u3087\u3063\u3068\u77ed\u3044\u3051\u3069\u5e74\u306b1\u56de\u3060\u3068\u624b\u9806\u5fd8\u308c\u308b\u304b\u3089\u30dd\u30b8\u30c6\u30a3\u30d6\u306b\u8003\u3048\u3088\u3046\u3002<\/p>\n<p>\u4e00\u5fdc\u3001Let&#8217;s Encrypt\u8a3c\u660e\u66f8\u306e\u4f5c\u6210\u624b\u9806\u3002<br \/>\nwget https:\/\/dl.eff.org\/certbot-auto<br \/>\nchmod a+x certbot-auto<br \/>\n.\/certbot-auto certonly &#8211;webroot -w [\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306e\u30d1\u30b9] -d [HTTPS\u30b5\u30a4\u30c8\u306eFQDN] &#8211;email [\u30e1\u30a2\u30c9] &#8211;debug<br \/>\n\u203bwebroot\u3068email\u3068debug\u306f\u30cf\u30a4\u30d5\u30f32\u3064\u3067\u3059\u3002<\/p>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<!-- rectungle --><br \/>\n<ins class=\"adsbygoogle\"\n     style=\"display:inline-block;width:300px;height:250px\"\n     data-ad-client=\"ca-pub-9128529039742412\"\n     data-ad-slot=\"9228809345\"><\/ins><br \/>\n<script>\n(adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u306b\u306f\u7121\u6599\u306eStartCOM\u306eSSL\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3057\u305f\u304cFirefox\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067Let&#8217;s Encrypt\u306e\u7121\u6599SSL\u8a3c\u660e\u66f8\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002 \u3067\u3001\u305d\u306e\u6642\u306e\u5099\u5fd8\u9332\u3002 \u4e00\u8a00<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-640","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/posts\/640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=640"}],"version-history":[{"count":0,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/posts\/640\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}