{"id":337,"date":"2017-01-28T19:38:58","date_gmt":"2017-01-28T10:38:58","guid":{"rendered":"https:\/\/blog.chanha.me\/?p=337"},"modified":"2017-04-05T19:25:17","modified_gmt":"2017-04-05T10:25:17","slug":"httpsssl%ec%84%a4%ec%a0%95-%eb%b0%8f-http-%eb%a6%ac%eb%8b%a4%ec%9d%b4%eb%a0%89%ed%8a%b8%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/blog.chanha.kr\/?p=337","title":{"rendered":"HTTPS(SSL)\uc124\uc815 \ubc0f HTTP \ub9ac\ub2e4\uc774\ub809\ud2b8\ud558\uae30"},"content":{"rendered":"<p>\uc55e\uc11c Apache2\ub85c \uc124\uc815\ud55c \uc0ac\uc774\ud2b8\ub4e4\uacfc \uc55e\uc73c\ub85c \uc124\uc815\ud560 \uc11c\ube44\uc2a4\ub4e4\uc758 \ubcf4\uc548\uc744 \uac15\ud654\uc2dc\ud0a4\uae30 \uc704\ud574\uc11c HTTPS\ub97c \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc88b\ub2e4.<\/p>\n<p>\uc774\ubc88\uc5d0\ub294\u00a0<a href=\"https:\/\/blog.outsider.ne.kr\/1178\" target=\"_blank\">Let\u2019s Encrypt<\/a>\ub77c\ub294 \ubb34\ub8cc SSL \uc81c\uacf5 \uc11c\ube44\uc2a4\ub97c \uc774\uc6a9\ud574 SSL\uc744 \uc124\uc815\ud558\ub294 \ubc29\ubc95\uacfc<\/p>\n<p>HTTP\ub85c \uc5f0\uacb0\uc2dc\uc5d0\ub3c4 HTTPS\ub85c \ub9ac\ub2e4\uc774\ub809\ud2b8 \uc2dc\ud0a4\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\ub3c4\ub85d \ud558\uaca0\ub2e4.<\/p>\n<p>\uc6b0\uc120\uc801\uc73c\ub85c git\uc5d0 \uc62c\ub77c\uac04 Let&#8217;s Encrypt\uc744 \ud074\ub860\ud558\uae30 \uc704\ud574\uc11c<\/p>\n<pre class=\"lang:sh decode:true\">sudo apt-get install git<\/pre>\n<p>\uba85\ub839\uc5b4\ub97c \ud1b5\ud574\uc11c git\uc744 \uc124\uce58\ud574\uc900\ub2e4.<\/p>\n<p>\uadf8 \ud6c4<\/p>\n<pre class=\"lang:sh decode:true\">git clone https:\/\/github.com\/letsencrypt\/letsencrypt\r\ncd letsencrypt\r\n.\/letsencrypt-auto<\/pre>\n<p>\uba85\ub839\uc5b4\ub97c \uc2e4\ud589\ud55c \ub4a4 \uc258\uc5d0 \ub098\uc624\ub294 \uc124\uba85\uc5d0 \ub530\ub77c \uc124\uc815\uc744 \ud574\uc8fc\uba74 \uc790\ub3d9\uc801\uc73c\ub85c HTTPS\uc124\uc815\uc774 \uc644\ub8cc\ub41c\ub2e4.<\/p>\n<figure id=\"attachment_338\" aria-describedby=\"caption-attachment-338\" style=\"width: 665px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blog.chanha.me\/wp-content\/uploads\/2017\/01\/ssl.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-338 size-full\" src=\"https:\/\/blog.chanha.me\/wp-content\/uploads\/2017\/01\/ssl.png\" width=\"665\" height=\"256\" srcset=\"https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/ssl.png 665w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/ssl-300x115.png 300w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/ssl-520x200.png 520w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/ssl-360x139.png 360w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/ssl-250x96.png 250w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/ssl-100x38.png 100w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/a><figcaption id=\"caption-attachment-338\" class=\"wp-caption-text\">&lt;HTTPS \uc120\ud0dd \ud654\uba74&gt;<\/figcaption><\/figure>\n<p>\uc704\uc640 \uac19\uc740 HTTPS \uc120\ud0dd\ud654\uba74\uacfc \ud568\uaed8 \ud604\uc7ac \ub4f1\ub85d\ub418\uc5b4\uc788\ub294 \ub3c4\uba54\uc778\uc774 \ubaa8\ub450 \ub098\uc624\ub294\ub370 \ube48\uce78\uc73c\ub85c \ub450\uace0 \uc5d4\ud130\ub97c \uce58\uac8c\ub418\uba74 \ubaa8\ub4e0 \ub3c4\uba54\uc778\uc744 HTTPS \uc124\uc815\ud574\uc900\ub2e4.<\/p>\n<p>\uc124\uc815\uc911\uc5d0 Easy\uc640 Secure\ub97c \uc120\ud0dd\ud558\ub294 \ud654\uba74\uc774 \ub098\uc624\ub294\ub370,<\/p>\n<p>Easy\ub294 HTTP\uc640 HTTPS \uc5f0\uacb0 \ubaa8\ub450\ub97c \ud5c8\uc6a9\ud558\ub294 \uac83\uc774\uace0, Secure\ub294 HTTPS \uc5f0\uacb0\ub9cc \ub418\ub3c4\ub85d \ud558\ub294 \uac83\uc774\ub2e4.<\/p>\n<p>\ud544\uc790\ub294 HTTP\ub85c \uc811\uc18d\uc2dc\uc5d0\ub3c4 HTTPS\ub85c \ub9ac\ub2e4\uc774\ub809\ud2b8\uc2dc\ud0ac \uac83\uc774\uae30 \ub54c\ubb38\uc5d0 \ud6c4\uc790\ub97c \uc120\ud0dd\ud588\ub2e4.<\/p>\n<pre class=\"lang:sh decode:true\">sudo \/etc\/init.d\/apache2 restart<\/pre>\n<p>\ub97c \ud1b5\ud574\uc11c Apache2\ub97c \uc7ac\uc2e4\ud589\ud55c \ud6c4, https:\/\/\ub3c4\uba54\uc778\uc8fc\uc18c\ub97c \uc785\ub825\ud574 \uc5f0\uacb0\uc774 \ub418\ub294\uc9c0 \ud655\uc778\ud55c \ub4a4 HTTP \ub9ac\ub2e4\uc774\ub809\ud2b8 \uc124\uc815\uc744 \ud574\uc900\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p>3\ub2ec \uc8fc\uae30\ub85c \uc790\ub3d9\uc801\uc73c\ub85c \uac31\uc2e0<\/p>\n<pre class=\"lang:sh decode:true\">30 5 1 *\/3 * &lt;letsencrypt\ud3f4\ub354 \uacbd\ub85c&gt;\/certbot-auto renew --quiet --no-self-upgrade<\/pre>\n<p>&nbsp;<\/p><\/blockquote>\n<p>Apach2 conf\ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uae30 \uc704\ud574<\/p>\n<pre class=\"lang:sh decode:true \">sudo vim \/etc\/apache2\/sites-available\/redirect.conf<\/pre>\n<p>\uba85\ub839\uc5b4\ub97c \ud1b5\ud574\uc11c conf\ud30c\uc77c\uc744 \uc0dd\uc131\ud574\uc900\ub2e4.<\/p>\n<p>\uadf8 \ud6c4<\/p>\n<pre class=\"lang:default decode:true\">&lt;VirtualHost *:80&gt;\r\n    ServerName &lt;\ub3c4\uba54\uc778 \uc8fc\uc18c&gt;\r\n    RewriteEngine On\r\n    RewriteCond %{HTTPS} off\r\n    RewriteRule (.*) https:\/\/%{HTTP_HOST}%{REQUEST_URI}\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>\ub97c \ud1b5\ud574 Redirect\uc124\uc815\uc744 \ud574\uc900\ub2e4.<\/p>\n<p>\ub3c4\uba54\uc778 \uc8fc\uc18c\uc5d0\ub294 \uc55e\uc11c \uc124\uc815\ud588\ub358 CNAME\uc744 \ud1b5\ud55c \uac00\uc0c1\ud638\uc2a4\ud2b8 \uc124\uc815\uc744 \ud588\ub358 \ub3c4\uba54\uc778\uc744 \uc785\ub825\ud558\uba74 \ub418\uace0,<\/p>\n<p>\ub9ac\ub2e4\uc774\ub809\ud2b8 \uc2dc\ud0a4\uace0\uc790 \ud558\ub294 \ub3c4\uba54\uc778\ub2f9 \ud558\ub098\uc529 \uc704\uc640 \uac19\uc740 \uc124\uc815\uc744 \uc544\ub798\uc640 \uac19\uc774 \uac19\uc740 \ud30c\uc77c\uc5d0 \ucd94\uac00 \ud574\uc8fc\uba74 \ub41c\ub2e4.<\/p>\n<figure id=\"attachment_339\" aria-describedby=\"caption-attachment-339\" style=\"width: 960px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blog.chanha.me\/wp-content\/uploads\/2017\/01\/redirect.png\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-339 size-full\" src=\"https:\/\/blog.chanha.me\/wp-content\/uploads\/2017\/01\/redirect.png\" width=\"960\" height=\"251\" srcset=\"https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/redirect.png 960w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/redirect-300x78.png 300w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/redirect-768x201.png 768w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/redirect-700x183.png 700w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/redirect-520x136.png 520w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/redirect-360x94.png 360w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/redirect-250x65.png 250w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/redirect-100x26.png 100w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><figcaption id=\"caption-attachment-339\" class=\"wp-caption-text\">&lt;Redirect.conf \ud30c\uc77c&gt;<\/figcaption><\/figure>\n<p>\uadf8 \ud6c4\uc5d0<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:sh decode:true\">sudo \/etc\/init.d\/apache2 restart<\/pre>\n<p>\ub97c \ud1b5\ud574\uc11c Apache2\ub97c \uc7ac\uc2e4\ud589\ud574\uc900\ub4a4 http\ub85c \uc5f0\uacb0\ud588\uc744\ub54c https\ub85c \ub9ac\ub2e4\uc774\ub809\ud2b8\ub418\ub294\uc9c0 \ud655\uc778\ud574\ubcf8\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<div class='ez_cc_license_block'><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\"><img decoding=\"async\" alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http:\/\/i.creativecommons.org\/l\/by-nc-sa\/4.0\/88x31.png\"\/><\/a><br\/>This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License<\/a>.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\uc55e\uc11c Apache2\ub85c \uc124\uc815\ud55c \uc0ac\uc774\ud2b8\ub4e4\uacfc \uc55e\uc73c\ub85c \uc124\uc815\ud560 \uc11c\ube44\uc2a4\ub4e4\uc758 \ubcf4\uc548\uc744 \uac15\ud654\uc2dc\ud0a4\uae30 \uc704\ud574\uc11c HTTPS\ub97c \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc88b\ub2e4. \uc774\ubc88\uc5d0\ub294\u00a0Let\u2019s Encrypt\ub77c\ub294 \ubb34\ub8cc SSL \uc81c\uacf5 \uc11c\ube44\uc2a4\ub97c \uc774\uc6a9\ud574 SSL\uc744 \uc124\uc815\ud558\ub294 \ubc29\ubc95\uacfc HTTP\ub85c \uc5f0\uacb0\uc2dc\uc5d0\ub3c4 HTTPS\ub85c \ub9ac\ub2e4\uc774\ub809\ud2b8 \uc2dc\ud0a4\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\ub3c4\ub85d \ud558\uaca0\ub2e4. \uc6b0\uc120\uc801\uc73c\ub85c git\uc5d0 \uc62c\ub77c\uac04 Let&#8217;s Encrypt\uc744 \ud074\ub860\ud558\uae30 \uc704\ud574\uc11c sudo apt-get install git \uba85\ub839\uc5b4\ub97c \ud1b5\ud574\uc11c git\uc744 \uc124\uce58\ud574\uc900\ub2e4. \uadf8 \ud6c4 git clone https:\/\/github.com\/letsencrypt\/letsencrypt cd letsencrypt .\/letsencrypt-auto \uba85\ub839\uc5b4\ub97c \uc2e4\ud589\ud55c \ub4a4 \uc258\uc5d0 \ub098\uc624\ub294 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-337","post","type-post","status-publish","format-standard","hentry","category-nas","clearfix"],"_links":{"self":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=337"}],"version-history":[{"count":7,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/337\/revisions"}],"predecessor-version":[{"id":475,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/337\/revisions\/475"}],"wp:attachment":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}