{"id":389,"date":"2017-09-30T20:46:02","date_gmt":"2017-09-30T11:46:02","guid":{"rendered":"https:\/\/www.oqiita.com\/?p=389"},"modified":"2018-06-16T16:34:43","modified_gmt":"2018-06-16T07:34:43","slug":"post-389","status":"publish","type":"post","link":"https:\/\/www.oqiita.com\/?p=389","title":{"rendered":"\u3010KUSANAGI\u3011SSL\u5bfe\u5fdc\u3057\u307e\u3057\u305f"},"content":{"rendered":"<p>Blog\u3092SSL\u5bfe\u5fdc\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u307e\u3041\u6700\u521d\u304b\u3089\u3084\u308c\u3063\u3066\u8a71\u306a\u3093\u3067\u3059\u304c\u306d\uff57<\/p>\n<p>\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u305f\u8a18\u4e8b\u3002<br \/>\n  <a class=\"reference table\" href=\"http:\/\/sakuravps.hajimete-guide.com\/entry\/ssl\" target=\"_blank\" rel=\"noopener noreferrer\"><br \/>\n    <span class=\"tbcell refttl\">\u53c2\u8003<\/span><br \/>\n    <span class=\"tbcell refcite\">KUSANAGI\u306eSSL\u306e\u8a2d\u5b9a<span>\u306f\u3058\u3081\u3066\u306e\u3055\u304f\u3089VPS<\/span><\/span><br \/>\n  <\/a><br \/>\n\u307b\u307c\u4e0a\u8a18\u30da\u30fc\u30b8\u901a\u308a\u3067\u554f\u984c\u7121\u3044\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u306fSSH\u3067\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u25a0\u30eb\u30fc\u30c8\u6a29\u9650<\/p>\n<pre class=\"command-line\" data-prompt=\"[kusanagi@999-99-999-999 ~]$\"><code class=\"language-bash\">su<\/code><\/pre>\n<p>\u203b\u30eb\u30fc\u30c8\u6a29\u9650\u3058\u3083\u306a\u3044\u3068ssl\u30b3\u30de\u30f3\u30c9\u304c\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u25a0SSL\u306e\u8a2d\u5b9a<\/p>\n<pre class=\"command-line\" data-prompt=\"[root@999-99-999-999 kusanagi]#\"><code class=\"language-bash\">kusanagi ssl --email \u3010\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3011 \u3010\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d\u3011<\/code><\/pre>\n<p>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\uff1a\u81ea\u5206\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<br \/>\n\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d\uff1a\/home\/kusanagi\/\u25cb\u25cb\u25cb\u2190\u3053\u306e\u90e8\u5206\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d<\/p>\n<p>\u25a0HTTP \u2192 HTTPS\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/p>\n<pre class=\"command-line\" data-prompt=\"[root@999-99-999-999 kusanagi]#\"><code class=\"language-bash\">kusanagi ssl --https redirect \u3010\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d\u3011<\/code><\/pre>\n<p>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u89e3\u9664\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b<\/p>\n<pre class=\"command-line\" data-prompt=\"[root@999-99-999-999 kusanagi]#\"><code class=\"language-bash\">kusanagi ssl --https noredirect \u3010\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d\u3011<\/code><\/pre>\n<p>\u25a0\u8a3c\u660e\u66f8\u306e\u81ea\u52d5\u66f4\u65b0<\/p>\n<pre class=\"command-line\" data-prompt=\"[root@999-99-999-999 kusanagi]#\"><code class=\"language-bash\">kusanagi ssl --auto on \u3010\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d\u3011<\/code><\/pre>\n<hr>\n<p>\u30c8\u30e9\u30d6\u3063\u305f\u70b9<br \/>\nSSL\u3092\u8a2d\u5b9a\u3057\u305f\u3042\u3068\u306b\u30b5\u30a4\u30c8\u3092\u78ba\u8a8d\u3057\u305f\u3089\u3001<br \/>\n\u753b\u50cf\u7cfb\u304c\u5168\u3066\u6d88\u3048\u3066\u307e\u3057\u305f\u3002<\/p>\n<p>WordPress\u3067\u30b5\u30a4\u30c8URL\u3092\u8a2d\u5b9a\u3059\u308b\u90e8\u5206\u3067<br \/>\n\u300chttps:\/\/www.oqiita.com\/\u300d\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067<br \/>\n\u300chttps:\/\/www.oqiita.com\/\u300d\u306b\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u72b6\u614b\u3067https\u3067\u30a2\u30af\u30bb\u30b9\u3092\u3057\u305f\u3089\u8a3c\u660e\u66f8\u304c\u6709\u52b9\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u3067\u307e\u3057\u305f\uff57<\/p>\n<p>\u8abf\u3079\u305f\u7d50\u679c\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u306b\u305f\u3069\u308a\u7740\u304d\u307e\u3057\u305f\u3002<br \/>\n  <a class=\"reference table\" href=\"https:\/\/teratail.com\/questions\/64732\" target=\"_blank\" rel=\"noopener noreferrer\"><br \/>\n    <span class=\"tbcell refttl\">\u53c2\u8003<\/span><br \/>\n    <span class=\"tbcell refcite\">HTTPS \u2013 \u81ea\u5df1\u8a3c\u660e\u66f8\u306b\u3088\u308bCertificate Error\u306e\u89e3\u6d88\u65b9\u6cd5(64732)<span>teratail<\/span><\/span><br \/>\n  <\/a><br \/>\n\/etc\/nginx\/conf.d \u306e\u76f4\u4e0b\u306b\u4e0d\u8981\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre class=\"command-line\" data-prompt=\"[root@999-99-999-999 conf.d]#\" data-output=\"2-9\"><code class=\"language-bash\">ll\n\u5408\u8a0828\n-rw-r--r--  1 root root  347  9\u6708 13 17:12 _http.conf\n-rw-r--r--  1 root root  657  9\u6708 13 17:12 _ssl.conf\n-rw-r--r--. 1 root root  347 10\u6708 10  2015 http.conf\n-rw-r--r--  1 root root 3183  9\u6708 30 18:45 \u3010\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d\u3011_http.conf\n-rw-r--r--  1 root root 4489  9\u6708 30 18:37 \u3010\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d\u3011_ssl.conf\n-rw-r--r--. 1 root root  657 10\u6708 10  2015 ssl.conf\n<\/code><\/pre>\n<p>\u3053\u306ehttp.conf\u3001ssl.conf\u304c\u90aa\u9b54\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u524a\u9664\uff08\u672c\u5f53\u306f\u79fb\u52d5\uff09\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"command-line\" data-prompt=\"[root@999-99-999-999 conf.d]#\"><code class=\"language-bash\">#\u524a\u9664\nrm http.conf\nrm ssl.conf\n<\/code><\/pre>\n<pre class=\"command-line\" data-prompt=\"[root@999-99-999-999 conf.d]#\"><code class=\"language-bash\">#\u79fb\u52d5\nmv http.conf \/home\/\u3010\u30e6\u30fc\u30b6\u30fc\u540d\u3011\/\nmv ssl.conf \/home\/\u3010\u30e6\u30fc\u30b6\u30fc\u540d\u3011\/\n<\/code><\/pre>\n<hr>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u6211\u304c\u30d6\u30ed\u30b0\u3082HTTPS\u5bfe\u5fdc\u3044\u305f\u3057\u307e\u3057\u305f( \uff9f\u0414\uff9f\uff89\uff89\u201d\u2606\uff8a\uff9f\uff81\uff8a\uff9f\uff81\uff8a\uff9f\uff81\uff8a\uff9f\uff81<br \/>\n\u3055\u3089\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3082\u8a2d\u5b9a\u3057\u305f\u306e\u3067<br \/>\n\u5b9a\u671f\u7684\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u308b\u306e\u3067\u30d6\u30ed\u30b0\u304c\u58ca\u308c\u3066\u3082\u306a\u3093\u3068\u304b\u5fa9\u65e7\u3067\u304d\u305d\u3046\u3067\u3059\u3002<br \/>\n\uff08\u672c\u5f53\u306b\u58ca\u308c\u305f\u3089\u6ce3\u304f\u3068\u601d\u3046\u3051\u3069\uff57\uff09<\/p>\n<p>\u4ee5\u4e0a<\/p>\n<p>kusanagi \u30b3\u30de\u30f3\u30c9 \u53c2\u8003URL<br \/>\n  <a class=\"reference table\" href=\"https:\/\/kusanagi.tokyo\/document\/command\/\" target=\"_blank\" rel=\"noopener noreferrer\"><br \/>\n    <span class=\"tbcell refttl\">\u53c2\u8003<\/span><br \/>\n    <span class=\"tbcell refcite\">KUSANAGI\u30b3\u30de\u30f3\u30c9<span>KUSANAGI<\/span><\/span><br \/>\n  <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Blog\u3092SSL\u5bfe\u5fdc\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":724,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[14],"tags":[65,64,16,63,15,66],"class_list":{"0":"post-389","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-wordpress","8":"tag-http","9":"tag-https","10":"tag-kusanagi","11":"tag-ssl","12":"tag-wordpress","13":"tag-66","14":"entry"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.oqiita.com\/wp-content\/uploads\/2018\/05\/sango_kusanagi_icatch2.png","jetpack_shortlink":"https:\/\/wp.me\/p8QluP-6h","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.oqiita.com\/index.php?rest_route=\/wp\/v2\/posts\/389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oqiita.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oqiita.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oqiita.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oqiita.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=389"}],"version-history":[{"count":5,"href":"https:\/\/www.oqiita.com\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions"}],"predecessor-version":[{"id":901,"href":"https:\/\/www.oqiita.com\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions\/901"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.oqiita.com\/index.php?rest_route=\/wp\/v2\/media\/724"}],"wp:attachment":[{"href":"https:\/\/www.oqiita.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oqiita.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oqiita.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}