{"id":2329,"date":"2021-06-13T23:36:10","date_gmt":"2021-06-13T14:36:10","guid":{"rendered":"https:\/\/www.choco.org.uk\/chocodb\/?p=2329"},"modified":"2021-06-16T14:00:33","modified_gmt":"2021-06-16T05:00:33","slug":"nadesiko3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9%e3%81%9d%e3%81%ae%ef%bc%92","status":"publish","type":"post","link":"https:\/\/www.choco.org.uk\/chocodb\/?p=2329","title":{"rendered":"Nadesiko3\u30b5\u30fc\u30d0\u30fc\u306e\u4f5c\u308a\u65b9\u305d\u306e\uff12\u3010\u5931\u6557\u3011"},"content":{"rendered":"<h3>\u6b21\u306fSSL\u8a3c\u660e\u66f8\u3067\u3059\u3002<\/h3>\n<p>\u8a3c\u660e\u66f8\u306b\u306f\u7121\u6599\u3067\u304b\u3064\u5b9f\u7e3e\u304c\u8c4a\u5bcc\u306a\u300cLetsEncrypt\u300d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\uff08\u304a\u91d1\u304c\u4f59\u3063\u3066\u3044\u308b\u4eba\u306f\u6709\u6599\u3092\u304a\u30b9\u30b9\u30e1\u3057\u307e\u3059\u3002\uff09<\/p>\n<h3><strong><span style=\"color: #ff0000;\">\u2605\u3053\u3053\u3067\u307e\u3055\u304b\u306e\u30c9\u30cf\u30de\u308a\uff01\uff01<\/span><\/strong><\/h3>\n<p><span class=\"gp\">\uff1e<\/span>\u00a0<span class=\"nb\">cd<\/span> \/usr\/local<br \/>\n<span class=\"gp\">\uff1e<\/span>\u00a0git clone https:\/\/github.com\/certbot\/certbot<br \/>\n<span class=\"gp\">\uff1e<\/span>\u00a0<span class=\"nb\">cd <\/span>certbot<br \/>\n<span class=\"gp\">\uff1e<\/span>\u00a0.\/certbot-auto <span class=\"nt\">&#8211;help<\/span><\/p>\n<p>\u3053\u308c\u3067\u30d8\u30eb\u30d7\u304c\u8868\u793a\u3055\u308c\u308c\u3070\uff2f\uff2b\u3067\u3059\u3002<\/p>\n<p>\uff1e.\/certbot-auto certonly <span class=\"nt\">&#8211;standalone<\/span> <span class=\"nt\">-t<\/span><\/p>\n<p>\u3053\u3053\u304b\u3089\u5bfe\u8a71\u30e2\u30fc\u30c9\u3067\u3059\u3002\u3068\u8a00\u3044\u305f\u3044\u6240\u3067\u3059\u304c\u300cLetsEncrypt\u300d\u306e\u4ed5\u69d8\u304c\u5909\u308f\u3063\u305f\u306e\u304b<span style=\"color: #ff0000;\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u305b\u3093\uff01<\/span><br \/>\n\u51b7\u9759\u306b\u306a\u3063\u3066\u3001\u3044\u3063\u305f\u3093\u5165\u308c\u305f\u3082\u306e\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\uff08\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u6bce\u524a\u9664\u3057\u307e\u3059\u3002\uff09<\/p>\n<p>\uff1erm -Rf certbot\/<\/p>\n<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u3084\u308a\u65b9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/certbot.eff.org\/instructions\">Certbot &#8211; Certbot Instructions (eff.org)<\/a><\/p>\n<p>\u3084\u306f\u308a\u6700\u65b0\u7248\u306f\u5168\u7136\u9055\u3046\u3063\u30dd\u30a4\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\uff1eyum install epel-release<\/p>\n<p>snapd\u3092\u5165\u308c\u308d\u3068\u3042\u308b\u306e\u3067\u3001\u5165\u308c\u307e\u3059\u3002\uff08yum\u307f\u305f\u3044\u306a\u3082\u3093\u3067\u3059\u3002\uff09<br \/>\n\uff1eyum install snapd<\/p>\n<p>\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\uff1esystemctl <span class=\"hljs-built_in\">enable<\/span> &#8211;now snapd.socket<\/p>\n<p>\u30af\u30e9\u30b7\u30c3\u30af\u30b5\u30dd\u30fc\u30c8\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<br \/>\n\uff1eln -s \/var\/lib\/snapd\/snap \/snap<\/p>\n<p>\uff1esnap install core<br \/>\n\uff1esnap refresh core<\/p>\n<p>\u3067\u3001\u300ccertbot\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\uff1esnap install &#8211;classic certbot<\/p>\n<p>\u3084\u3063\u3068\u5165\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u300ccertbot\u300d\u306f\u30b3\u30b3\u3060\u3068\u6559\u3048\u3066\u3042\u3052\u307e\u3059\u3002<br \/>\n\uff1eln -s \/snap\/bin\/certbot \/usr\/bin\/certbot<\/p>\n<p>\u81ea\u52d5\u30e2\u30fc\u30c9<br \/>\n\uff1ecertbot &#8211;nginx<\/p>\n<p>\u624b\u52d5\u30e2\u30fc\u30c9\uff08\u7d30\u304b\u304f\u8abf\u6574\u53ef\u80fd\uff09<br \/>\n\uff1ecertbot certonly &#8211;nginx<\/p>\n<p>\u305d\u3057\u3066\u3001\u307e\u305f\u3082\u3084\u30a8\u30e9\u30fc\u3002\u3002\u3002\u3002\u3002<br \/>\n<span style=\"color: #ff00ff;\">The nginx plugin is not working; there may be problems with your existing configuration.<\/span><br \/>\n<span style=\"color: #ff00ff;\">The error was: NoInstallationError(&#8220;Could not find a usable &#8216;nginx&#8217; binary. Ensure nginx exists, the binary is executable, and your PATH is set correctly.&#8221;)<\/span><\/p>\n<p>\u300cSAKURA VPS\u300d\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3060\u3068\u6a19\u6e96\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u300cNGINX\u300d\u304c\u5165\u3063\u3066\u306a\u3044\u304b\u3089\uff1f\uff1f<br \/>\n\u3068\u306b\u304b\u304f\u30b3\u30a4\u30c4\u306f\u3001\u300cNGINX\u300d\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u53eb\u3093\u3067\u3044\u308b\u3002<\/p>\n<p>\uff1efind \/ -name nginx<\/p>\n<p>\/usr\/local\/src\/nginx-1.19.0\/objs\/nginx<br \/>\n\/usr\/local\/src\/nginx-1.19.0\/objs\/addon\/nginx<br \/>\n\/usr\/local\/src\/siteguard-server-edition-4.10-4.nginx.x86_64\/nginx<br \/>\n\/usr\/local\/nginx<br \/>\n<span style=\"color: #ff00ff;\">\/usr\/local\/nginx\/sbin\/nginx<\/span><br \/>\n\/opt\/jp-secure\/siteguardlite\/nginx<\/p>\n<p>\u3053\u306e\u7d50\u679c\u3092\u78ba\u8a8d\u3059\u308b\u3068\u5acc\u306a\u4e88\u611f\u304c\u3057\u307e\u3057\u305f\u3002<br \/>\n\u74b0\u5883\u5909\u6570\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\uff1ewhich eginx<br \/>\n\uff1eprintenv | more<\/p>\n<p>\u78ba\u8a8d\u3067\u304d\u305fPATH\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3057\u305f\u3002<br \/>\n\u3053\u308c\u3067\u306fNGINX\u3092\u898b\u3064\u3051\u308b\u4e8b\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u300cPATH=\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/var\/lib\/snapd\/snap\/bin:\/root\/bin\u300d<\/p>\n<p>PATH\u3092\u8ffd\u52a0\u3059\u308b\u4e8b\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff08\/home\/\u30e6\u30fc\u30b6\u30fc\u540d\/.bash_profile\uff09\u306b\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"nb\">export <\/span><span class=\"nv\">PATH<\/span><span class=\"o\">=<\/span><span class=\"nv\">$PATH<\/span>:\/usr\/local\/nginx\/sbin<\/p>\n<p>\u3055\u3066\u3001\u3044\u3063\u305f\u3093\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3066\u304b\u3089\u518d\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<br \/>\n<span style=\"color: #ff0000;\">\u3057\u304b\u3057\u540c\u3058\u30a8\u30e9\u30fc\u3002\u3002\u3002<\/span><\/p>\n<p>\u4eca\u5ea6\u306fcertbot\u30b3\u30de\u30f3\u30c9\u306b\u76f4\u63a5\u30d1\u30b9\u3092\u66f8\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\uff1ecertbot &#8211;nginx\u00a0&#8211;nginx-ctl \/usr\/local\/nginx\/sbin\/nginx<\/p>\n<p><span style=\"color: #ff00ff;\">Error while running \/usr\/local\/nginx\/sbin\/nginx -c \/etc\/nginx\/nginx.conf -t.<\/span><\/p>\n<p>\u4eca\u5ea6\u306f\u300cnginx.conf\u300d\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u53eb\u3093\u3067\u307e\u3059\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002<br \/>\n\u3069\u3053\u3060\u3088\u3001\u304a\u524d\uff08<\/p>\n<p>\u3053\u3053\u306b\u3044\u307e\u3057\u305f\u3002<br \/>\n\u300c\/usr\/local\/nginx\/conf\/nginx.conf\u300d<\/p>\n<p>\u5168\u7136\u9055\u3046\u3060\u308d\uff57<\/p>\n<p><span style=\"color: #ff0000;\">\u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3046\u306e\u306f\u65ad\u5ff5\u3057\u307e\u3057\u305f\u3002\uff08\u5fc3\u304c\u6298\u308c\u307e\u3057\u305f\uff09<\/span><br \/>\n<span style=\"color: #ff0000;\">LetsEncrypt\u306e\u6700\u65b0\u7248\u3092\u4f7f\u3046\u306e\u3082\u7121\u7406\u304c\u3042\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/span><\/p>\n<h3><strong><span style=\"color: #ff0000;\">\u3002\u3002\u3002\u7d9a\u304d\u307e\u305b\u3093\uff01<\/span><\/strong><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>\u6b21\u306fSSL\u8a3c\u660e\u66f8\u3067\u3059\u3002 \u8a3c\u660e\u66f8\u306b\u306f\u7121\u6599\u3067\u304b\u3064\u5b9f\u7e3e\u304c\u8c4a\u5bcc\u306a\u300cLetsEncrypt\u300d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\uff08\u304a\u91d1\u304c\u4f59\u3063\u3066\u3044\u308b\u4eba\u306f\u6709\u6599\u3092\u304a\u30b9\u30b9\u30e1\u3057\u307e\u3059\u3002\uff09 \u2605\u3053\u3053\u3067\u307e\u3055\u304b\u306e\u30c9\u30cf\u30de\u308a\uff01\uff01 \uff1e\u00a0cd \/usr\/local \uff1e\u00a0git c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[103,39],"tags":[165,164,163,161,83,162,62],"class_list":["post-2329","post","type-post","status-publish","format-standard","hentry","category-nadesiko3","category-server","tag-certbot","tag-letsencrypt","tag-nginx","tag-sakura","tag-ssl","tag-vps","tag-62"],"_links":{"self":[{"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=\/wp\/v2\/posts\/2329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2329"}],"version-history":[{"count":39,"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=\/wp\/v2\/posts\/2329\/revisions"}],"predecessor-version":[{"id":2389,"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=\/wp\/v2\/posts\/2329\/revisions\/2389"}],"wp:attachment":[{"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}