{"id":5744,"date":"2019-04-10T00:17:54","date_gmt":"2019-04-09T15:17:54","guid":{"rendered":"https:\/\/www.tapoblog.0t0.jp\/?p=5744"},"modified":"2019-04-15T00:11:57","modified_gmt":"2019-04-14T15:11:57","slug":"%e6%9c%ac%e5%ae%b6%e3%83%96%e3%83%ad%e3%82%b0https%e5%8c%96","status":"publish","type":"post","link":"https:\/\/www.tapoblog.0t0.jp\/?p=5744","title":{"rendered":"\u672c\u5bb6\u30d6\u30ed\u30b0https\u5316"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u4e16\u9593\u306f\u3044\u3064\u306e\u9593\u306b\u304bhttps\u304c\u6a19\u6e96\u306b\u306a\u308a\u3064\u3064\u3042\u308b\u304c\u3001\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u306e\u305f\u3081\u306b\u91d1\u6255\u3063\u3066SSL\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b\u306e\u3082\u99ac\u9e7f\u3089\u3057\u3044\u3068\u601d\u3063\u3066\u3001\u305a\u30fc\u30fc\u3063\u3068http\u306e\u307e\u307e\u3060\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u3075\u3068\u601d\u3044\u7acb\u3063\u3066https\u306b\u79fb\u884c\u3057\u3066\u307f\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">SSL\u8a3c\u660e\u66f8\u81ea\u4f53\u306f\u3001 \u30e1\u30fc\u30eb\u30b5\u30fc\u30d0(\u53d7\u4fe1\u5c02\u7528)\u306eIMAP\u30b5\u30fc\u30d0\u3092\u30aa\u30ec\u30aa\u30ec\u8a3c\u660e\u66f8\u3067SSL\u5316\u3057\u3066\u305f\u3051\u3069 \u3001\u8a3c\u660e\u66f8\u306e\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u308b\u305f\u3073\u306b<a href=\"https:\/\/www.tapoblog.0t0.jp\/?p=1434\">\u904e\u53bb\u306e\u30e1\u30e2<\/a>\u3092\u53c2\u8003\u306b\u8a3c\u660e\u66f8\u3092\u518d\u767a\u884c\u3057\u3066\u3001\u3055\u3089\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306b\u8a3c\u660e\u66f8\u3092\u4fe1\u983c\u6e08\u307f\u3068\u3057\u3066\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u2026\u3001\u3063\u3066\u306e\u304c\u5e38\u3005\u9762\u5012\u304f\u3055\u3044\u3068\u601d\u3063\u3066\u308b\u72b6\u614b\u3060\u3063\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3067\u3001\u4eca\u56de\u8272\u3005\u8abf\u3079\u3066\u307f\u305f\u3089\u3001<a rel=\"noreferrer noopener\" aria-label=\"Let's Encrypt (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/letsencrypt.org\/\" target=\"_blank\">Let&#8217;s Encrypt<\/a>(<a rel=\"noreferrer noopener\" aria-label=\"\u65e5\u672c\u8a9e\u89e3\u8aac\u30b5\u30a4\u30c8 (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/free-ssl.jp\/\" target=\"_blank\">\u65e5\u672c\u8a9e\u89e3\u8aac\u30b5\u30a4\u30c8<\/a>)\u3068\u3044\u3046\u7121\u511f\u306eSSL\u8a3c\u660e\u66f8\u767a\u884c\u30b5\u30fc\u30d3\u30b9\u304c\u3042\u308b\u3053\u3068\u3092\u77e5\u3063\u3066\u3001Web\u30b5\u30fc\u30d0(Apache)\u3068\u3068\u3082\u306b\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0(courier-imapd-ssl)\u3082\u3061\u3083\u3093\u3068SSL\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u305f\u3002\u305d\u3057\u305f\u3089\u3001IMAPS\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u3082\u65e9\u304f\u306a\u3063\u305f\u3088\u3046\u3060\u3002\u30aa\u30ec\u30aa\u30ec\u8a3c\u660e\u66f8\u306e\u691c\u8a3c\u306f\u4f55\u304b\u7121\u99c4\u306a\u5f85\u3061\u6642\u9593\u304c\u3042\u3063\u305f\u306e\u304b\u306a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3061\u306a\u307f\u306b\u3001Let&#8217;s Encrypt\u306b\u3088\u308bApache\u306ehttps\u5316\u306f\u3001\u4ed6\u306e\u30b5\u30a4\u30c8\u306e\u89e3\u8aac\u306b\u3042\u308b\u901a\u308a\u3001\u30b3\u30de\u30f3\u30c9\u4e00\u767a(\u5bfe\u8a71\u5165\u529b\u5f0f)\u3067\u30db\u30f3\u30c8\u306b\u7c21\u5358\u3060\u3063\u305f\u30022\u756a\u76ee\u306e\u30b3\u30de\u30f3\u30c9\u3060\u3051\u3067\u3001\u8a3c\u660e\u66f8\u306e\u53d6\u5f97\u3084apache\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u66f4\u65b0\uff06\u518d\u8d77\u52d5\u307e\u3067\u5168\u3066\u3084\u3063\u3066\u304f\u308c\u305f\u3002 https\u3078\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u8a2d\u5b9a\u307e\u3067\u3084\u3063\u3066\u304f\u308c\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># apt-get install python3-certbot python3-certbot-apache\n# certbot run --apache -w \/var\/www\/html\/ -d www.tapoblog.0t0.jp<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u203b\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u304d\u306a\u304c\u3089\u78ba\u8a8d\u3057\u3066\u3066\u6c17\u3065\u3044\u305f\u304c\u3001-w\u306f&#8211;webroot\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306a\u306e\u3067\u3001&#8211;apache\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u306f\u4e0d\u8981\u3060\u3063\u305f\u3088\u3046\u3060\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306bcourier-imapd-ssl\u3060\u304c\u3001\u3076\u3063\u3061\u3083\u3051\u6b63\u78ba\u306a\u610f\u5473\u306f\u7406\u89e3\u3057\u3066\u3044\u306a\u3044\u304c\u3001apache\u5411\u3051\u306b\u53d6\u5f97\u3057\u305f\u8a3c\u660e\u66f8\u3068\u79d8\u5bc6\u9375\u3092\u5408\u4f53\u3055\u305b\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u3066\u3084\u3063\u305f\u3089\u3001\u30aa\u30ec\u30aa\u30ec\u3058\u3083\u306a\u3044IMAPS\u30b5\u30fc\u30d0\u306b\u306a\u3063\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># cat \/etc\/letsencrypt\/live\/www.tapoblog.0t0.jp\/privkey.pem \/etc\/letsencrypt\/live\/www.tapoblog.0t0.jp\/fullchain.pem > \/etc\/courier\/imapd.pem\n# systemctl restart courier-imap-ssl.service<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u3057\u3066\u8a3c\u660e\u66f8\u306e\u81ea\u52d5\u66f4\u65b0\u306f\u3001cron\u3067\u66f4\u65b0\u7528\u306e\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u3044\u3066\u3084\u308b\u3060\u3051\u3002\u8a3c\u660e\u66f8\u306e\u6709\u52b9\u671f\u9650\u304c\u6b8b\u308a30\u65e5\u4ee5\u4e0b\u306e\u5834\u5408\u306e\u307f\u5b9f\u969b\u306b\u8a3c\u660e\u66f8\u306e\u518d\u53d6\u5f97\u304c\u884c\u308f\u308c\u308b\u3068\u306e\u3053\u3068\u3002\u3068\u8a00\u3046\u308f\u3051\u3067\u3001\u81ea\u52d5\u66f4\u65b0\u304c\u3046\u307e\u304f\u3044\u304f\u304b\u3069\u3046\u304b\u306f\u7d042\u30f6\u6708\u5f8c\u306e\u304a\u697d\u3057\u307f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># crontab -e\n00 04 * * *     certbot renew<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u306a\u304a\u3001\u81ea\u52d5\u66f4\u65b0\u6642\u306bApache\u3084courier-imapd-ssl\u3092\u518d\u8d77\u52d5\u3055\u305b\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3(&#8211;post-hook)\u3067\u306f\u306a\u304f\u3001\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u3057\u3066\/etc\/letsencrypt\/renewal-hooks\/deploy\u306b\u7f6e\u3044\u3066\u304a\u3044\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u5f8c\u306b\u3001WordPress\u5074\u306e\u8a2d\u5b9a\u3082https\u306b\u5909\u66f4\u3057\u3066\u3001\u5404\u8a18\u4e8b\u4e2d\u306eURL\u3082SQL(phpMyAdmin)\u3067https\u306b\u7f6e\u63db\u3057\u3066\u3084\u3063\u3066\u3001\u79fb\u884c\u306f\u305f\u3076\u3093\u5b8c\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>UPDATE `wp_posts` SET\n`post_content`=REPLACE(`post_content`, \"http:\/\/www.tapoblog.0t0.jp\", \"https:\/\/www.tapoblog.0t0.jp\")\n WHERE `post_content` LIKE \"%http:\/\/www.tapoblog.0t0.jp%\"<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4e16\u9593\u306f\u3044\u3064\u306e\u9593\u306b\u304bhttps\u304c\u6a19\u6e96\u306b\u306a\u308a\u3064\u3064\u3042\u308b\u304c\u3001\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u306e\u305f\u3081\u306b\u91d1\u6255\u3063\u3066SSL\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b\u306e\u3082\u99ac\u9e7f\u3089\u3057\u3044\u3068\u601d\u3063\u3066\u3001\u305a\u30fc\u30fc\u3063\u3068http\u306e\u307e\u307e\u3060\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u3075\u3068\u601d\u3044\u7acb\u3063\u3066https\u306b\u79fb\u884c\u3057\u3066\u307f\u305f\u3002 SSL\u8a3c\u660e\u66f8 [&hellip;]<\/p>\n","protected":false},"author":1,"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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[39],"tags":[],"class_list":["post-5744","post","type-post","status-publish","format-standard","category-nucleus"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=\/wp\/v2\/posts\/5744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5744"}],"version-history":[{"count":0,"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=\/wp\/v2\/posts\/5744\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tapoblog.0t0.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}