{"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 class=\"wp-block-paragraph\">In\u0161tal\u00e1cia Lets Encrypt v debian 10 s vyu\u017eit\u00edm apache2.4<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">Aktualiz\u00e1cia repozit\u00e1rov<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">Kontrola apache2 konfigur\u00e1acie<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apache2ctl configtest<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Re-\u0161tartovanie apache2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl reload apache2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">Obnovenie certifik\u00e1tu je automatick\u00e9 30 dni pred jeho koncom. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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=\"vZfBbuM2EIbv+xQDnVpgZdmyEydpYqDY9lC02C26wB56KcYUY3EtkQJJyZbfoQ\/hQw97yAsssL2oea8OaSdWkiKJFGx9sWlL\/\/ycbzgavzovgGVozEWwKsJ5ptgyLFDjQmORBrOf5PXWYtZsmUD4hVsDP0qm68JCBQmfC5QwGoKBqi6v\/xa2ucoBC2QpjweT86iYvaLX4xF+1SJBKTjdZ0HzQm1IZqtVdbhd8wcCTCU8mJ27t5lEqSDilkUkERlVasbNIBPGnkf+AlLSvIuVgw18tgvKBqTWFmdRdGmLwS45A6UX0T5P89JYrsM5smWhNGUyRyE7Ovx+aUvMxGbHo1e2XJrLIkHLO8a+UwpvuLZzpSy4cHvinSwIaUgsg6K2qZIh83o23ElBaB+kq6PbD0K7VKXKWJAIxFXlYLiuuC4hL01zBWpuMFUVXv9FV5Cbijv27\/01bzHnvQrQZyIywnITYoUiw3nGo5qK8o9EOeIDpuTlf2zmiRgHW9AS+65jVn5W0mqV4Q0yWJIZsSh1s0UmeAeC\/nZmM2Begbbb9bT9xkNXUNoSgt3571ZFpqYCyZ0FzTOFyUGgW6HUtlLao3dFKC7FstnaEgqVK6ZK2FcmLDPBpaVKUnnzSdbQxgAIq9Vq0P7G1Ridk3lN1bWh0kq45NQzf3j7\/tkbvIkc3p6K5E5QWt6L+nDrHu7DMCLHBQcjNjzMUC9cSJEvwKVRyMVFkOGmDqjBk5xfo6klC2AlEpteBCen4wBSLhappcUkAKPZRbBvfhRgMchTNFTqvIwoJFWIpdRFZeH0TRQP42E0HEWjcDz4WCwCwIx0gpZJby+Mpztpw+1O3fSRB3K7eg297g\/Hw+E6PvEy9LG3zPT4ZD2NvQx9XAU+87RVLK16Dd\/kuA59as+c2WL9LT1ThxVF86sAopnjyKhtCiVnv+PuIcWJeFbCedT6zS\/Krwr\/eHpygD8aHfelHz9J\/+gl9PfyQHZ7YYv39I9Gt\/QfwUZRWtj86j62d4lpPqe0Sd9qMsG4\/OdP2XxhKbWaJKfmopb\/O8vJaZvlsC\/L8ZMsj1\/CcnzDcnLai+W4G8vJaZulW3mWXx\/HaBhPDjymx+2z1W3HkzAOndqaRJ4gc\/ISMvfjgFv0YuSUfLeNJy9qt07Htduj6eS23\/bU2W1odPRotbgNt8plt7x\/9j80X0zGkyWNoIVurpa4KeEjjQOH0cMbhMqNq+hnaurxzef9sFEOHuvyj0437+ZSVQ+HGwrutpKjFWzZfKJsQyKFC5zQb6lycyFTuYtbPGuGIrPWh8lRls02k05E7YPjWeeZh7LCVzT5JLoOddn1bxL1WksjrfSO3uwl2wno7CfhGbc0gfk\/KqF0YzhfY15knOb5\/K69fwE=\" \/> \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\">\u00a0\u00a0<\/span> \t\t<span class=\"pdf24Plugin-cp-text\">Send article as PDF<\/span> \t\t<span class=\"pdf24Plugin-cp-space\">\u00a0\u00a0<\/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 \u00a0\u00a0 Send article as PDF \u00a0\u00a0\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}]}}