{"id":324,"date":"2016-04-03T12:45:15","date_gmt":"2016-04-03T03:45:15","guid":{"rendered":"https:\/\/test.ji0vwl.net\/?p=324"},"modified":"2019-01-12T21:11:52","modified_gmt":"2019-01-12T12:11:52","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-5","status":"publish","type":"post","link":"https:\/\/ji0vwl.net\/index.php\/2016\/04\/03\/324\/","title":{"rendered":"SSL\u8a3c\u660e\u66f8\u3092 Let\u2019s Encrypt \u306b\u4e57\u308a\u63db\u3048\u3088\u3046 (5)"},"content":{"rendered":"<p><a href=\"https:\/\/test.ji0vwl.net\/index.php\/2016\/04\/03\/306\/\">\u305d\u306e(4)<\/a>\u3067\u5b9f\u884c\u3057\u305f\u3001webroot\u30e2\u30fc\u30c9\u3092\u4e00\u304b\u6708\u304a\u304d\u306bcron\u3067\u81ea\u52d5\u5b9f\u884c\u3055\u305b\u307e\u3057\u3087\u3046\u3002\u521d\u56de\u306f\u3061\u3083\u3093\u3068\u52d5\u304f\u304b\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u6570\u5206\u5f8c\u306b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>root\u6a29\u9650\u306b\u5909\u66f4\u3057\u307e\u3059(root\u30e6\u30fc\u30b6\u306ecrontab\u3068\u3057\u3066\u52d5\u304b\u3059\u305f\u3081)<\/p>\n<blockquote><p>$ sudo -i<\/p><\/blockquote>\n<p>crontab\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002\u521d\u3081\u3066\u52d5\u304b\u3059\u3068\u304d\u306f\u4f55\u3082\u66f8\u304b\u308c\u3066\u3044\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<blockquote><p># crontab -e<\/p><\/blockquote>\n<p>\u300ci\u300d\u3092\u62bc\u3057\u3066\u3001\u7de8\u96c6\u30e2\u30fc\u30c9\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>crontab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u306b\u7de8\u96c6\u3057\u307e\u3059\u3002\u3068\u308a\u3042\u3048\u305a\u3001\u6bce\u664220\u5206(\u4f8b\u3048\u3070\u4eca\u304c11:18\u5206\u3060\u3068\u3057\u305f\u5834\u5408)\u306b\u8a2d\u5b9a\u3057\u3066\u52d5\u4f5c\u3059\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002MAILTO\u306b\u81ea\u5206\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3068\u3001\u7d50\u679c\u304c\u30e1\u30fc\u30eb\u3067\u9001\u3089\u308c\u3066\u304f\u308b\u306e\u3067\u4fbf\u5229\u3067\u3059\u3002\u592a\u5b57\u306f\u81ea\u5206\u306e\u74b0\u5883\u306b\u3088\u3063\u3066\u9055\u3046\u306e\u3067\u9069\u5b9c\u66f8\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<blockquote><p>SHELL=\/bin\/bash<br \/>\nPATH=\/sbin:\/bin:\/usr\/sbin:\/usr\/bin<br \/>\nMAILTO=&#8221;<strong>xxxxxx@ji0vwl.com<\/strong>&#8221;<br \/>\nHOME=\/<\/p>\n<p># run-parts<br \/>\n<strong>20<\/strong> * * * * <strong>\/root\/letsencrypt\/<\/strong>letsencrypt-auto certonly &#8211;renew-by-default &#8211;webroot -w <strong>\/var\/www\/html<\/strong> -d <strong>ji0vwl.net<\/strong> -d www.<strong>ji0vwl.net<\/strong><\/p><\/blockquote>\n<p>Esc\u30ad\u30fc\u3092\u62bc\u3057\u305f\u5f8c\u300c:WQ\u300d\u3092\u5165\u529b\u3057\u3066vi\u30a8\u30c7\u30a3\u30bf\u3092\u7d42\u4e86\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6642\u9593\u304c\u6765\u3066cron\u304c\u52d5\u4f5c\u3059\u308b\u3068\u3001\u30e1\u30fc\u30eb\u304c\u9001\u3089\u308c\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\uff5e\u524d\u7565\uff5e<\/p>\n<p>IMPORTANT NOTES:<br \/>\n&#8211; Congratulations! Your certificate and chain have been saved at<br \/>\n\/etc\/letsencrypt\/live\/ji0vwl.net\/fullchain.pem. Your cert will<br \/>\nexpire on 2016-07-02. To obtain a new version of the certificate in<br \/>\nthe future, simply run Let&#8217;s Encrypt again.<\/p>\n<p>\uff5e\u5f8c\u7565\uff5e<\/p>\n<p>&nbsp;<\/p>\n<p>Congratulations! \u304c\u51fa\u3066\u3044\u305f\u3089\u81ea\u52d5\u66f4\u65b0\u6210\u529f\u3067\u3059\uff01<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u6587\u9762\u304c\u306a\u3044\u5834\u5408\u306f\u3001\u30b3\u30de\u30f3\u30c9\u304b\u30d1\u30b9\u306a\u3069\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u306e\u3067\u78ba\u8a8d\u3057\u3066\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3046\u307e\u304f\u52d5\u4f5c\u3057\u305f\u5834\u5408\u306f\u30011\u304b\u6708\u306b1\u56de\u81ea\u52d5\u66f4\u65b0\u3059\u308b\u3088\u3046\u306b\u4fee\u6b63\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<blockquote><p># crontab -e<\/p><\/blockquote>\n<p>\u300ci\u300d\u3092\u62bc\u3057\u3066\u3001\u7de8\u96c6\u30e2\u30fc\u30c9\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u6642\u9593\u3092 1 4 1 * * (\u6bce\u67081\u65e5\u3001\u5348\u524d4\u664201\u5206)\u306b\u4fee\u6b63\u3057\u307e\u3059\u3002\u6642\u9593\u306f\u9069\u5f53\u3067\u826f\u3044\u3067\u3059\u3002<\/p>\n<blockquote><p>SHELL=\/bin\/bash<br \/>\nPATH=\/sbin:\/bin:\/usr\/sbin:\/usr\/bin<br \/>\nMAILTO=&#8221;xxxxxx@ji0vwl.com&#8221;<br \/>\nHOME=\/<\/p>\n<p># run-parts<br \/>\n<strong>1 4 1<\/strong> * * \/root\/letsencrypt\/letsencrypt-auto certonly &#8211;renew-by-default &#8211;webroot -w \/var\/www\/html -d ji0vwl.net -d www.ji0vwl.net<\/p><\/blockquote>\n<p>Esc\u30ad\u30fc\u3092\u62bc\u3057\u305f\u5f8c\u300c:WQ\u300d\u3092\u5165\u529b\u3057\u3066vi\u30a8\u30c7\u30a3\u30bf\u3092\u7d42\u4e86\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3042\u3068\u306f\u3001\u6765\u6708\u306e1\u65e5\u306b\u5b9f\u884c\u7d50\u679c\u306e\u30e1\u30fc\u30eb\u304c\u6765\u308b\u306e\u3092\u5f85\u3064\u3060\u3051\u3067\u3059\u3002Let&#8217;s Encrypt\u3078\u306e\u4e57\u308a\u63db\u3048\u7de8\u306f\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p><strong>\u8ffd\u8a18<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u307e\u3055\u304b\u3068\u306f\u601d\u3044\u307e\u3057\u305f\u304c\u3001httpd\u3092\u518d\u8d77\u52d5\u3057\u306a\u3044\u3068\u6700\u65b0\u306e\u8a3c\u660e\u66f8\u304c\u53cd\u6620\u3055\u308c\u306a\u3044\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002\u3002\u3002<\/p>\n<p>\u6570\u79d2\u9593Web\u30b5\u30fc\u30d0\u30fc\u304c\u6b62\u307e\u308a\u307e\u3059\u304c\u3001\u8a3c\u660e\u66f8\u66f4\u65b05\u5206\u5f8c\u306e\u3001\u6bce\u67081\u65e5\u3001\u5348\u524d4:06\u306bWeb\u30b5\u30fc\u30d0\u306e\u518d\u8d77\u52d5\u51e6\u7406\u3092\u5165\u308c\u3066\u307f\u307e\u3057\u305f\u3002\u4eca\u5ea6\u3053\u305d\u5927\u4e08\u592b\u304b\u306a\u3002<\/p>\n<blockquote><p># crontab -e<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<blockquote><p>SHELL=\/bin\/bash<br \/>\nPATH=\/sbin:\/bin:\/usr\/sbin:\/usr\/bin<br \/>\nMAILTO=&#8221;xxxxxx@ji0vwl.com&#8221;<br \/>\nHOME=\/<\/p>\n<p># run-parts<br \/>\n1 4 1 * * \/root\/letsencrypt\/letsencrypt-auto certonly &#8211;renew-by-default &#8211;webroot -w \/var\/www\/html -d ji0vwl.net -d www.ji0vwl.net<\/p>\n<p><strong>6 4 1 * * service httpd restart<\/strong><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u305d\u306e(4)\u3067\u5b9f\u884c\u3057\u305f\u3001webroot\u30e2\u30fc\u30c9\u3092\u4e00\u304b\u6708\u304a\u304d\u306bcron\u3067\u81ea\u52d5\u5b9f\u884c\u3055\u305b\u307e\u3057\u3087\u3046\u3002\u521d\u56de\u306f\u3061\u3083\u3093\u3068\u52d5\u304f\u304b\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u6570\u5206\u5f8c\u306b\u3057\u3066\u307f\u307e\u3059\u3002 root\u6a29\u9650\u306b\u5909\u66f4\u3057\u307e\u3059(root\u30e6\u30fc\u30b6\u306ecrontab\u3068\u3057\u3066\u52d5\u304b\u3059\u305f\u3081)  &hellip; <a href=\"https:\/\/ji0vwl.net\/index.php\/2016\/04\/03\/324\/\" 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 (5)<\/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-324","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\/324","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=324"}],"version-history":[{"count":0,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/posts\/324\/revisions"}],"wp:attachment":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/media?parent=324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/categories?post=324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/tags?post=324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}