{"id":51,"date":"2020-04-14T04:08:56","date_gmt":"2020-04-14T04:08:56","guid":{"rendered":"http:\/\/snowflake.forecast.mydns.jp\/?p=51"},"modified":"2020-04-14T04:08:56","modified_gmt":"2020-04-14T04:08:56","slug":"https%e3%81%ae%e5%af%be%e5%bf%9c","status":"publish","type":"post","link":"https:\/\/tips.yomou.online\/?p=51","title":{"rendered":"HTTPS\u306e\u5bfe\u5fdc"},"content":{"rendered":"\n<p>\u4eca\u66f4\u6295\u7a3f\u3057\u307e\u3059\u304c1\u670813\u65e5\u306e\u3053\u3068\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u3061\u3083\u3093\u3068\u66f8\u304d\u304d\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u53c2\u8003\u7a0b\u5ea6\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002Raspberry pi 2 model B\u306b\u518d\u8a2d\u5b9a\u3057\u305f\u969b\u306b\u3001\uff08\u304a\u305d\u3089\u304fconf\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u65b9\u304c\u9069\u5207\u3067\u306a\u304f\uff09\u3046\u307e\u304f\u3044\u304b\u305a\u8a66\u884c\u932f\u8aa4\u3057\u305f\u3082\u306e\u306e\u539f\u56e0\u306e\u8ffd\u53ca\u304c\u4ed5\u5207\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3088\u305d\u69d8\u306e\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306bSSL\u8a3c\u660e\u66f8\u3092\u5c0e\u5165\u3057\u3066\u3001\u304d\u3061\u3093\u3068HTTPS\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u3088\u3046\u8a66\u307f\u305f\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/www.server-world.info\/query?os=Debian_10&amp;p=ssl&amp;f=2\">https:\/\/www.server-world.info\/query?os=Debian_10&amp;p=ssl&amp;f=2<\/a><\/p>\n\n\n\n<p>\u3042\u3089\u304b\u305f\u53c2\u7167\u5148\u306e\u30da\u30fc\u30b8\u306b\u66f8\u3044\u3066\u3042\u308b\u901a\u308a\u306e\u4f5c\u696d\u3060\u3051\u3069\u3001\u8aad\u307f\u65b9\u304c\u308f\u304b\u308a\u306b\u304f\u304b\u3063\u305f\u3002\u30d4\u30f3\u30af\u304c\u30b5\u30a4\u30c8\u3068\u3057\u3066\u306e\u8aac\u660e\u3001\u7dd1\u304c\u5165\u529b\u5185\u5bb9\u3001\u767d\u304c\u8868\u793a\u5185\u5bb9\u3060\u3063\u305f<\/p>\n\n\n\n<p>\u3053\u306e\u30b5\u30a4\u30c8\u3067\u3001apt\u3067\u5165\u308c\u305fwordpress\u3092\u305d\u306e\u307e\u307e\u4f7f\u3046\u306e\u3067\u3042\u308c\u3070\u3001\u8a3c\u660e\u66f8\u306e\u53d6\u5f97\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u306f\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo certbot certonly --webroot -w \/usr\/share\/wordpress -d snowflake.forecast.mydns.jp<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c\u3067\u3001 \u53c2\u7167\u5148\u30b5\u30a4\u30c8\u3068\u9055\u3063\u3066Congratulation\u3068\u8a00\u3063\u3066\u304f\u308c\u306a\u304b\u3063\u305f\u3002\u3055\u3089\u306b\u6700\u5f8c\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u6012\u3089\u308c\u305f\u3051\u3069\u3001\u5927\u4e08\u592b\u3060\u308d\u3046\u304b\u2026\u3002<\/p>\n\n\n\n<p>\u5fc3\u914d\u306b\u306a\u3063\u305f\u306e\u3067\u3082\u3046\u4e00\u56de\u540c\u3058\u30b3\u30de\u30f3\u30c9\u3092\u6295\u5165\u3059\u308b\u3068\u3001\u9014\u4e2d\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u78ba\u8a8d\u3068\u304b\u3092\u3059\u3063\u98db\u3070\u3057\u3066\u3001\u53c2\u7167\u5148\u3068\u540c\u3058\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\uff08Congratulation\u3092\u542b\u3080\uff09\u3092\u8868\u793a\u3057\u3066\u7d42\u308f\u3063\u305f\u3002 \u5927\u4e08\u592b\u304b\u306a\u3041\uff1f1\u56de\u76ee\u306b\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u3082\u3067\u304d\u305f\u3057\u3001\u5927\u4e08\u592b\u3068\u4fe1\u3058\u308b\u3057\u304b\u306a\u3044\u304b\u2026\u3053\u308c\u3067\u3044\u3044\u306e\u304b\uff1f<\/p>\n\n\n\n<p>live\u30d5\u30a9\u30eb\u30c0\u306b\u3067\u304d\u305f\u30d5\u30a1\u30a4\u30eb\u3092&#8221;chmod 400  *.pem&#8221;\u3067\u3059\u3079\u3066\u6240\u6709\u8005(root)\u306e\u307f\u306e\u8aad\u307f\u53d6\u308a\u5c02\u7528\u306b\u5909\u66f4\u3002\uff08\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u306e\u306a\u3044\u30d5\u30a9\u30eb\u30c0\u304c\u8907\u6570\u968e\u5c64\u3042\u3063\u3066cd\u3082ls\u3082\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u5c55\u958b\u3082\u5236\u7d04\u3055\u308c\u3066\u5927\u5909\u306a\u306e\u3067\u3001&#8221;sudo bash&#8221;\u3057\u3066\u4f5c\u696d\u3057\u305f\uff09<\/p>\n\n\n\n<p> \u307e\u305f\u3001\u3053\u308c\u3089\u30d5\u30a1\u30a4\u30eb\u3092 apache\u306ehttps\u30a2\u30af\u30bb\u30b9\u7528\u306e <br>(\/etc\/apache2\/site-enabled\/\u4ee5\u4e0b\u306b\u3042\u308b) conf\u30d5\u30a1\u30a4\u30eb\u306b\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u8a2d\u5b9a\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>SSLCertificateFile \/etc\/letsencrypt\/live\/snowflake.forecast.mydns.jp\/cert.pem     SSLCertificateKeyFile \/etc\/letsencrypt\/live\/snowflake.forecast.mydns.jp\/privkey.pem     SSLCertificateChainFile \/etc\/letsencrypt\/live\/snowflake.forecast.mydns.jp\/chain.pem<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u3061\u3083\u3093\u3068\u52d5\u304f\u306f\u305a\u2026\uff1f<\/p>\n\n\n\n<p>\u306a\u304a\u30011\u56de\u76ee\u306b\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u306b\u6012\u3089\u308c\u305f\u5185\u5bb9\u306f\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">An unexpected error occurred:<br> Traceback (most recent call last):<br>   File \"\/usr\/lib\/python3\/dist-packages\/urllib3\/connectionpool.py\", line 384, in  _make_request<br>     six.raise_from(e, None)<br>   File \"\", line 3, in raise_from<br>   File \"\/usr\/lib\/python3\/dist-packages\/urllib3\/connectionpool.py\", line 380, in _make_request<br>     httplib_response = conn.getresponse()<br>   File \"\/usr\/lib\/python3.7\/http\/client.py\", line 1321, in getresponse<br>     response.begin()<br>   File \"\/usr\/lib\/python3.7\/http\/client.py\", line 296, in begin<br>     version, status, reason = self._read_status()<br>   File \"\/usr\/lib\/python3.7\/http\/client.py\", line 257, in _read_status<br>     line = str(self.fp.readline(_MAXLINE + 1), \"iso-8859-1\")<br>   File \"\/usr\/lib\/python3.7\/socket.py\", line 589, in readinto<br>     return self._sock.recv_into(b)<br>   File \"\/usr\/lib\/python3\/dist-packages\/urllib3\/contrib\/pyopenssl.py\", line 307, in recv_into<br>     raise timeout('The read operation timed out')<br> socket.timeout: The read operation timed out<br><br><br>During handling of the above exception, another exception occurred:<br> Traceback (most recent call last):<br>   File \"\/usr\/lib\/python3\/dist-packages\/requests\/adapters.py\", line 449, in send<br>     timeout=timeout<br>   File \"\/usr\/lib\/python3\/dist-packages\/urllib3\/connectionpool.py\", line 638, in urlopen<br>     _stacktrace=sys.exc_info()[2])<br>   File \"\/usr\/lib\/python3\/dist-packages\/urllib3\/util\/retry.py\", line 367, in increment<br>     raise six.reraise(type(error), error, _stacktrace)<br>   File \"\/usr\/lib\/python3\/dist-packages\/six.py\", line 693, in reraise<br>     raise value<br>   File \"\/usr\/lib\/python3\/dist-packages\/urllib3\/connectionpool.py\", line 600, in urlopen<br>     chunked=chunked)<br>   File \"\/usr\/lib\/python3\/dist-packages\/urllib3\/connectionpool.py\", line 386, in _make_request<br>     self._raise_timeout(err=e, url=url, timeout_value=read_timeout)<br>   File \"\/usr\/lib\/python3\/dist-packages\/urllib3\/connectionpool.py\", line 306, in  _raise_timeout<br>     raise ReadTimeoutError(self, url, \"Read timed out. (read timeout=%s)\" % timeout_value)<br> urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Read timed out. (read timeout=45)<br><br> During handling of the above exception, another exception occurred:<br><br> requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Read timed out. (read timeout=45)<br> Please see the logfiles in \/var\/log\/letsencrypt for more details.<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u66f4\u6295\u7a3f\u3057\u307e\u3059\u304c1\u670813\u65e5\u306e\u3053\u3068\u3002 \u3053\u306e<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-raspberry-pi-4"],"_links":{"self":[{"href":"https:\/\/tips.yomou.online\/index.php?rest_route=\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tips.yomou.online\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tips.yomou.online\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tips.yomou.online\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tips.yomou.online\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=51"}],"version-history":[{"count":0,"href":"https:\/\/tips.yomou.online\/index.php?rest_route=\/wp\/v2\/posts\/51\/revisions"}],"wp:attachment":[{"href":"https:\/\/tips.yomou.online\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tips.yomou.online\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tips.yomou.online\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}