{"id":52,"date":"2020-07-29T16:25:35","date_gmt":"2020-07-29T07:25:35","guid":{"rendered":"http:\/\/thunsukevpn.clear-net.jp\/?p=52"},"modified":"2020-10-09T18:07:53","modified_gmt":"2020-10-09T09:07:53","slug":"raspberry-pi-wordpress-https","status":"publish","type":"post","link":"https:\/\/www.thun-techblog.com\/index.php\/blog\/raspberry-pi-wordpress-https\/","title":{"rendered":"Raspberry Pi + WordPress \u306eHTTPS\u5316(Let&#8217;s Encrypt)"},"content":{"rendered":"\n<p>\u65e9\u901f\u3067\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u30bf\u30a4\u30c8\u30eb\u306b\u3042\u308b\u901a\u308aRaspberry Pi \u306b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305fWordPress\u306e\u30b5\u30a4\u30c8\u306eHTTPS\u5316\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u66f8\u304d\u65b9\u3092\u5bb9\u6613\u306b\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u96e3\u3057\u304f\u66f8\u3044\u3066\u3082\u308f\u304b\u3089\u306b\u304f\u3044\u306e\u3068\u3001\u305d\u3053\u307e\u3067\u8e0f\u307f\u8fbc\u3093\u3060\u8a71\u3092\u5b9f\u969b\u306e\u904b\u7528\u306b\u304a\u3044\u3066\u5fc5\u8981\u306a\u3044\u306e\u3067\u3001\u306a\u3093\u3068\u306a\u304f\u308f\u304b\u308b\u3050\u3089\u3044\u306e\u3082\u306e\u3067\u66f8\u3044\u3066\u304a\u304f\u3053\u3068\u3092\u3054\u627f\u77e5\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3067\u306f\u8efd\u3044\u8aac\u660e\u3060\u3051\u3057\u3066HTTPS\u5316\u3092\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<!--more-->\n\n\n<style>\n.test { width: 320px; height: 100px; }\n@media(min-width: 500px) { .test { width: 468px; height: 60px; } }\n@media(min-width: 800px) { .test { width: 728px; height: 90px; } }\n<\/style>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4541970754535576\"\n     crossorigin=\"anonymous\"><\/script>\n<!-- \u3044\u3064\u3082\u306e\u6b63\u65b9\u5f62\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30eb\u5e83\u544a -->\n<ins class=\"adsbygoogle test\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-4541970754535576\"\n     data-ad-slot=\"5487611343\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#a\">HTTPS\u3063\u3066\uff1f<\/a><\/li><li><a href=\"#b\">WordPress\u306e\u30b5\u30a4\u30c8\u3092HTTPS\u5316<\/a><\/li><\/ul>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id=\"a\">HTTPS\u3063\u3066\uff1f<\/h2>\n<\/div><\/div>\n\n\n\n<p>\u304a\u305d\u3089\u304f\u3053\u306e\u30da\u30fc\u30b8\u306b\u305f\u3069\u308a\u7740\u3044\u305f\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u81ea\u5206\u306e\u30b5\u30a4\u30c8\u304cHTTP\u3067\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">HTTP<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"396\" height=\"33\" src=\"https:\/\/thunsukevpn.clear-net.jp\/wp-content\/uploads\/2020\/07\/http.png\" alt=\"\" class=\"wp-image-61\" srcset=\"https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2020\/07\/http.png 396w, https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2020\/07\/http-300x25.png 300w\" sizes=\"auto, (max-width: 396px) 100vw, 396px\" \/><figcaption>chrome\u3060\u3068\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u306d\u3002<\/figcaption><\/figure>\n\n\n\n<p>Chrome\u3060\u3068\u300c\u4fdd\u8b77\u3055\u308c\u3066\u3044\u306a\u3044\u901a\u4fe1\u300d\u3068\u51fa\u3066\u304f\u308b\u306e\u3067\u3059\u3050\u308f\u304b\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u308c\u304cHTTP\u306e\u72b6\u614b\u306a\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u300c\u4fdd\u8b77\u3055\u308c\u3066\u3044\u306a\u3044\u901a\u4fe1\u300d\u3068\u3042\u308a\u307e\u3059\u304c\u3001\u5177\u4f53\u7684\u306b\u4f55\u304c\u4fdd\u8b77\u3055\u308c\u306a\u3044\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n\n\n\n<p>\u672c\u5f53\u306b\u305d\u306e\u307e\u307e\u306e\u610f\u5473\u3067\u3001\u901a\u4fe1\u30d1\u30b1\u30c3\u30c8\u3092\u898b\u308b\u3060\u3051\u3067\u4f55\u306e\u60c5\u5831\u3092\u3084\u308a\u3068\u308a\u3057\u3066\u3044\u308b\u304b\u304c\u308f\u304b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u901a\u4fe1\u30d1\u30b1\u30c3\u30c8\u3063\u3066\u4f55\uff1f\u7c21\u5358\u306b\u898b\u308c\u308b\u306e\uff1f\u3068\u601d\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u304b\u3064\u3066\u306f\u3088\u304f\u8033\u306b\u3057\u305f\u30d1\u30b1\u30c3\u30c8\u3060\u3068\u601d\u3063\u3066\u304f\u308c\u3066\u5927\u4e08\u592b\u3067\u3059\u3002\u7c21\u5358\u306b\u3044\u3046\u610f\u56f3\u901a\u4fe1\u30c7\u30fc\u30bf\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u898b\u308b\u306e\u3082\u5b9f\u306f\u7c21\u5358\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3092\u5165\u308c\u308c\u3070\u7c21\u5358\u306b\u898b\u308c\u307e\u3059\u3057\u3001Wi-Fi\u3063\u3066\u96fb\u6ce2\u3067\u30d1\u30b1\u30c3\u30c8\u98db\u3070\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u5b9f\u306f\u3053\u306e\u96fb\u6ce2\u306b\u306f\u4ed6\u306e\u4eba\u306e\u30c7\u30fc\u30bf\u3082\u4e00\u7dd2\u306b\u4e57\u3063\u3066\u3044\u308b\u3093\u3067\u3059\u3088\u3002\u3053\u306e\u30c7\u30fc\u30bf\u304cHTTP\u306e\u72b6\u614b\u3060\u3068\u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u72b6\u614b\uff08\u7528\u8a9e\u3067\u306f\u5e73\u6587\u306a\u3093\u3066\u547c\u3073\u307e\u3059\uff09\u3067\u3084\u308a\u3068\u308a\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u3053\u306e\u30b5\u30a4\u30c8\u3068\u901a\u4fe1\u3057\u305f\u3068\u304d\u306b\u3001\u3053\u306e\u4eca\u898b\u3066\u3044\u308b\u6587\u5b57\u304c\u305d\u306e\u307e\u307e\u898b\u3048\u308b\u3088\u3046\u306a\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u304c\u5bb6\u306e\u4e2d\u3067\u76d7\u307f\u898b\u3089\u308c\u3066\u56f0\u308a\u306f\u3057\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3082\u3057\u5916\u3067\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u3092\u3057\u3066\u308b\u3068\u304d\u306b\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306e\u60c5\u5831\u304c\u305d\u306e\u307e\u307e\u3084\u308a\u53d6\u308a\u3055\u308c\u3066\u3044\u305f\u3089\u2026\u3068\u601d\u3046\u3068\u305e\u3063\u3068\u3057\u307e\u305b\u3093\u304b\uff1f<\/p>\n\n\n\n<p>\u3060\u304b\u3089\u3053\u305d\u4ecahttp\u304b\u3089https\u306b\u79fb\u884c\u3057\u3088\u3046\u3068\u3044\u3046\u6d41\u308c\u304c\u304d\u3066\u3044\u308b\uff08\u304d\u3066\u3044\u305f\uff09\u308f\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3054\u304f\u7c21\u5358\u306b\u4e00\u8a00\u3067\u8868\u3059\u306a\u3089\u3001\u300c\u5371\u306a\u3044\u304b\u3089https\u306b\u3059\u308b\u300d\u3068\u3044\u3046\u3060\u3051\u306a\u3093\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">HTTPS<\/h4>\n\n\n\n<p>\u5bfe\u3057\u3066HTTPS\u306f\u9001\u308b\u30c7\u30fc\u30bf\u3092\u6697\u53f7\u5316\u3057\u305f\u3046\u3048\u3067\u9001\u4fe1\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3053\u308c\u304c\u307b\u304b\u306e\u4eba\u306b\u898b\u3048\u3066\u3082\u4f55\u304c\u66f8\u3044\u3066\u3042\u308b\u304b\u308f\u304b\u3089\u306a\u3044\u3001\u30d1\u30b1\u30c3\u30c8\u3092\u898b\u3089\u308c\u3066\u3082\u4f55\u3092\u3057\u3066\u3044\u308b\u304b\u308f\u304b\u3089\u306a\u3044\u3058\u3087\u3046\u305f\u3044\u306b\u306a\u308a\u307e\u3059\u3002\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u3057\u3066\u3082\u3001\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306e\u756a\u53f7\u3082\u3001\u8cb7\u3063\u305f\u3082\u306e\u3082\u308f\u304b\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u7c21\u5358\u306b\u3069\u3093\u306a\u3053\u3068\u3092\u3057\u3066\u3044\u308b\u304b\u3068\u3044\u3046\u306e\u3092\u8aac\u660e\u3059\u308b\u3068\u3001\u300c\u9375\u300d\u3068\u3088\u3070\u308c\u308b\u3001\u6697\u53f7\u5316\u3057\u305f\u308a\u305d\u308c\u3092\u8aad\u307f\u89e3\u304f\u305f\u3081\u306e\u30c7\u30fc\u30bf\u3092\u8a2d\u5b9a\u3057\u3066\u3001\u305d\u308c\u3092\u304a\u4e92\u3044\u306b\u3084\u308a\u3068\u308a\u3059\u308b\u3053\u3068\u3067\u3001\u5b89\u5168\u306a\u901a\u4fe1\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002\u7528\u8a9e\u3067\u306f\u300c\u516c\u958b\u9375\u300d\u3084\u300c\u79d8\u5bc6\u9375\u300d\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u3092\u7528\u3044\u3066\u6697\u53f7\u5316\u3059\u308b\u306e\u3067\u8a73\u3057\u3044\u7406\u5c48\u304c\u6c17\u306b\u306a\u308b\u3068\u3044\u3046\u65b9\u306f\u3002\u3001\u3053\u3053\u3089\u8fba\u306e\u5358\u8a9e\u3067\u8abf\u3079\u305f\u3089\u3044\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u96e3\u3057\u3044\u304a\u8a71\u306f\u7701\u304d\u307e\u3059\u3002\u300c\u9375\u300d\u3068\u306f\u8a00\u3044\u307e\u3059\u304c\u3001\u5f53\u7136\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u4e0a\u306e\u9375\u306a\u306e\u3067\u6587\u5b57\u5217\u306e\u584a\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"b\">WordPress\u306e\u30b5\u30a4\u30c8\u3092HTTPS\u5316<\/h3>\n\n\n\n<p>\u3067\u306f\u5b9f\u4f5c\u696d\u306e\u307b\u3046\u306b\u6620\u3063\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u5fc5\u8981\u306b\u306a\u308a\u305d\u3046\u306a\u79c1\u306e\u5b9f\u884c\u74b0\u5883\u306e\u307b\u3046\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Raspberry Pi 3B+<\/li><li>Raspberry Pi OS(\u65e7Raspbian ) buster  32bit<\/li><li>Apache 2<\/li><li>PHP 7.3<\/li><li>WordPress 5.4.3<\/li><li><strong>DDNS\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u3053\u3068<\/strong><\/li><\/ul>\n\n\n\n<p>\u5927\u524d\u63d0\u3068\u3057\u3066DDNS(example.com\u307f\u305f\u3044\u306a)\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u5927\u524d\u63d0\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u3053\u3053\u306f\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff08IP\u30a2\u30c9\u30ec\u30b9:123.456.789.000\u307f\u305f\u3044\u306a\u306e\u306f\u3060\u3081\u3067\u3059\uff09<\/p>\n\n\n\n<p>\u4eca\u304b\u3089\u793a\u3059\u624b\u6bb5\u306f\u304a\u305d\u3089\u304fDebian\u7cfb\u306eOS\u306a\u3089\u3069\u308c\u3067\u3082\u5927\u4e08\u592b\u304b\u3068\u601d\u3044\u307e\u3059\uff08\u672a\u691c\u8a3c\uff09\u3002\u3044\u304f\u3064\u304bRaspbery Pi\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u306e\u30b3\u30fc\u30c9\u3092\u62dd\u898b\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u8ffd\u52a0\u3057\u305f\u308a\u3081\u3093\u3069\u3046\u306a\u611f\u3058\u3067\u3057\u305f\u304c\u3001\u3053\u306e\u65b9\u6cd5\u306f\u81ea\u5206\u3067\u3082\u3073\u3063\u304f\u308a\u3059\u308b\u3050\u3089\u3044\u7c21\u5358\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4e0a\u306b\u9577\u3005\u66f8\u304d\u307e\u3057\u305f\u304c\u3001\u30b3\u30fc\u30c9\u6253\u3061\u8fbc\u3093\u3067\u305d\u306e\u901a\u308a\u306b\u64cd\u4f5c\u3057\u3066\u3082\u3089\u3048\u308c\u3070\u5c0e\u5165\u3067\u304d\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u306f\u306f\u3058\u3081\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001certbot\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plane\"><code>$ sudo apt-get install certbot\n$ sudo apt-get install python-certbot-apache\n$ sudo certbot --apache<\/code><\/pre><\/div>\n\n\n\n<p>\u3059\u308b\u3068\u82f1\u6587\u3067\u8272\u3005\u51fa\u3066\u304f\u308b\u306e\u3067\u3059\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u66f8\u3044\u3066\u3044\u308b\u901a\u308a\u306b\u9032\u3081\u3066\u304f\u308c\u308c\u3070\u554f\u984c\u306f\u306a\u304f\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u597d\u307f\u306e\u90e8\u5206\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u3053\u3068\u3082\u3042\u308b\u306e\u3067\u3001\u3088\u304f\u8aad\u3093\u3060\u3046\u3048\u3067\u64cd\u4f5c\u3057\u3066\u3044\u305f\u3060\u3044\u305f\u307b\u3046\u304c\u3044\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u3072\u3068\u307e\u305a\u306f\u4e0b\u306e\u901a\u308a\u306b\u805e\u304b\u308c\u305f\u3089\u7b54\u3048\u308c\u3070\u5927\u4e08\u592b\u3067\u3059\u3002\u6700\u5f8c\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306e\u30a2\u30c9\u30ec\u30b9\u306f\u81ea\u5206\u306e\u3082\u306e\u3068\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plane\"><code>Saving debug log to \/var\/log\/letsencrypt\/letsencrypt.log\nPlugins selected: Authenticator apache, Installer apache\nEnter email address (used for urgent renewal and security notices) (Enter &#39;c&#39; to\ncancel):\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u3053\u3053\u306b\u5165\u308c\u3066\u304f\u3060\u3055\u3044\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nPlease read the Terms of Service at\nhttps:\/\/letsencrypt.org\/documents\/LE-SA-v1.2-November-15-2017.pdf. You must\nagree in order to register with the ACME server at\nhttps:\/\/acme-v02.api.letsencrypt.org\/directory\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n(A)gree\/(C)ancel: A\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nWould you be willing to share your email address with the Electronic Frontier\nFoundation, a founding partner of the Let&#39;s Encrypt project and the non-profit\norganization that develops Certbot? We&#39;d like to send you email about our work\nencrypting the web, EFF news, campaigns, and ways to support digital freedom.\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n(Y)es\/(N)o:Y\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nWould you be willing to share your email address with the Electronic Frontier\nFoundation, a founding partner of the Let&#39;s Encrypt project and the non-profit\norganization that develops Certbot? We&#39;d like to send you email about our work\nencrypting the web, EFF news, campaigns, and ways to support digital freedom.\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n(Y)es\/(N)o: Y\nNo names were found in your configuration files. Please enter in your domain\nname(s) (comma and\/or space separated)  (Enter &#39;c&#39; to cancel):thunsukevpn.clear-net.jp\n<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u3053\u304b\u3089web\u30b5\u30a4\u30c8\u8a2d\u5b9a\u306b\u5165\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plane\"><code>Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n1: No redirect - Make no further changes to the webserver configuration.\n2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for\nnew sites, or if you&#39;re confident your site works on HTTPS. You can undo this\nchange by editing your web server&#39;s configuration.\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nSelect the appropriate number [1-2] then [enter] (press &#39;c&#39; to cancel):2<\/code><\/pre><\/div>\n\n\n\n<p>http:\/\/~\u304b\u3089https:\/\/~\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u805e\u3044\u3066\u3044\u307e\u3059\u3002\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u306a\u3044\u306a\u3089\u300c1\u300d\u3092\u3001\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u306a\u3089\u300c2\u300d\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u308f\u304b\u3089\u306a\u3044\u3068\u304b\u3067\u3042\u308c\u3070\u57fa\u672c\u7684\u306b\u306f2\u3067\u3044\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3082\u3057\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u306a\u3044\u300c\uff11\u300d\u3060\u3068\u3001http\u30a2\u30af\u30bb\u30b9\u304c\u62d2\u7d76\u3055\u308c\u308b\u306e\u3067\u3001\u4eca\u307e\u3067http\u306e\u30a2\u30c9\u30ec\u30b9\u3067\u30da\u30fc\u30b8\u3092\u8a2a\u308c\u3066\u3044\u305f\u30e6\u30fc\u30b6\u30fc\u304c\u6765\u308c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u4eca\u304b\u3089web\u30da\u30fc\u30b8\u3092\u4f5c\u308b\u306a\u30891\u3067\u3082\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u958b\u3051\u3066\u304a\u304f\u30dd\u30fc\u30c8\u306f\u5c11\u306a\u3044\u306b\u8d8a\u3057\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3057\u306d\u3002<\/p>\n\n\n\n<p>\u3042\u3068\u306f\u3053\u308c\u3092\u5165\u529b\u3057\u305f\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u793a\u304c\u51fa\u308c\u3070\u7d42\u308f\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plane\"><code>IMPORTANT NOTES:\n - Congratulations! Your certificate and chain have been saved at:\n   \/etc\/letsencrypt\/live\/thunsukevpn.clear-net.jp\/fullchain.pem\n   Your key file has been saved at:\n   \/etc\/letsencrypt\/live\/thunsukevpn.clear-net.jp\/privkey.pem\n   Your cert will expire on 2020-10-26. To obtain a new or tweaked\n   version of this certificate in the future, simply run certbot again\n   with the &quot;certonly&quot; option. To non-interactively renew *all* of\n   your certificates, run &quot;certbot renew&quot;\n - If you like Certbot, please consider supporting our work by:\n\n   Donating to ISRG \/ Let&#39;s Encrypt:   https:\/\/letsencrypt.org\/donate\n   Donating to EFF:                    https:\/\/eff.org\/donate-le<\/code><\/pre><\/div>\n\n\n\n<p>\u5b9f\u306f\u3053\u306e\u6642\u70b9\u3067web\u30b5\u30a4\u30c8\u306ehttps\u5316\u306f\u5b8c\u4e86\u3057\u3066\u3044\u307e\u3059\u3002\u4eca\u307e\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u305f\u81ea\u5206\u306ehttp\u306e\u30b5\u30a4\u30c8\u306eURL\u3092\u5165\u529b\u3059\u308b\u3068\u3001<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"507\" height=\"36\" src=\"https:\/\/thunsukevpn.clear-net.jp\/wp-content\/uploads\/2020\/07\/https.png\" alt=\"\" class=\"wp-image-66\" srcset=\"https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2020\/07\/https.png 507w, https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2020\/07\/https-300x21.png 300w\" sizes=\"auto, (max-width: 507px) 100vw, 507px\" \/><figcaption>\u3082\u3046https:\/\/~\u306b\u306a\u3063\u3066\u308b!<\/figcaption><\/figure>\n\n\n\n<p>\u3053\u308c\u307b\u3069\u7c21\u5358\u306b\u7d42\u308f\u308b\u3068\u306f\u81ea\u5206\u3067\u3082\u601d\u3063\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u307e\u3060\u3084\u308b\u3053\u3068\u304c\u6b8b\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u306e\u3082\u300c<a href=\"#a\">HHTPS\u3063\u3066\uff1f<\/a>\u300d\u3063\u3066\u3044\u3046\u9805\u3067\u66f8\u3044\u3066\u3044\u305f\u300c\u9375\u300d\u306a\u3093\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u5b89\u5168\u306e\u90fd\u5408\u30673\u304b\u6708\u3067\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u306a\u306e\u3067\u66f4\u65b0\u30923\u304b\u6708\u3054\u3068\u306b\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u3092\u624b\u52d5\u3067\u66f4\u65b0\u3059\u308b\u306e\u306f\u9762\u5012\u3067\u3059\u3002\u81ea\u52d5\u5316\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u59cb\u3081\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u9375\u306e\u66f4\u65b0\u304c\u6b63\u5e38\u306b\u3067\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u5b9f\u884c\u7d50\u679c\u4e00\u7dd2\u306b\u4e57\u305b\u3066\u3044\u307e\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308c\u3070\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plane\"><code>$ sudo certbot renew\n\nSaving debug log to \/var\/log\/letsencrypt\/letsencrypt.log\n\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nProcessing \/etc\/letsencrypt\/renewal\/thunsukevpn.clear-net.jp.conf\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nCert not yet due for renewal\n\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\nThe following certs are not due for renewal yet:\n  \/etc\/letsencrypt\/live\/thunsukevpn.clear-net.jp\/fullchain.pem expires on 2020-10-26 (skipped)\nNo renewals were attempted.\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u308c\u3092\u5b9a\u671f\u5b9f\u884c\u3067\u304d\u308bcorn\u3068\u3044\u3046\u3082\u306e\u306b\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plane\"><code>crontab -e<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068cron\u306e\u7de8\u96c6\u753b\u9762\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u524d\u306b\u521d\u3081\u3066crontab\u3092\u5b9f\u884c\u3059\u308b\u3068\u30011,2,3\u306e\u3069\u308c\u304b\u3092\u9078\u3076\u3088\u3046\u306b\u6307\u793a\u3055\u308c\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u307e\u307eEnter\u3059\u308b\u304b1\u3092\u9078\u3079\u3070nano\u3063\u3066\u3044\u3046\u4e00\u756a\u666e\u901a\u306e\u4eba\u306b\u306f\u308f\u304b\u308a\u3084\u3059\u3044\u30a8\u30c7\u30a3\u30bf\u304c\u958b\u304f\u306e\u3067\u305d\u308c\u3092\u3064\u304b\u3063\u3066\u304f\u3060\u3055\u3044\u3002\uff08Linux\u306b\u6163\u308c\u3066\u308b\u4eba\u306f\u597d\u304d\u306a\u30a8\u30c7\u30a3\u30bf\u304c\u3042\u308b\u3068\u601d\u3046\u306e\u3067\u5272\u611b\uff09\u3002<\/p>\n\n\n\n<p>\u3055\u3066crantab\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u9752\u3044\u6587\u5b57\uff08\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3060\u3068\u51fa\u3066\u304d\u307e\u3059\u304c\u3044\u3058\u3063\u3066\u3044\u305f\u3089\u77e5\u308a\u307e\u305b\u3093\uff09\u304c\u51fa\u3066\u304f\u308b\u3068\u601d\u3046\u306e\u3067\u3001\u4e00\u756a\u4e0b\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f62\u3067\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plane\"><code>0 3 * * 0 certbot renew<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u308c\u304ccorn\u3078\u306e\u66f8\u304d\u65b9\u306a\u306e\u3067\u3059\u304c\u3001\u7d30\u304b\u3044\u3053\u3068\u306f\u5272\u611b\u3057\u3066\u5fc5\u8981\u305d\u3046\u306a\u3068\u3053\u308d\u3060\u3051\u304b\u3044\u3064\u307e\u3093\u3067\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table alignwide is-style-regular\"><table class=\"has-subtle-light-gray-background-color has-background\"><tbody><tr><td>\u4e00\u756a\u5de6\u306e0<\/td><td>\u5206:0~59<\/td><\/tr><tr><td>3\u304c\u3042\u308b\u5834\u6240<\/td><td>\u6642:0~24<\/td><\/tr><tr><td>\u53f3\u306e0<\/td><td>\u66dc\u65e5:0~7(0,7\u304c\u65e5\u66dc\u65e5)\u3001\u305d\u308c\u4ee5\u5916\u306b\u3082sun mon\u306a\u3069\u82f1\u8a9e\u306e3\u6587\u5b57\u306e\u8868\u8a18\u3067\u3082\u53ef<\/td><\/tr><tr><td>certbot renew<\/td><td>\u30b3\u30de\u30f3\u30c9:\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u5165\u529b\u3067\u304d\u308b\u30b3\u30de\u30f3\u30c9\u3092\u3053\u3053\u306b\u66f8\u3051\u3070\u4e0a\u3067\u6307\u5b9a\u3057\u305f\u6642\u9593\u306b\u305d\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c<\/td><\/tr><\/tbody><\/table><figcaption>cron\u8868\u8a18\u306e\u4e00\u90e8<\/figcaption><\/figure>\n\n\n\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u306a\u306e\u3067\u3001\u3046\u3048\u3067\u66f8\u3044\u305f\u4f8b\u3092\u8aad\u307f\u89e3\u304f\u3068\u3001\u300c\u6bce\u9031\u65e5\u66dc\u65e5\u3001\u5348\u524d3\u66420\u5206\u306b&#8221;certbot renew&#8221;\u3092\u5b9f\u884c\u300d\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u9375\u306e\u66f4\u65b0\u306e\u6642\u9593\u3092\u5909\u66f4\u3057\u305f\u3051\u308c\u3070\u4e0a\u306e\u8868\u306b\u5f93\u3063\u3066\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<style>\n.test { width: 320px; height: 100px; }\n@media(min-width: 500px) { .test { width: 468px; height: 60px; } }\n@media(min-width: 800px) { .test { width: 728px; height: 90px; } }\n<\/style>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4541970754535576\"\n     crossorigin=\"anonymous\"><\/script>\n<!-- \u3044\u3064\u3082\u306e\u6b63\u65b9\u5f62\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30eb\u5e83\u544a -->\n<ins class=\"adsbygoogle test\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-4541970754535576\"\n     data-ad-slot=\"5487611343\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n<p>\u4f59\u8ac7\u3067\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308c\u3070\u305d\u306e\u6642\u9593\u306b\u518d\u8d77\u52d5\u3068\u304b\u3082\u3067\u304d\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plane\"><code>1 4 * * * reboot<\/code><\/pre><\/div>\n\n\n\n<p>*\u306f\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3068\u8a00\u3063\u3066\u306a\u3093\u3067\u3082\u3088\u3044\u3053\u3068\u3092\u793a\u3057\u307e\u3059\uff08\u53b3\u5bc6\u306b\u306f\u9055\u3044\u307e\u3059\u304ccron\u3067\u306f\u305d\u3046\u3044\u3046\u610f\u5473\u3060\u3068\u601d\u3063\u3066\u304f\u3060\u3055\u3044\uff09\u3002\u306a\u306e\u3067\u300c\u5348\u524d4\u66421\u5206\u6bce\u65e5&#8221;reboot&#8221;\u300d\u3092\u5b9f\u884c\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306d\u3002\u975e\u5e38\u306b\u4fbf\u5229\u306a\u3082\u306e\u306a\u306e\u3067\u3088\u3051\u308c\u3070\u899a\u3048\u3066\u3044\u3066\u304f\u3060\u3055\u3044\u3002Linux\u306a\u3089\u5168\u822c\u4f7f\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3067\u8a2d\u5b9a\u307e\u308f\u308a\u306f\u7d42\u308f\u308a\u306a\u306e\u3067\u6700\u5f8c\u306b\u3001WordPress\u306e\u8a2d\u5b9a\u3060\u3051\u3057\u3066\u7d42\u308f\u308a\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u7ba1\u7406\u753b\u9762\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u30ea\u30f3\u30af\u306e\u8a2d\u5b9a\u3092\u3089\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3053\u3067WordPress\u30a2\u30c9\u30ec\u30b9\u3068\u30b5\u30a4\u30c8\u30a2\u30c9\u30ec\u30b9\u306e\u5148\u982d\u3092https:\/\/\u306b\u5909\u3048\u307e\u3057\u3087\u3046<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"627\" height=\"100\" src=\"https:\/\/thunsukevpn.clear-net.jp\/wp-content\/uploads\/2020\/07\/changetohttps.png\" alt=\"\" class=\"wp-image-67\" srcset=\"https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2020\/07\/changetohttps.png 627w, https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2020\/07\/changetohttps-300x48.png 300w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><figcaption>\u3053\u306e\u30da\u30fc\u30b8\u3067https:\/\/\u306e\u5f62\u306b\u5909\u66f4\u3057\u307e\u3057\u3087\u3046<\/figcaption><\/figure>\n\n\n\n<p>\u3053\u308c\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u305f\u3089\u304a\u3057\u307e\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"613\" height=\"100\" src=\"https:\/\/thunsukevpn.clear-net.jp\/wp-content\/uploads\/2020\/07\/changetohttps2.png\" alt=\"\" class=\"wp-image-69\" srcset=\"https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2020\/07\/changetohttps2.png 613w, https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2020\/07\/changetohttps2-300x49.png 300w\" sizes=\"auto, (max-width: 613px) 100vw, 613px\" \/><figcaption>\u3053\u308c\u3067\u7d42\u308f\u308a\uff01<\/figcaption><\/figure>\n\n\n\n<p>\u8aac\u660e\u304c\u9577\u3081\u3067\u3057\u305f\u304c\u3001\u5de5\u7a0b\u306f\u5c11\u306a\u3044\u306e\u3067\u7c21\u5358\u3067\u3059\u3002\u304a\u75b2\u308c\u3055\u307e\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3067WordPress\u3067\u30d6\u30ed\u30b0\u3092\u66f8\u304d\u59cb\u3081\u308b\u6e96\u5099\u304c\u5168\u3066\u7d42\u308f\u3063\u305f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3088\u3044\u30d6\u30ed\u30b0\u30e9\u30a4\u30d5\u3092\u3002<\/p>\n\n\n<style>\n.test { width: 320px; height: 100px; }\n@media(min-width: 500px) { .test { width: 468px; height: 60px; } }\n@media(min-width: 800px) { .test { width: 728px; height: 90px; } }\n<\/style>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4541970754535576\"\n     crossorigin=\"anonymous\"><\/script>\n<!-- \u3044\u3064\u3082\u306e\u6b63\u65b9\u5f62\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30eb\u5e83\u544a -->\n<ins class=\"adsbygoogle test\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-4541970754535576\"\n     data-ad-slot=\"5487611343\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>","protected":false},"excerpt":{"rendered":"<p>\u65e9\u901f\u3067\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u30bf\u30a4\u30c8\u30eb\u306b\u3042\u308b\u901a\u308aRaspberry Pi \u306b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305fWordPress\u306e\u30b5\u30a4\u30c8\u306eHTTPS\u5316\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002 \u66f8\u304d\u65b9\u3092\u5bb9\u6613\u306b\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u96e3\u3057\u304f\u66f8\u3044\u3066\u3082\u308f\u304b\u3089\u306b\u304f\u3044\u306e\u3068\u3001&hellip; <a class=\"more-link\" href=\"https:\/\/www.thun-techblog.com\/index.php\/blog\/raspberry-pi-wordpress-https\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Raspberry Pi + WordPress \u306eHTTPS\u5316(Let&#8217;s Encrypt)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,16],"tags":[],"class_list":["post-52","post","type-post","status-publish","format-standard","hentry","category-linux","category-raspberry-pi","entry"],"_links":{"self":[{"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":12,"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/posts\/52\/revisions"}],"predecessor-version":[{"id":711,"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/posts\/52\/revisions\/711"}],"wp:attachment":[{"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}