{"id":3985,"date":"2016-10-10T04:38:48","date_gmt":"2016-10-09T19:38:48","guid":{"rendered":"https:\/\/bono-ism.com\/blog\/?p=3985"},"modified":"2016-10-10T04:38:48","modified_gmt":"2016-10-09T19:38:48","slug":"lets-encrypt-%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%ae%e8%87%aa%e5%8b%95%e6%9b%b4%e6%96%b0%e3%81%8c%e5%87%ba%e6%9d%a5%e3%81%aa%e3%81%84%e3%83%bb%e3%83%bb%e3%83%bb","status":"publish","type":"post","link":"https:\/\/bono-ism.com\/blog\/archives\/3985","title":{"rendered":"Let&#8217;s Encrypt \u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8\u306e\u81ea\u52d5\u66f4\u65b0\u304c\u51fa\u6765\u306a\u3044\u30fb\u30fb\u30fb"},"content":{"rendered":"<div id=\"advads-528665010\" class=\"advads- advads-entity-placement\" style=\"margin-bottom: 30px;clear: both;\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4535387451297385\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-client=\"ca-pub-4535387451297385\" \ndata-ad-slot=\"1658778714\" \ndata-ad-layout=\"in-article\"\ndata-ad-format=\"fluid\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div><br style=\"clear: both; display: block; float: none;\"\/><p>\n\u4e45\u3005\u306bwordpress\u306e\u8a71\u3002\u3053\u306e\u30b5\u30a4\u30c8\u3082SSL\u5316\u3057\u3066\u3057\u3070\u3089\u304f\u7d4c\u3064\u3002SSL\u5316\u3057\u3066\u5f97\u3057\u305f\u3053\u3068\u306f\u5225\u306b\u306a\u306b\u3082\u306a\u3044\u304c(\u7b11)\u3001SSL\u306e\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u3060\u3051\u306f\u3084\u3063\u3066\u304a\u304b\u306a\u3044\u3068\u3001\u4e0d\u5be9\u306a\u30b5\u30a4\u30c8\u3068\u8a8d\u5b9a\u3055\u308c\u3066\u3057\u307e\u3046\u3002\u305d\u3053\u3067\u8a3c\u660e\u66f8\u306e\u81ea\u52d5\u66f4\u65b0\u30fb\u30fb\u30fb\u3068\u601d\u3063\u305f\u304c\u3001\u3061\u3087\u3063\u3068\u624b\u9593\u53d6\u3063\u305f\u306e\u3067\u3001\u5099\u5fd8\u9332\u3002<\/p>\n<p>\u8a3c\u660e\u66f8\u306f\u7121\u6599\u306e<a href=\"https:\/\/letsencrypt.jp\/\">Let&#8217;s Encrypt<\/a>\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u8a3c\u660e\u66f8\u306e\u671f\u9650\u304c90\u65e5\u3068\u77ed\u3044\u306e\u304c\u305f\u307e\u306b\u50b7\u3002\u305f\u3060\u30b5\u30fc\u30d0\u30fc\u306broot\u6a29\u9650\u3067\u5165\u308c\u308b\u74b0\u5883\u3067\u3042\u308c\u3070\u3001\u8a3c\u660e\u66f8\u306e\u671f\u9650\u307e\u306730\u65e5\u3092\u5207\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u81ea\u52d5\u7684\u306b\u3082\u304690\u65e5\u671f\u9650\u3092\u66f4\u65b0\u3057\u3066\u304f\u308c\u308b\u4fbf\u5229\u306a\u30b3\u30de\u30f3\u30c9\u3092\u7528\u610f\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u3002\u306a\u306e\u3067\u6c17\u4ed8\u3044\u305f\u3068\u304d\u306b\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u5165\u3063\u3066\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u8fbc\u3081\u3070\u3044\u3044\u306e\u3060\u304c\u3001Linux\u306b\u306fcron\u3068\u3044\u3046\u5b9a\u671f\u7684\u306b\u30b8\u30e7\u30d6\u3092\u5b9f\u884c\u3057\u3066\u304f\u308c\u308b\u30c7\u30fc\u30e2\u30f3\u30d7\u30ed\u30bb\u30b9\u304c\u3042\u308b\u306e\u3067\u3001\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u3082cron\u306b\u4efb\u305b\u3088\u3046\u3001\u3068\u3044\u3046\u306e\u304c\u4eca\u56de\u306e\u8a66\u307f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u4f8b\u3048\u3070\u3055\u304f\u3089\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u3068\u304b\u3060\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u306broot\u6a29\u9650\u3067\u30a2\u30af\u30bb\u30b9\u51fa\u6765\u306a\u3044\u306e\u3067\u3001cron\u3082\u8a2d\u5b9a\u51fa\u6765\u306a\u3044\u30fb\u30fb\u30fb\u3084\u308a\u305f\u3051\u308c\u3070\u3001VPS(\u30d0\u30fc\u30c1\u30e3\u30eb\u30fb\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30fb\u30b5\u30fc\u30d0\u30fc)\u3092\u501f\u308a\u308b\u3057\u304b\u306a\u3044\u3002<br \/>\n<!--more--><\/p>\n<p>\u3055\u3066\u3001\u79c1\u306e\u5834\u5408\u671f\u9650\u304c\u4eca\u6708\u672b\u306b\u8feb\u3063\u3066\u304d\u305f\u306e\u3067\u3001\u81ea\u52d5\u66f4\u65b0\u304c\u53ef\u80fd\u306a\u306f\u305a\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u307e\u305a\u306f\u624b\u52d5\u3067\u30c6\u30b9\u30c8\u3057\u3066\u307f\u305f\u3002<br \/>\nLet&#8217;s Encrypt\u306e\u5834\u5408\u3001\u3000<code>\/usr\/local\/certbot\/certbot-auto renew<\/code>\u3000\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3067\u81ea\u52d5\u66f4\u65b0\u3057\u3066\u304f\u308c\u308b\u306e\u3060\u304c\u3001\u30c6\u30b9\u30c8\u306e\u5834\u5408\u306f\u3053\u3053\u306b\u66f4\u306b\u3000<code>--dry-run<\/code>\u3000\u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u308b\u3068\u5b9f\u969b\u306b\u306f\u66f4\u65b0\u4f5c\u696d\u306f\u305b\u305a\u3001\u52d5\u4f5c\u78ba\u8a8d\u3060\u3051\u3057\u3066\u304f\u308c\u308b\u3002\u3068\u8a00\u3046\u308f\u3051\u3067\u65e9\u901f\u30c6\u30b9\u30c8\u5b9f\u884c\u3002<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\/usr\/local\/certbot\/certbot-auto renew --dry-run<\/pre>\n<p>\u3068\u3084\u308b\u3068\u30fb\u30fb\u30fb\u30fb<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">-------------------------------------------------------------------------------\r\nPort 80 is already in use by another process. This will prevent us from binding\r\nto that port. Please stop the process that is populating the port in question\r\nand try again.  For automated renewal, you may want to use a script that stops\r\nand starts your webserver. You can find an example at\r\nhttps:\/\/certbot.eff.org\/docs\/using.html#renewal . Alternatively you can use the\r\nwebroot plugin to renew without needing to stop and start your webserver.\r\n-------------------------------------------------------------------------------<\/pre>\n<p>\u3053\u306e\u69d8\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u3001\u66f4\u65b0\u51fa\u6765\u305a\u30fb\u30fb\u30fb\u7d50\u5c40\u306e\u3068\u3053\u308d\u3001\u4e00\u5ea6Apache\u3092\u6b62\u3081\u3066\u304b\u3089\u3067\u306a\u3044\u3068\u66f4\u65b0\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3088\u3046\u3067\u3001<\/p>\n<p><code>\/etc\/init.d\/httpd stop<\/code><\/p>\n<p>\u3068\u3057\u3066Apache\u3092\u6b62\u3081\u305f\u306e\u3061\u3001\u5148\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u308c\u308b\u3068\u3046\u307e\u304f\u3044\u3063\u305f\u3002<\/p>\n<p>\u305d\u308c\u3092\u3075\u307e\u3048\u3066\u3001<br \/>\n<code>\/etc\/init.d\/httpd stop\u3000&& \/usr\/local\/certbot\/certbot-auto renew --dry-run && \/etc\/init.d\/httpd start<\/code><\/p>\n<p>\u3068\u524d\u5f8c\u306bApache\u306e\u505c\u6b62\u3001\u8d77\u52d5\u3092\u631f\u3093\u3067\u547d\u4ee4\u3057\u3066\u307f\u305f\u304c\u3001\u3069\u3046\u3082\u3046\u307e\u304f\u884c\u304b\u305a\u30fb\u30fb\u30fb\u8a66\u3057\u305f\u7d50\u679c\u3001Apache\u306e\u505c\u6b62\u304b\u3089\u3001\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u306e\u547d\u4ee4\u307e\u3067\u306f\u591a\u5c11\u6642\u9593\u304c\u7a7a\u3044\u305f\u65b9\u304c\u3088\u3044\u69d8\u3060\u3063\u305f\u3002<\/p>\n<p>\u3068\u8a00\u3046\u8a33\u3067\u3001\u51fa\u6765\u4e0a\u304c\u3063\u305fcron\u304c\u3053\u3061\u3089\uff01 (\u30b3\u30fc\u30c9\u4e0a\u3092\u30c9\u30e9\u30c3\u30b0\u3059\u308c\u3070\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u307e\u3059)<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">24 3 10 * * \/etc\/init.d\/httpd stop\r\n25 3 10 * * \/usr\/local\/certbot\/certbot-auto renew &amp;&amp; \/etc\/init.d\/httpd start<\/pre>\n<p>cron\u306f\u5148\u982d\u304b\u3089\u3001\u5206\u3001\u6642\u9593\u3001\u65e5\u3001\u6708\u3001\u66dc\u65e5\u3001\u305d\u3057\u3066\u305d\u306e\u5f8c\u30b3\u30de\u30f3\u30c9\u3068\u3044\u3046\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u306e\u3060\u304c\u3001\u4e0a\u8a18\u3067\u306f\u3001\u6bce\u670810\u65e53\u664224\u5206\u306bApache\u3092\u505c\u6b62\u3057\u3001\u305d\u306e1\u5206\u5f8c\u306e3\u664225\u5206\u306b\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u3068Apache\u306e\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u3002\u3053\u308c\u3060\u3068\u6bce\u6708\u66f4\u65b0\u3059\u308b\u611f\u3058\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u304c\u3001\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u306f\u5b9f\u969b\u306b\u306f\u671f\u9650\u306e30\u65e5\u524d\u4ee5\u964d\u306b\u306a\u3089\u306a\u3044\u3068\u5b9f\u884c\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u3053\u308c\u3067OK\u30021\u5206Apache\u304c\u6b62\u307e\u308b\u306e\u3067\u3001\u305d\u306e\u9593\u30b5\u30a4\u30c8\u304c\u898b\u3089\u308c\u306a\u3044\u304c\u3001\u305d\u306e\u8fba\u306f\u904e\u758e\u30b5\u30a4\u30c8\u306a\u306e\u3067\u5168\u304f\u554f\u984c\u306f\u306a\u3044\u30fb\u30fb\u30fb\u3002<\/p>\n<p>\u307e\u305f\u307e\u305f\u5168\u304f\u9700\u8981\u306e\u306a\u3044\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3057\u307e\u3063\u305f\u30fb\u30fb\u30fb\u3002\u307e\u3042\u3001\u5168\u304f\u30a2\u30af\u30bb\u30b9\u6570\u306e\u306a\u3044\u30d6\u30ed\u30b0\u3092\u904b\u55b6\u3057\u306a\u304c\u3089VPS\u3067\u5951\u7d04\u3057\u3066\u3044\u308b\u79c1\u306e\u69d8\u306a\u4eba\u306a\u3093\u3066\u3054\u304f\u308f\u305a\u304b\u3060\u308d\u3046\u3057\u3001\u3053\u306e\u624b\u306e\u8a18\u4e8b\u306b\u30a2\u30af\u30bb\u30b9\u304c\u306a\u3044\u306e\u306f\u3057\u3087\u3046\u304c\u306a\u3044\u3053\u3068\u3067\u306f\u3042\u308b\u3002\u81ea\u5df1\u6e80\u8db3\u3002\u4ee5\u4e0a\u3002<\/p>\n<div id=\"advads-716076912\" class=\"advads- advads-entity-placement\" style=\"margin-top: 10px;margin-bottom: 25px;\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4535387451297385\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-4535387451297385\" \ndata-ad-slot=\"4656971981\" \ndata-ad-format=\"auto\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\u4e45\u3005\u306bwordpress\u306e\u8a71\u3002\u3053\u306e\u30b5\u30a4\u30c8\u3082SSL\u5316\u3057\u3066\u3057\u3070\u3089\u304f\u7d4c\u3064\u3002SSL\u5316\u3057\u3066 &hellip; <a href=\"https:\/\/bono-ism.com\/blog\/archives\/3985\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3,19],"tags":[114],"class_list":["post-3985","post","type-post","status-publish","format-standard","hentry","category-wordpress","category-diary","tag-wordpress"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pir8D-12h","jetpack-related-posts":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/bono-ism.com\/blog\/wp-json\/wp\/v2\/posts\/3985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bono-ism.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bono-ism.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bono-ism.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bono-ism.com\/blog\/wp-json\/wp\/v2\/comments?post=3985"}],"version-history":[{"count":11,"href":"https:\/\/bono-ism.com\/blog\/wp-json\/wp\/v2\/posts\/3985\/revisions"}],"predecessor-version":[{"id":3996,"href":"https:\/\/bono-ism.com\/blog\/wp-json\/wp\/v2\/posts\/3985\/revisions\/3996"}],"wp:attachment":[{"href":"https:\/\/bono-ism.com\/blog\/wp-json\/wp\/v2\/media?parent=3985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bono-ism.com\/blog\/wp-json\/wp\/v2\/categories?post=3985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bono-ism.com\/blog\/wp-json\/wp\/v2\/tags?post=3985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}