{"id":270,"date":"2020-01-19T13:51:16","date_gmt":"2020-01-19T12:51:16","guid":{"rendered":"http:\/\/blog.mhasin.eu\/?p=270"},"modified":"2020-03-08T21:03:34","modified_gmt":"2020-03-08T20:03:34","slug":"debian-10-lets-encript-apache2","status":"publish","type":"post","link":"https:\/\/blog.mhasin.eu\/?p=270","title":{"rendered":"Debian 10 Lets Encript apache2"},"content":{"rendered":"\n<p>In\u0161tal\u00e1cia Lets Encrypt v debian 10 s vyu\u017eit\u00edm apache2.4<\/p>\n\n\n\n<p>Pridanie apt repozit\u00e1rov<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/apt\/sources.list<\/code><\/pre>\n\n\n\n<p>Pridanie repozit\u00e1ra<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb http:\/\/ftp.debian.org\/debian buster-backports main<\/code><\/pre>\n\n\n\n<p>Aktualiz\u00e1cia repozit\u00e1rov<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update<\/code><\/pre>\n\n\n\n<p>In\u0161tal\u00e1cia Certboot pre apache2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install python-certbot-apache -t buster-backports<\/code><\/pre>\n\n\n\n<p>Virtualhost na danom serveru mus\u00ed obsahova\u0165 nastavenie ServerName<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/apache2\/sites-available\/your_domain.conf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>ServerName your_domain;<\/code><\/pre>\n\n\n\n<p>Kontrola apache2 konfigur\u00e1acie<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apache2ctl configtest<\/code><\/pre>\n\n\n\n<p>Re-\u0161tartovanie apache2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl reload apache2<\/code><\/pre>\n\n\n\n<p>Vytvorenie certifik\u00e1tu pomocou certbot klienta dom\u00e9ny  your_domain a www.your_domain  musia by\u0165 zavedene v DNS<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>certbot --apache -d your_domain -d www.your_domain<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"893\" height=\"84\" src=\"http:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/1-3.jpg\" alt=\"\" class=\"wp-image-274\" srcset=\"https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/1-3.jpg 893w, https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/1-3-300x28.jpg 300w, https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/1-3-768x72.jpg 768w\" sizes=\"auto, (max-width: 893px) 100vw, 893px\" \/><figcaption>Zadanie emailu <\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"678\" height=\"116\" src=\"http:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/2-3.jpg\" alt=\"\" class=\"wp-image-275\" srcset=\"https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/2-3.jpg 678w, https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/2-3-300x51.jpg 300w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><figcaption>Ods\u00fahlasenie licen\u010dn\u00fdch podmienok<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"110\" src=\"http:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/3-3.jpg\" alt=\"\" class=\"wp-image-276\" srcset=\"https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/3-3.jpg 649w, https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/3-3-300x51.jpg 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"766\" src=\"https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/4-2-1024x766.jpg\" alt=\"\" class=\"wp-image-278\" srcset=\"https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/4-2-1024x766.jpg 1024w, https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/4-2-300x224.jpg 300w, https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/4-2-768x574.jpg 768w, https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/01\/4-2.jpg 1150w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>V\u00fdsledkom pr\u00edkazu je vytvorenie https vhosta pre dan\u00fa dom\u00e9nu. <\/figcaption><\/figure>\n\n\n\n<p>Obnovenie certifik\u00e1tu je automatick\u00e9 30 dni pred jeho koncom. <\/p>\n\n\n\n<p>Vyn\u00fatenie manu\u00e1lneho obnovenia:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>certbot renew --dry-run<\/code><\/pre>\n\n\n\n<p>Odstr\u00e1nenie Certbot certifik\u00e1tu<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>certbot delete --cert-name example.com<\/code><\/pre>\n<div class=\"pdf24Plugin-cp\"> \t<form name=\"pdf24Form0\" method=\"post\" action=\"https:\/\/doc2pdf.pdf24.org\/wordpress.php\" target=\"pdf24PopWin\" onsubmit=\"var pdf24Win = window.open('about:blank', 'pdf24PopWin', 'resizable=yes,scrollbars=yes,width=600,height=250,left='+(screen.width\/2-300)+',top='+(screen.height\/3-125)+''); pdf24Win.focus(); if(typeof pdf24OnCreatePDF === 'function'){void(pdf24OnCreatePDF(this,pdf24Win));}\"> \t\t<input type=\"hidden\" name=\"blogCharset\" value=\"Cw1x07UAAA==\" \/><input type=\"hidden\" name=\"blogPosts\" value=\"MwQA\" \/><input type=\"hidden\" name=\"blogUrl\" value=\"yygpKSi20tdPyslP18vNSCzOzNNLLQUA\" \/><input type=\"hidden\" name=\"blogName\" value=\"c\/LxdwcA\" \/><input type=\"hidden\" name=\"blogValueEncoding\" value=\"gzdeflate base64\" \/><input type=\"hidden\" name=\"postId_0\" value=\"MzI3AAA=\" \/><input type=\"hidden\" name=\"postTitle_0\" value=\"c0lNykzMUzA0UPBJLSlWcM1LLsosKFFILEhMzkg1AgA=\" \/><input type=\"hidden\" name=\"postLink_0\" value=\"yygpKSi20tdPyslP18vNSCzOzNNLLdW3L7A1MjcAAA==\" \/><input type=\"hidden\" name=\"postAuthor_0\" value=\"y00syfcwNAIA\" \/><input type=\"hidden\" name=\"postDateTime_0\" value=\"MzIwMtA1MNQ1tFQwNLYyMLQyNAMA\" \/><input type=\"hidden\" name=\"postContent_0\" value=\"vZfBbttGEIbveYoBTy0QihIlS7IrCyjSHooWSdEAOfRSrJZrcaPlLrG7pES9Qx5Chx5y8AsESC+M3yuzK9miLcGOaKS+WGuS\/z8z33A0fjHJp7\/Jm40lot5QTuAPZg38KqmucgslJGzGiYReFwyUVXHzH7f1dQYkJzRlcWcwifLpC\/xBmT81T4jkDC9a0CxXa7x3o1W5v0czoIIYcxks83AmFF2EVCUsmE7cr6kkUkHELI1QIjKq0JSZjuDGTiJ\/AyppduC39yLfbIV5QWptfhFFVzbvbNPsKD2PdhnPCmOZDmeELnKlsSYZ4fJYGD8vbEEEX2\/L1ypvV7AiT4hlxwzu4XnFtJ0pZcFp7iic5MOlQTEBeWVTJUPq9Wy4lYLQHiR+LKR3XLukU2UsSAKIQWVgmC6ZLiArTH0NamZIqkpy8y\/egZYlc6je+ntek4y1agqfbmS4ZSYkJeGCzASLKmyUfxLlAHWokldHIn7CYx8WNMR+Opb670parQS5LT4s0JHPC11vCOXsBBb+cWoFUK+AOR1t879Y6Phri8Xcvl2nQTcV8sycj2ZCkWQvcIRrZUulPSnXGPyKL+qNLSBXmaKqgF23wEJwJi2CV1n9UVbQrBoQWC6XneZfXEtg784qbIY1dkLCJMPZ8svrt9+cxa1zeNepyT1TPD5wPczPYzq04RmZMzB8zUJB9NxZ8mwOrlZczi8DQdZVgIMQ5fyZmErSAJY8sellMD7vB5AyPk8tHgYBGE0vg91oQYN5J0uJwc5kRYSWyNpi6aIid\/omirtxN+r2ol7Y77zP5wEQgTpBI0gfXhiPttKG2a26aSMPGO3yJbR6Pux3u6t47GXwY2uZ0XC8GsVeBj8uA195TJUUVr2EHzKyCn1pL1yw+epH\/O7plujmTwFEU8eR4ijjSk7\/JtuvAIbERQGTqHHNH4rvCn84Gu\/h93rDtvTjJ+mfPYf+Th4w3FbY4h39s94d\/UewoUsDmz89xPYmMfWnFJP0o0ZwyuSXD7L+TFMcNUmGw0Ut\/neWg\/Mmy25blv0nWQ6fw7J\/y3Jw3opl\/zSWg\/MmS3fyLL8\/jl43Hux5jIbNd+u0jAdhHDq1FYo8QWb8HDIPfcAdWjFySn7axoNnjVun48bt2WhwN29b6mwT6p092i0u4Ua7bI8P3\/139WcjWLLAjTHX9fWCrAt4j+vAfvXwAULptkvi91yc8fWn3bJRdB6b8vn0zUyq8nCDQQcXb0Ysp4v6I5YUEsmdeoLXUuXWOKoyJ57vtyG0tV4rI7KoN0K6O9XOgVycvL1gfmyJO0yiq1AXR\/+dwNFocZeU3vbV7rlmKiebJkwwiwuT3\/VD6ZZctiJZLhhuy9n9GL4C\" \/> \t\t<a href=\"https:\/\/www.pdf24.org\" target=\"_blank\" title=\"www.pdf24.org\" rel=\"nofollow\"><img src=\"https:\/\/blog.mhasin.eu\/wp-content\/plugins\/pdf24-post-to-pdf\/img\/pdf_32x32.png\" alt=\"\" border=\"0\" height=\"32\" \/><\/a> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<span class=\"pdf24Plugin-cp-text\">Send article as PDF<\/span> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<input class=\"pdf24Plugin-cp-input\" style=\"margin: 0px;\" type=\"text\" name=\"sendEmailTo\" placeholder=\"Enter email address\" \/> \t\t<input class=\"pdf24Plugin-cp-submit\" style=\"margin: 0px;\" type=\"submit\" value=\"Send\" \/> \t<\/form> <\/div>","protected":false},"excerpt":{"rendered":"In\u0161tal\u00e1cia Lets Encrypt v debian 10 s vyu\u017eit\u00edm apache2.4 Pridanie apt repozit\u00e1rov Pridanie repozit\u00e1ra Aktualiz\u00e1cia repozit\u00e1rov In\u0161tal\u00e1cia Certboot pre apache2 Virtualhost na danom serveru mus\u00ed obsahova\u0165 nastavenie ServerName Kontrola apache2 konfigur\u00e1acie Re-\u0161tartovanie apache2 Vytvorenie certifik\u00e1tu pomocou certbot klienta dom\u00e9ny your_domain a www.your_domain musia by\u0165 zavedene v DNS Obnovenie certifik\u00e1tu je automatick\u00e9 30 dni pred jeho koncom. Vyn\u00fatenie manu\u00e1lneho obnovenia: Odstr\u00e1nenie Certbot certifik\u00e1tu &nbsp;&nbsp; Send article as PDF &nbsp;&nbsp;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"arc_restricted_post":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=270"}],"version-history":[{"count":7,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":685,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions\/685"}],"wp:attachment":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}