{"id":251,"date":"2024-03-01T14:16:17","date_gmt":"2024-03-01T14:16:17","guid":{"rendered":"http:\/\/www.freelifemakers.org\/wordpress\/?p=251"},"modified":"2024-03-04T21:11:51","modified_gmt":"2024-03-04T21:11:51","slug":"setting-up-ssl-for-apache-lets-encrypt","status":"publish","type":"post","link":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/2024\/03\/01\/setting-up-ssl-for-apache-lets-encrypt\/","title":{"rendered":"Apache\uc5d0\uc11c SSL\uc124\uc815 \ud558\uae30(Setting up SSL for Apache )-Let&#8217;s Encrypt"},"content":{"rendered":"\n<p>Let&#8217;s Encrypt\ub294 \ubb34\ub8cc\ub85c \uc0ac\uc6a9\uac00\ub2a5\ud55c SSL \uc778\uc99d\uc11c \uc785\ub2c8\ub2e4.<br>SSL\uc778\uc99d\uc774\ub780 \uc6f9\uc0ac\uc774\ud2b8\uc640 \uc6f9\uc11c\ubc84 \uc0ac\uc774\uc758 \ub370\uc774\ud130\ub97c \uc554\ud638\ud654 \ud558\ub294 \uae30\uc220\uc785\ub2c8\ub2e4. <br>\uc27d\uac8c \uc598\uae30\ud574\uc11c \uc6b0\ub9ac\uac00 \uc778\ud130\ub137\uc5d0 \uc811\uc18d\ud560\ub54c  http:\/\/\ud504\ub85c\ud1a0\ucf5c\uc744 https:\/\/\ud504\ub85c\ud1a0\ucf5c\ub85c \ubc14\uafd4\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \uac83\uc774\ub77c\uace0 \uc0dd\uac01\ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.<br>\uba3c\uc800 Apache\ub294 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4.<br><br>Let&#8217;s Encrypt is a free SSL certificate. <br>SSL authentication is a technology that encrypts data between a website and a web server.<br>To put it simply, you can think of it as something that allows us to change the &#8220;http:\/\/&#8221; protocol to &#8220;https:\/\/&#8221; protocol when we access the Internet.<br>First,  Apache must be installed.<br><br>\uc124\uc815 \uc21c\uc11c\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.The setup sequence is as follows:<br><\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p>1.Certbot\uc124\uce58 <br>(Certbot instatll)<br>2.\uc6f9\uc11c\ubc84 \uc124\uc815 \ubc0f \uc7ac\uc2dc\uc791 <br>(Set up and restart web server)<br>3.\uc778\uc99d\uc11c\ubc1b\uae30<br>(Get a certificate)<br>4.\uc124\uc815\ud655\uc778<br>(Check settings)<\/p><\/blockquote><\/figure>\n\n\n\n<p><br><\/p>\n\n\n\n<p><strong>1.Certbot\uc124\uce58<\/strong> (Certbot install)<br>-SSL\uc778\uc99d\uc744 \uc704\ud55c certbot\uc124\uce58<br><strong>#sudo apt-get update<br>#sudo apt-get install certbot<\/strong><\/p>\n\n\n\n<p><strong>2.\uc6f9\uc11c\ubc84 \uc124\uc815 \ubc0f \uc7ac\uc2dc\uc791<\/strong>(Set up and restart web server)<br>\/etc\/apache2\/sites-available\/ \ub514\ub809\ud1a0\ub9ac\uc5d0 domain name \ud30c\uc77c\uc744 \ub9cc\ub4ed\ub2c8\ub2e4<br>\uc800 \uac19\uc740 \uacbd\uc6b0\ub294 \/etc\/apache2\/sites-available\ub514\ub809\ud1a0\ub9ac \ubc11\uc5d0 freelifemakers.org.conf\ud30c\uc77c\uc744 \ub9cc\ub4ed\ub2c8\ub2e4.<br><br>Create a domain name file in the \/etc\/apache2\/sites-available\/ directory.<br>In my case, I create a freelifemakers.org.conf file under the \/etc\/apache2\/sites-available directory.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"688\" height=\"91\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/03\/apacheLS.png\" alt=\"\" class=\"wp-image-258\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/03\/apacheLS.png 688w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/03\/apacheLS-300x40.png 300w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/figure>\n\n\n\n<p>1)freelifemakers.org.conf\ud30c\uc77c \uc124\uc815(freelifemakers.org.conf file settings)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;VirtualHost *:80&gt;\n\nServerAdmin ubuntu@freelifemakers.org\n\nServerName freelifemakers.org\nServerAlias www.freelifemakers.org\nDocumentRoot \/var\/www\/html\/\n\n&lt;Directory \/var\/www\/html\/&gt;\n        Options Indexes FollowSymLinks\n        AllowOverride All\n        Require all granted\n&lt;\/Directory&gt;\n\nErrorLog ${APACHE_LOG_DIR}\/freelifemakers.org_error.log\nCustomLog ${APACHE_LOG_DIR}\/freelifemakers.org_access.log combined\n\n&lt;\/VirtualHost&gt;<\/pre>\n\n\n\n<p>2)Apache\ub97c \uc7ac\uc2dc\uc791\ud569\ub2c8\ub2e4.(restart apache)<br>#service apache2 restart<\/p>\n\n\n\n<p><strong>3.\uc778\uc99d\uc11c \ubc1b\uae30(Get a certificate)<\/strong><br>-\uc544\ub798\uc758 \uba85\ub839\uc5b4\ub97c \uc2e4\ud589\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \uc2e4\ud589 \ub418\uba70 \uc801\uc808\ud55c \ub2f5\ubcc0\uc744 \ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.<br>If you run the command below, it will run as follows and you can respond appropriately.<br><br><strong>#sudo certbot &#8212;apache<\/strong><br><br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Saving debug log to \/var\/log\/letsencrypt\/letsencrypt.log\nEnter email address (used for urgent renewal and security notices)\n (Enter 'c' to cancel): <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-orange-color\">ID@your-domain.com<\/mark>\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nPlease read the Terms of Service at\nhttps:\/\/letsencrypt.org\/documents\/LE-SA-v1.3-September-21-2022.pdf. You must\nagree in order to register with the ACME server. Do you agree?\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n(Y)es\/(N)o: <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-orange-color\">Y<\/mark>\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nWould you be willing, once your first certificate is successfully issued, to\nshare your email address with the Electronic Frontier Foundation, a founding\npartner of the Let's Encrypt project and the non-profit organization that\ndevelops Certbot? We'd like to send you email about our work encrypting the web,\nEFF news, campaigns, and ways to support digital freedom.\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n(Y)es\/(N)o: <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-orange-color\">N<\/mark>\n\nAccount registered.\n\nWhich names would you like to activate HTTPS for?\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n1: your-domain.com\n2: www.your-domain.com\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nSelect the appropriate numbers separated by commas and\/or spaces, or leave input\nblank to select all options shown (Enter 'c' to cancel):<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-orange-color\">1 or 2<\/mark>\n\n<\/pre>\n\n\n\n<p><strong>4.\uc124\uc815\ud655\uc778(Check settings)<\/strong><\/p>\n\n\n\n<p>1)\uc124\uce58 \uc644\ub8cc \uba54\uc138\uc9c0(Installation completion message)<br>\uc544\ub798\ub294 freelifemakers.org\uc758 \uba54\uc138\uc9c0\uc785\ub2c8\ub2e4.<br>Below is a message from freelifemakers.org<br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">IMPORTANT NOTES:\n - Congratulations! Your certificate and chain have been saved at:\n   \/etc\/letsencrypt\/live\/freelifemakers.org\/fullchain.pem\n   Your key file has been saved at:\n   \/etc\/letsencrypt\/live\/freelifemakers.org\/privkey.pem\n   Your cert will expire on 2024-05-30. To obtain a new or tweaked\n   version of this certificate in the future, simply run certbot again\n   with the \"certonly\" option. To non-interactively renew *all* of\n   your certificates, run \"certbot renew\"\n - If you like Certbot, please consider supporting our work by:\n\n   Donating to ISRG \/ Let's Encrypt:   https:\/\/letsencrypt.org\/donate\n   Donating to EFF:                    https:\/\/eff.org\/donate-le<\/pre>\n\n\n\n<p>2)\uc811\uc18d\ud655\uc778(Check connection)<br>https:\/\/yourdomain.com\uc73c\ub85c \uc811\uc18d\uc774 \ub418\ub294\uc9c0 \ud655\uc778 \ud569\ub2c8\ub2e4.<br>Check if you can access https:\/\/yourdomain.com.<\/p>\n\n\n\n<p>\u203b\ud2b8\ub7ec\ube14\uc288\ud305(troubleshooting)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">1.\uc544\ub798\uc640 \uac19\uc740 \uba54\uc138\uc9c0\uac00 \ubc1c\uc0dd\uc2dc(When the following message occurs:)\n<strong>The requested apache plugin does not appear to be installed <\/strong>\n\npython3-certbot-apache\ub97c \uc124\uce58 \ud569\ub2c8\ub2e4.\n(Install python3-certbot-apache.)\n#apt-get install python3-certbot-apache<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s Encrypt\ub294 \ubb34\ub8cc\ub85c \uc0ac\uc6a9\uac00\ub2a5\ud55c SSL \uc778\uc99d\uc11c \uc785\ub2c8\ub2e4.SSL\uc778\uc99d\uc774\ub780 \uc6f9\uc0ac\uc774\ud2b8\uc640 \uc6f9\uc11c\ubc84 \uc0ac\uc774\uc758 \ub370\uc774\ud130\ub97c \uc554\ud638\ud654 \ud558\ub294 \uae30\uc220\uc785\ub2c8\ub2e4. \uc27d\uac8c \uc598\uae30\ud574\uc11c \uc6b0\ub9ac\uac00 \uc778\ud130\ub137\uc5d0 \uc811\uc18d\ud560\ub54c http:\/\/\ud504\ub85c\ud1a0\ucf5c\uc744 https:\/\/\ud504\ub85c\ud1a0\ucf5c\ub85c \ubc14\uafd4\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \uac83\uc774\ub77c\uace0 \uc0dd\uac01\ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.\uba3c\uc800 Apache\ub294 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. Let&#8217;s Encrypt is a free SSL certificate. SSL authentication is a technology that encrypts data between a website and a web server.To [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-251","post","type-post","status-publish","format-standard","hentry","category-linux","missing-thumbnail"],"_links":{"self":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=251"}],"version-history":[{"count":19,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/251\/revisions"}],"predecessor-version":[{"id":277,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/251\/revisions\/277"}],"wp:attachment":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}