{"id":6228,"date":"2024-10-14T20:22:15","date_gmt":"2024-10-14T18:22:15","guid":{"rendered":"http:\/\/bestlinuxtutorials.com\/?p=6228"},"modified":"2025-04-20T16:02:58","modified_gmt":"2025-04-20T14:02:58","slug":"instalar-certificado-ssl-ubuntu-apache2","status":"publish","type":"post","link":"https:\/\/bestlinuxtutorials.com\/es\/instalar-certificado-ssl-ubuntu-apache2\/","title":{"rendered":"C\u00f3mo instalar un certificado SSL en Ubuntu con Apache2"},"content":{"rendered":"<p>Aprende a instalar un certificado SSL en Ubuntu para el servidor web Apache.<\/p>\n\n\n\n<p>Con un certificado seguro tendr\u00e1s tu dominio como https:\/\/ en lugar de s\u00f3lo http:\/\/ .<\/p>\n\n\n\n<p>Utilizar\u00e1s Let's Encrypt para obtener el certificado para tu servidor Ubuntu.<\/p>\n\n\n\n<p>Primero actualiza tu servidor Ubuntu.<\/p>\n\n\n\n<!--more-->\n\n\n<div class=\"wp-block-syntaxhighlighter-code\" data-no-translation=\"\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt update\n<\/pre><\/div>\n\n\n<p>Ahora instala snapd<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\" data-no-translation=\"\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt install snapd\n<\/pre><\/div>\n\n\n<p>Elimina certbot si ya lo tienes instalado<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\" data-no-translation=\"\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt-get remove certbot\n<\/pre><\/div>\n\n\n<p>Instala la versi\u00f3n cl\u00e1sica de certbot<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\" data-no-translation=\"\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo snap install --classic certbot\n<\/pre><\/div>\n\n\n<p>Ahora puedes crear tu certificado para tu dominio, en el ejemplo utilizo midominio.com pero debes sustituirlo por el tuyo<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\" data-no-translation=\"\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo certbot --apache -d mydomain.com,www.mydomain.com\n<\/pre><\/div>\n\n\n<p>Prueba si el proceso de renovaci\u00f3n funciona<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\" data-no-translation=\"\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n--test renewal\nsudo certbot renew --dry-run\n<\/pre><\/div>\n\n\n<p>Ahora comprueba si tienes un trabajo para hacer renovaciones autom\u00e1ticas de certificados<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\" data-no-translation=\"\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n-- to list all timers\nsudo systemctl list-timers\n<\/pre><\/div>\n\n\n<p>Referencias:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/certbot.eff.org\/instructions?ws=apache&amp;os=snap\" rel=\"nofollow noopener\" target=\"_blank\">Instrucciones de Certbot<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/eff-certbot.readthedocs.io\/en\/stable\/using.html#apache\" rel=\"nofollow noopener\" target=\"_blank\">Certbot Apache<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Learn how to install an SSL certificate on Ubuntu for Apache web server. With a secure certificate you will have your domain as https:\/\/ instead of just http:\/\/ . You&#8217;ll use Let&#8217;s Encrypt to get the certificate for your Ubuntu server. First update your Ubuntu server.<\/p>","protected":false},"author":1,"featured_media":6231,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[12,7],"table_tags":[],"class_list":["post-6228","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-apache","tag-ssl"],"_links":{"self":[{"href":"https:\/\/bestlinuxtutorials.com\/es\/wp-json\/wp\/v2\/posts\/6228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bestlinuxtutorials.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bestlinuxtutorials.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bestlinuxtutorials.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bestlinuxtutorials.com\/es\/wp-json\/wp\/v2\/comments?post=6228"}],"version-history":[{"count":15,"href":"https:\/\/bestlinuxtutorials.com\/es\/wp-json\/wp\/v2\/posts\/6228\/revisions"}],"predecessor-version":[{"id":6288,"href":"https:\/\/bestlinuxtutorials.com\/es\/wp-json\/wp\/v2\/posts\/6228\/revisions\/6288"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bestlinuxtutorials.com\/es\/wp-json\/wp\/v2\/media\/6231"}],"wp:attachment":[{"href":"https:\/\/bestlinuxtutorials.com\/es\/wp-json\/wp\/v2\/media?parent=6228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bestlinuxtutorials.com\/es\/wp-json\/wp\/v2\/categories?post=6228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bestlinuxtutorials.com\/es\/wp-json\/wp\/v2\/tags?post=6228"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/bestlinuxtutorials.com\/es\/wp-json\/wp\/v2\/table_tags?post=6228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}