{"id":208,"date":"2018-06-24T14:21:00","date_gmt":"2018-06-24T05:21:00","guid":{"rendered":"https:\/\/blog.kifuyu.net\/?p=208"},"modified":"2018-06-24T22:18:21","modified_gmt":"2018-06-24T13:18:21","slug":"%e3%82%b5%e3%83%bc%e3%83%90%e8%a8%bc%e6%98%8e%e8%87%aa%e5%8b%95%e6%9b%b4%e6%96%b0%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e4%bf%ae%e6%ad%a3","status":"publish","type":"post","link":"https:\/\/blog.kifuyu.net\/?p=208","title":{"rendered":"\u30b5\u30fc\u30d0\u8a3c\u660e\u81ea\u52d5\u66f4\u65b0\u306e\u30a8\u30e9\u30fc\u4fee\u6b63\u307b\u304b"},"content":{"rendered":"<p>\u30fb\u30a8\u30e9\u30fc\u4fee\u6b63<br \/>\n\u30b5\u30fc\u30d0\u8a3c\u660e\u306e\u66f4\u65b0\u6642\u306b\u30a8\u30e9\u30fc\u30e1\u30fc\u30eb\u304c\u5c4a\u304f\u3002<br \/>\n\u30a8\u30e9\u30fc\u306f\u4ee5\u4e0b\u306e\u901a\u308a<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nAttempting to renew cert (email.domain) from \/etc\/letsencrypt\/renewal\/email.domain.conf produced an unexpected error:\r\nProblem binding to port 443: Could not bind to IPv4 or IPv6.. Skipping.\r\nAll renewal attempts failed. The following certs could not be renewed:\r\n  \/etc\/letsencrypt\/live\/email.domain\/fullchain.pem (failure)\r\n1 renew failure(s), 0 parse failure(s)\r\n\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\r\n<\/pre>\n<p>letsencrypt\u5c0e\u5165\u6642\u306e\u8a2d\u5b9a\u304c\u554f\u984c\u3060\u3063\u305f\u3002certbot-auto renewal\u5b9f\u884c\u6642\u306bnginx\u304c443\u30dd\u30fc\u30c8\u3092\u4f7f\u3063\u3066\u3044\u308b\u305f\u3081\u30a8\u30e9\u30fc\u304c\u751f\u3058\u3066\u3044\u305f\u3002<br \/>\n\u8a8d\u8a3c\u65b9\u5f0f\u3092standalone\u304b\u3089webroot\u3078\u8a2d\u5b9a\u5909\u66f4\u3002\/etc\/letsencrypt\/renewal\/email.domain.conf\u306b\u4ee5\u4e0b\u3092\u8a18\u8ff0<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n#authenticator = standalone\r\nauthenticator = webroot\r\n&#x5B;&#x5B;webroot_map]]\r\nmail.domain = \/usr\/share\/nginx\/html\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u30fb\u672c\u30b5\u30a4\u30c8\u306eSSL\u5316<br \/>\n\u8af8\u4e8b\u60c5\u3067\u672c\u30b5\u30a4\u30c8\u306f SSL\u5316\u305b\u305a\u306b\u3044\u305f\u3002wordpress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u4fee\u6b63\u3067\u554f\u984c\u89e3\u6c7a\u3057\u305f\u305f\u3081SSL\u5316\u3057\u305f\u3002<br \/>\n\u8abf\u3079\u308c\u3070\u308f\u304b\u308b\u304c\u8a3c\u660e\u66f8\u767a\u884c\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3067\u304d\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\/usr\/local\/certbot\/certbot-auto certonly --webroot -w \/usr\/share\/nginx\/html -d domain.name\r\n<\/pre>\n<p>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u8a2d\u5b9a\u306a\u3069\u306ftsuchikazu\u3055\u3093\u3068\u3044\u3046\u65b9\u306e\u30d6\u30ed\u30b0\u3092\u53c2\u7167<\/p>\n<blockquote>\n<h3>\u8a3c\u660e\u66f8\u3092 nginx \u3078\u8a2d\u5b9a<\/h3>\n<p>nginx\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066SSL\u3092\u6709\u52b9\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"hljs nginx\"><span class=\"hljs-comment\"># http\u306fhttps\u3078\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/span>\r\n<span class=\"hljs-section\">server<\/span> {\r\n  <span class=\"hljs-attribute\">listen<\/span> <span class=\"hljs-number\">80<\/span>;\r\n  <span class=\"hljs-attribute\">server_name<\/span> tsuchikazu.net;\r\n  <span class=\"hljs-attribute\">rewrite<\/span><span class=\"hljs-regexp\"> ^<\/span> https:\/\/<span class=\"hljs-variable\">$server_name<\/span><span class=\"hljs-variable\">$request_uri<\/span>? <span class=\"hljs-literal\">permanent<\/span>;\r\n}\r\n<span class=\"hljs-section\">server<\/span> {\r\n    <span class=\"hljs-attribute\">listen<\/span> <span class=\"hljs-number\">443<\/span> ssl;\r\n\r\n    <span class=\"hljs-attribute\">server_name<\/span> tsuchikazu.net;\r\n\r\n    <span class=\"hljs-attribute\">ssl_certificate<\/span> \/etc\/letsencrypt\/live\/tsuchikazu.net\/fullchain.pem;\r\n    <span class=\"hljs-attribute\">ssl_certificate_key<\/span> \/etc\/letsencrypt\/live\/tsuchikazu.net\/privkey.pem;\r\n    <span class=\"hljs-attribute\">ssl_session_timeout<\/span> <span class=\"hljs-number\">1d<\/span>;\r\n    <span class=\"hljs-attribute\">ssl_session_cache<\/span> shared:SSL:<span class=\"hljs-number\">50m<\/span>;\r\n    <span class=\"hljs-attribute\">ssl_session_tickets<\/span> <span class=\"hljs-literal\">on<\/span>;\r\n\u2026\u2026<\/code><\/pre>\n<p>\u53c2\u7167 <a href=\"https:\/\/tsuchikazu.net\/lets-encrypt-nginx\/\">Let&#8217;s Encrypt\u306e\u8a3c\u660e\u66f8\u3092nginx\u306b\u8a2d\u5b9a\u3057\u3066https\u5316\u3057\u305f | tsuchikazu blog<\/a><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u30fb\u30a8\u30e9\u30fc\u4fee\u6b63 \u30b5\u30fc\u30d0\u8a3c\u660e\u306e\u66f4\u65b0\u6642\u306b\u30a8\u30e9\u30fc\u30e1\u30fc\u30eb\u304c\u5c4a\u304f\u3002 \u30a8\u30e9\u30fc\u306f\u4ee5\u4e0b\u306e\u901a\u308a Attempting to renew cert (email.domain) from \/etc\/letsencrypt\/renewal\/em [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[14,3],"tags":[],"class_list":["post-208","post","type-post","status-publish","format-standard","hentry","category-14","category-3","ja"],"_links":{"self":[{"href":"https:\/\/blog.kifuyu.net\/index.php?rest_route=\/wp\/v2\/posts\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.kifuyu.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kifuyu.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kifuyu.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kifuyu.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=208"}],"version-history":[{"count":0,"href":"https:\/\/blog.kifuyu.net\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.kifuyu.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kifuyu.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kifuyu.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}