{"id":82,"date":"2024-12-27T18:56:06","date_gmt":"2024-12-27T21:56:06","guid":{"rendered":"https:\/\/recover.rdconsolo.com.br\/?p=82"},"modified":"2024-12-27T18:56:06","modified_gmt":"2024-12-27T21:56:06","slug":"lets-encrypt-no-ubuntu-20-04-com-apache","status":"publish","type":"post","link":"https:\/\/rdconsolo.com.br\/?p=82","title":{"rendered":"Let`s Encrypt no Ubuntu 20.04 com Apache"},"content":{"rendered":"\n<p>Com o dom\u00ednio registrado no DNS e configurado no Apache na porta 80, segue:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt install certbot python3-certbot-apache\ncertbot --apache -d your_domain -d www.your_domain<\/pre>\n\n\n\n<p>Responda as perguntas do script com aten\u00e7\u00e3o!<\/p>\n\n\n\n<p>Particularmente, prefiro deixar o redirecionamento autom\u00e1tico de http para https.<\/p>\n\n\n\n<p>Os certificados dever\u00e3o ser salvos dentro da pasta \/etc\/letsencrypt\/live\/ automaticamente.<\/p>\n\n\n\n<p>O script criar\u00e1 um novo vhost para o dom\u00ednio dentro do apache se voc\u00ea respondeu para redirecionar para https.<\/p>\n\n\n\n<p>Esse script tamb\u00e9m gera um cron job em \/etc\/cron.d para renovar o certificado automaticamente e pode ser testado com o comando abaixo:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">certbot renew --dry-run<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Com o dom\u00ednio registrado no DNS e configurado no Apache na porta 80, segue: apt install certbot python3-certbot-apache certbot &#8211;apache -d your_domain -d www.your_domain Responda as perguntas do script com aten\u00e7\u00e3o! Particularmente, prefiro deixar o redirecionamento autom\u00e1tico de http para https. Os certificados dever\u00e3o ser salvos dentro da pasta \/etc\/letsencrypt\/live\/ automaticamente. O script criar\u00e1 um &hellip; <a href=\"https:\/\/rdconsolo.com.br\/?p=82\" class=\"more-link\">Continue lendo<span class=\"screen-reader-text\"> &#8220;Let`s Encrypt no Ubuntu 20.04 com Apache&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[11,12,13],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-devops","tag-certbot","tag-https","tag-ssh"],"_links":{"self":[{"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=82"}],"version-history":[{"count":1,"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":84,"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/82\/revisions\/84"}],"wp:attachment":[{"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}