{"id":1113,"date":"2017-05-02T10:23:28","date_gmt":"2017-05-02T01:23:28","guid":{"rendered":"http:\/\/www.beeete2.com\/blog\/?p=1113"},"modified":"2017-05-02T13:56:22","modified_gmt":"2017-05-02T04:56:22","slug":"post-1113","status":"publish","type":"post","link":"https:\/\/www.beeete2.com\/blog\/?p=1113","title":{"rendered":"\u30b5\u30a4\u30c8\u306bLet's Encrypt\u3092\u5c0e\u5165\u3057\u307e\u3057\u305f"},"content":{"rendered":"<p>\u4e00\u6614\u524d\u307e\u3067\u306fSSL(https)\u306f\u500b\u4eba\u60c5\u5831\u3092\u5165\u529b\u3059\u308b\u7279\u5b9a\u306e\u30d1\u30b9\u3067\u904b\u7528\u3059\u308b\u3053\u3068\u304c\u591a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u6700\u8fd1\u306f\u30d5\u30ebhttps\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3053\u306e\u30d6\u30ed\u30b0\u3067\u3082\u5c0e\u5165\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\nSSL\u3092\u5c0e\u5165\u3059\u308b\u3068\u304d\u306b\u554f\u984c\u306b\u306a\u308b\u306e\u304c\u5c0e\u5165\u8cbb\u7528\u306a\u306e\u3067\u3059\u304c\u4eca\u56de\u306f\u7d44\u7e54\u8a3c\u660e\u7b49\u3092\u3059\u308b\u3053\u3068\u304c\u76ee\u7684\u3067\u306f\u306a\u304f\u3042\u304f\u307e\u3067https\u5316\u3059\u308b\u3053\u3068\u304c\u76ee\u7684\u3060\u3063\u305f\u306e\u3067Let&#8217;s Encrypt\u3092\u4f7f\u3063\u3066\u8cbb\u7528\u3092\u304b\u3051\u305a\u306b\u5c0e\u5165\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u5c0e\u5165\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<br \/>\nSSL\u3092\u5c0e\u5165\u3057\u305f\u3053\u3068\u304c\u3042\u308b\u4eba\u306a\u30895\u5206\u7a0b\u5ea6\u3067\u7d42\u308f\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u4e8b\u524d\u306b\u3084\u3063\u3066\u304a\u304f\u3053\u3068<\/h2>\n<p>Apache\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u306e\u3067mod_ssl\u7b49\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u307e\u305f\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304cepel\u3092\u53c2\u7167\u3059\u308b\u305f\u3081epel\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n[bash]<br \/>\nyum install mod_ssl epel-release<br \/>\n[\/bash]<\/p>\n<h2>Let&#8217;s Encrypt\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u8a3c\u660e\u66f8\u306e\u4f5c\u6210\u306a\u3069\u306fLet&#8217;s Encrypt\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u3084\u3063\u3066\u304f\u308c\u307e\u3059\u306e\u3067\u3001\u307e\u305a\u306f\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3068\u884c\u3063\u3066\u3082\u5e38\u99d0\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u30b3\u30de\u30f3\u30c9\u304b\u3089\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<h3>Python2.7\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>CentOS6.7\u3060\u30682.6\u304c\u6a19\u6e96\u3060\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c2.7\u3092\u8981\u6c42\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u4e00\u6642\u7684\u306bPython2.7\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n\u8a73\u3057\u3044\u7406\u7531\u3068\u5bfe\u51e6\u6cd5\u306f<a href=\"https:\/\/letsencrypt.jp\/usage\/centos6-error.html#Solution\" target=\"_blank\">\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8<\/a>\u306b\u8a18\u8f09\u3057\u3066\u3042\u308a\u307e\u3059\u306e\u3067\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306f\u81ea\u5206\u306e\u74b0\u5883\u3067\u5b9f\u884c\u3057\u305f\u30b3\u30de\u30f3\u30c9\u3067\u3059<br \/>\n[bash]<br \/>\nyum install centos-release-scl<br \/>\nyum install python27 python27-python-tools<br \/>\nscl enable python27 bash<br \/>\n[\/bash]<br \/>\n\u3053\u308c\u3067\u4e00\u6642\u7684\u306bPython2.7\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h3>\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>[bash]<br \/>\ncurl https:\/\/dl.eff.org\/certbot-auto -o \/usr\/bin\/certbot-auto<br \/>\nchmod +x \/usr\/bin\/certbot-auto<br \/>\ncertbot-auto &#8211;os-packages-only &#8211;non-interactive<br \/>\n[\/bash]<br \/>\n\u3053\u308c\u3067\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u5b9f\u884c\u3067\u304d\u308b\u6e96\u5099\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h3>\u8a3c\u660e\u66f8\u306e\u751f\u6210<\/h3>\n<p>[bash]<br \/>\ncertbot-auto certonly &#8211;non-interactive &#8211;agree-tos \\<br \/>\n  &#8211;webroot -w \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306e\u30d5\u30eb\u30d1\u30b9 \\<br \/>\n  -d www.beeete2.com \\<br \/>\n  &#8211;email \u7ba1\u7406\u8005\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<br \/>\n[\/bash]<br \/>\n\u554f\u984c\u306a\u304f\u5b9f\u884c\u3067\u304d\u308b\u3068\/etc\/letsencrypt\/live\/www.beeete2.com\/\u4ee5\u4e0b\u306b\u8a3c\u660e\u66f8\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<br \/>\n\u8a3c\u660e\u66f8\u306e\u30d1\u30b9\u3092Apache\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n[text]<br \/>\n  SSLCertificateFile \/etc\/letsencrypt\/live\/www.beeete2.com\/cert.pem<br \/>\n  SSLCertificateKeyFile \/etc\/letsencrypt\/live\/www.beeete2.com\/privkey.pem<br \/>\n  SSLCertificateChainFile \/etc\/letsencrypt\/live\/www.beeete2.com\/chain.pem<br \/>\n[\/text]<\/p>\n<h3>\u53cd\u6620<\/h3>\n<p>\u3042\u3068\u306fApache\u3092\u518d\u8d77\u52d5\u3082\u3057\u304f\u306f\u518d\u8aad\u8fbc\u3057\u3066\u53cd\u6620\u3055\u305b\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<br \/>\nhttps\u5316\u306f\u3053\u308c\u3067\u5b8c\u4e86\u306a\u306e\u3067\u3059\u304c\u3001\u30da\u30fc\u30b8\u5185\u3067img\u30bf\u30b0\u7b49\u304chttp\u3092\u53c2\u7167\u3057\u3066\u3044\u308b\u30da\u30fc\u30b8\u81ea\u4f53\u306f\u307e\u3060\u4e0d\u5b8c\u5168\u306a\u306e\u3067\u6b21\u306f\u3053\u306e\u90e8\u5206\u3092\u76f4\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u6614\u524d\u307e\u3067\u306fSSL(https)\u306f\u500b\u4eba\u60c5\u5831\u3092\u5165\u529b\u3059\u308b\u7279\u5b9a\u306e\u30d1\u30b9\u3067\u904b\u7528\u3059\u308b\u3053\u3068\u304c\u591a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u6700\u8fd1\u306f\u30d5\u30ebhttps\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3053\u306e\u30d6\u30ed\u30b0\u3067\u3082\u5c0e\u5165\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 SSL\u3092\u5c0e\u5165\u3059\u308b\u3068\u304d\u306b\u554f &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1142,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"views":1705,"_links":{"self":[{"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1113"}],"collection":[{"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1113"}],"version-history":[{"count":4,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1113\/revisions"}],"predecessor-version":[{"id":1117,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1113\/revisions\/1117"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/1142"}],"wp:attachment":[{"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}