{"id":2429,"date":"2024-10-31T18:03:32","date_gmt":"2024-10-31T09:03:32","guid":{"rendered":"http:\/\/blog.moramcnt.com\/?p=2429"},"modified":"2024-10-31T18:03:32","modified_gmt":"2024-10-31T09:03:32","slug":"%ed%81%ac%eb%a1%a0%ec%9d%84-%ec%9d%b4%ec%9a%a9%ed%95%98%ec%97%ac-%eb%ac%b4%eb%a3%8c-ssl-%ec%9d%b8%ec%a6%9d%ec%84%9c-%ec%9e%90%eb%8f%99%ea%b0%b1%ec%8b%a0","status":"publish","type":"post","link":"http:\/\/blog.moramcnt.com\/?p=2429","title":{"rendered":"\ud06c\ub860\uc744 \uc774\uc6a9\ud558\uc5ec \ubb34\ub8cc SSL \uc778\uc99d\uc11c \uc790\ub3d9\uac31\uc2e0"},"content":{"rendered":"<p><b>I. \ubaa9\ud45c<\/b><\/p>\n<p style=\"padding-left: 40px;\">Let&#8217;s Encrypt\uc5d0\uc11c \uc81c\uacf5\ud558\uace0 \uc788\ub294 \ubb34\ub8cc SSL \uc778\uc99d\uc11c\ub97c 3\uac1c\uc6d4\uc5d0 \ud55c\ubc88\uc529 \uc790\ub3d9\uc73c\ub85c \uac31\uc2e0\ud560\uc218 \uc788\ub294 \ubc29\ubc95\uc744 \uc5f0\uad6c\ud55c\ub2e4.<\/p>\n<p><b>II. \uc5f0\uad6c<\/b> <b>\ubc0f<\/b> <b>\uac1c\ubc1c\ub0b4\uc6a9<\/b><\/p>\n<p><b>1. \ud06c\ub860\uc744<\/b> <b>\uc774\uc6a9\ud55c<\/b><b> \uc778\uc99d\uc11c <\/b><b>\uc790\ub3d9\uac31\uc2e0<\/b><\/p>\n<p style=\"padding-left: 40px;\">1) \uc778\uc99d\uc11c \ub9cc\ub8cc\uc77c \ud655\uc778\ubc29\ubc95<\/p>\n<p style=\"padding-left: 80px;\">\u00a0certbot certificates<\/p>\n<p style=\"padding-left: 80px;\">Saving debug log to \/var\/log\/letsencrypt\/letsencrypt.log<\/p>\n<p style=\"padding-left: 80px;\">\n<p style=\"padding-left: 80px;\">&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<\/p>\n<p style=\"padding-left: 80px;\">Found the following certs:<\/p>\n<p style=\"padding-left: 80px;\">\u00a0 Certificate Name: odc.mbizok.com<\/p>\n<p style=\"padding-left: 80px;\">\u00a0\u00a0\u00a0 Domains: odc.mbizok.com<\/p>\n<p style=\"padding-left: 80px;\">\u00a0\u00a0\u00a0 Expiry Date: 2021-03-19 06:01:45+00:00 (VALID: 88 days)<\/p>\n<p style=\"padding-left: 80px;\">\u00a0\u00a0\u00a0 Certificate Path: \/etc\/letsencrypt\/live\/odc.mbizok.com\/fullchain.pem<\/p>\n<p style=\"padding-left: 80px;\">\u00a0\u00a0\u00a0 Private Key Path: \/etc\/letsencrypt\/live\/odc.mbizok.com\/privkey.pem<\/p>\n<p style=\"padding-left: 80px;\">&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 40px;\">2) \ud06c\ub860\uc5d0 \ub4f1\ub85d : \ub9e4\uc6d4 19\uc77c \ub9c8\ub2e4 01\uc2dc\uc5d0 \uac31\uc2e0 \ucc98\ub9ac\ud558\uace0 \uc544\ud30c\uce58\ub97c \uc7ac\uc2dc\uc791<\/p>\n<p style=\"padding-left: 80px;\">crontab -e<\/p>\n<p style=\"padding-left: 80px;\">0 1 19 * * \/usr\/bin\/certbot renew &#8211;renew-hook=&#8221;sudo service apache2 restart&#8221;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><b>2. \ud06c\ub860\uc744 \uc774\uc6a9\ud558\uc5ec \uc11c\ubc84\uc778\uc99d\uc11c \uc0dd\uc131<\/b><\/p>\n<p style=\"padding-left: 40px;\">\uc704\uc5d0\uc11c \uc0dd\uc131\ub41c \uc778\uc99d\uc11c\ub97c \uc774\uc6a9\ud558\uc5ec \uc2a4\ud504\ub9c1\ubd80\ud2b8\uc5d0\uc11c \uc0ac\uc6a9\ub420 \uc11c\ubc84\uc778\uc99d\uc11c\ub97c \uc8fc\uae30\uc801\uc73c\ub85c\uc0dd\uc131\ud574\ub193\ub294\ub2e4.<\/p>\n<p style=\"padding-left: 40px;\">0 1 19 * * \/etc\/letsencrypt\/live\/odc.mbizok.com\/makeKeyStore.sh<\/p>\n<p style=\"padding-left: 40px;\">\n<p style=\"padding-left: 40px;\">\uc544\ub798\ub294 makeKeyStore.sh\uc73c \ub0b4\uc6a9\uc73c\ub85c \uc11c\ubc84\uc778\uc99d\uc11c\ub97c \/home\/cinema\/Service\/Keystore \ud3f4\ub354\uc5d0 \uc0dd\uc131\ud55c\ub2e4.<\/p>\n<table style=\"width: 100%; margin-left: 40px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>\u00a0#!\/bin\/bash<\/p>\n<p># \uc790\ubc14\uc5d0\uc11c \uc4f8\uc218 \uc788\ub3c4\ub85d keysore.p12\ub85c \ubcc0\ud654<\/p>\n<p>openssl pkcs12 -export -in fullchain.pem -inkey privkey.pem -out cinema.pkcs12 -name cinema -CAfile chain.pem -caname root -password pass:odckorea<\/p>\n<p>mv cinema.pkcs12 \/home\/cinema\/Service\/Keystore<\/p>\n<p>chown cinema:cinema \/home\/cinema\/Service\/Keystore\/cinema.pkcs12<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>3. \uc2a4\ud504\ub9c1\ubd80\ud2b8\uc758 \uac8c\uc774\ud2b8\uc6e8\uc774\uc11c\ubc84\uc5d0 application.yml\uc5d0\uc11c\ub294 \uc544\ub798\uc640 \uac19\uc774 \ucc38\uc870\ud560\uc218 \uc788\uac8c \ud558\uc600\ub2e4.<\/p>\n<table style=\"width: 100%; margin-left: 40px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>server:<\/p>\n<p>port: 7001<\/p>\n<p>ssl:<\/p>\n<p>key-store : &#8220;file:\/home\/cinema\/Service\/Keystore\/cinema.pkcs12&#8221;<\/p>\n<p>key-store-type: PKCS12<\/p>\n<p>key-store-password : &#8220;odckorea&#8221;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>III. \uacb0\ub860<\/strong><\/p>\n<p>3\ub2ec\uc5d0 \ud55c\ubc88\uc529 \uc778\uc99d\uc11c\ub97c \uc218\ub3d9\uc73c\ub85c \uc5c5\ub370\uc774\ud2b8 \ud574\uc57c \ub418\ubbc0\ub85c, \ubd88\ud3b8\ud55c\uc810\uc774 \ub9ce\uc558\ub294\ub370 \uc790\ub3d9\uc73c\ub85c \ud560\uc218 \uc788\uc5b4 \ud55c\uacb0 \ub9c8\uc74c\uc774 \ud3b8\ud574\uc84c\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I. \ubaa9\ud45c Let&#8217;s Encrypt\uc5d0\uc11c \uc81c\uacf5\ud558\uace0 \uc788\ub294 \ubb34\ub8cc SSL \uc778\uc99d\uc11c\ub97c 3\uac1c\uc6d4\uc5d0 \ud55c\ubc88\uc529 \uc790\ub3d9\uc73c\ub85c \uac31\uc2e0\ud560\uc218 \uc788\ub294 \ubc29\ubc95\uc744 \uc5f0\uad6c\ud55c\ub2e4. II. \uc5f0\uad6c \ubc0f \uac1c\ubc1c\ub0b4\uc6a9 1. \ud06c\ub860\uc744 \uc774\uc6a9\ud55c \uc778\uc99d\uc11c \uc790\ub3d9\uac31\uc2e0 1) \uc778\uc99d\uc11c \ub9cc\ub8cc\uc77c \ud655\uc778\ubc29\ubc95 \u00a0certbot certificates Saving debug log to \/var\/log\/letsencrypt\/letsencrypt.log &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[31,49],"tags":[304,306,305],"class_list":["post-2429","post","type-post","status-publish","format-standard","hentry","category-31","category-unix","tag--ssl-","tag-306","tag-305"],"_links":{"self":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2429"}],"version-history":[{"count":1,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2429\/revisions"}],"predecessor-version":[{"id":2430,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2429\/revisions\/2430"}],"wp:attachment":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2429"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}