{"id":645,"date":"2016-12-04T18:53:10","date_gmt":"2016-12-04T09:53:10","guid":{"rendered":"https:\/\/test.ji0vwl.net\/?p=645"},"modified":"2016-12-04T19:10:51","modified_gmt":"2016-12-04T10:10:51","slug":"ssl%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%82%92-lets-encrypt-%e3%81%ab%e4%b9%97%e3%82%8a%e6%8f%9b%e3%81%88%e3%82%88%e3%81%86-10","status":"publish","type":"post","link":"https:\/\/ji0vwl.net\/index.php\/2016\/12\/04\/645\/","title":{"rendered":"SSL\u8a3c\u660e\u66f8\u3092 Let\u2019s Encrypt \u306b\u4e57\u308a\u63db\u3048\u3088\u3046 (10)"},"content":{"rendered":"<p>\u6570\u30f6\u6708\u524d\u306ecertbot\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3067\u3001\u306a\u305c\u304bCRON\u3092\u7528\u3044\u305f\u81ea\u52d5\u66f4\u65b0\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u89e3\u6790\u3059\u308b\u4f59\u88d5\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u3068\u308a\u3042\u3048\u305a\u624b\u52d5\u5b9f\u884c\u3057\u3066\u3057\u306e\u3044\u3067\u3044\u307e\u3057\u305f\u304c\u3001\u672c\u65e5\u3088\u3046\u3084\u304f\u52d5\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u52d5\u3044\u305fcrontab\u306e\u5185\u5bb9\u3092\u516c\u958b\u3057\u307e\u3059\u3002\u52d5\u304b\u306a\u304b\u3063\u305f\u7406\u7531\u306f\u3088\u304f\u308f\u304b\u308a\u307e\u305b\u3093\u30fb\u30fb\u30fb<\/p>\n<p>\u30fb\u5ff5\u306e\u305f\u3081\u3001\u6700\u65b0\u306ecertbot\u3092\u5165\u308c\u76f4\u3057\u305f\u3002\u9752\u3044\u753b\u9762\u306f\u9069\u5f53\u306b\u9032\u3081\u308b\u3002<\/p>\n<pre>\r\n$ sudo -i\r\n# yum install epel-release\r\n# mv certbot certbot_old\r\n# git clone https:\/\/github.com\/certbot\/certbot\r\n# cd certbot\r\n# .\/certbot-auto\r\n<\/pre>\n<p>\u30fb\u66f4\u65b0\u3057\u3066\u307f\u308b\u3002\u4e00\u5fdc\u624b\u52d5\u3067\u306f\u52d5\u3044\u305f\u3002<\/p>\n<pre>\r\n# .\/certbot-auto renew --non-interactive\r\n<\/pre>\n<p>\u30fbrenew \u3060\u3051\u3067\u66f4\u65b0\u3067\u304d\u305f\u3063\u307d\u3044\uff1f\uff08webroot\u3068\u304b\u6307\u5b9a\u3057\u3066\u3044\u306a\u3044\u3051\u3069\uff09<\/p>\n<p>\u30fbnon-interactive \u3092\u3064\u3051\u305f\u306e\u304c\u52b9\u3044\u305f\u306e\u304b\u3001\u5358\u306b\u5165\u308c\u76f4\u3057\u305f\u306e\u304c\u52b9\u3044\u305f\u306e\u304b\u30fb\u30fb\u30fb\u7406\u7531\u306f\u5206\u304b\u3089\u305a\u3002\u3068\u308a\u3042\u3048\u305a\u52d5\u3044\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre>\r\n# crontab -e\r\n<\/pre>\n<pre>SHELL=\/bin\/bash\r\nPATH=\/sbin:\/bin:\/usr\/sbin:\/usr\/bin\r\nMAILTO=\"xxxxxx@ji0vwl.com\"\r\nHOME=\/\r\n\r\n1 4 1 * * scl enable python27 \"\/root\/certbot\/certbot-auto renew --non-interactive\"\r\n6 4 1 * * service httpd restart\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u4eca\u56de\u306e\u81ea\u52d5\u66f4\u65b0\u306f2,3\u30f6\u6708\u306f\u307e\u308a\u307e\u3057\u305f\u306e\u3067\u7d50\u69cb\u6839\u6df1\u304b\u3063\u305f\u3067\u3059\u3002\u5b8c\u5168\u306b\u539f\u56e0\u306f\u7279\u5b9a\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u4ed6\u306b\u304a\u56f0\u308a\u306e\u65b9\u306e\u53c2\u8003\u306b\u306a\u308c\u3070\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6570\u30f6\u6708\u524d\u306ecertbot\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3067\u3001\u306a\u305c\u304bCRON\u3092\u7528\u3044\u305f\u81ea\u52d5\u66f4\u65b0\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u89e3\u6790\u3059\u308b\u4f59\u88d5\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u3068\u308a\u3042\u3048\u305a\u624b\u52d5\u5b9f\u884c\u3057\u3066\u3057\u306e\u3044\u3067\u3044\u307e\u3057\u305f\u304c\u3001\u672c\u65e5\u3088\u3046\u3084\u304f\u52d5\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u52d5\u3044\u305fcrontab\u306e &hellip; <a href=\"https:\/\/ji0vwl.net\/index.php\/2016\/12\/04\/645\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">SSL\u8a3c\u660e\u66f8\u3092 Let\u2019s Encrypt \u306b\u4e57\u308a\u63db\u3048\u3088\u3046 (10)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-645","post","type-post","status-publish","format-standard","hentry","category-server"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/posts\/645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/comments?post=645"}],"version-history":[{"count":0,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/posts\/645\/revisions"}],"wp:attachment":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/media?parent=645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/categories?post=645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/tags?post=645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}