DEV Community

JPBlancoDB
JPBlancoDB

Posted on

3

Configurando LetsEncrypt con Apache en Debian

Siguiendo con el post LetsEncrypt en Nginx vamos a ver como configurarlo con Apache en Debian.

  1. Instalamos certbot en el servidor:
echo 'deb http://ftp.debian.org/debian jessie-backports main' | sudo tee /etc/apt/sources.list.d/backports.
sudo apt-get update
sudo apt-get install python-certbot-apache -t jessie-backports
Enter fullscreen mode Exit fullscreen mode
  1. Configuramos el ServerName de Apache
sudo nano /etc/apache2/sites-available/000-default.conf
Enter fullscreen mode Exit fullscreen mode

Tener en cuenta que 000-default.conf es la configuración por defecto de Apache pero si tienen otro archivo de configuración, deben configurar el ServerName y ServerAlias según corresponda dentro del tag

    ServerName dominio.com
    ServerAlias www.dominio.com
Enter fullscreen mode Exit fullscreen mode
  1. Reiniciamos Apache:
sudo systemctl restart apache2
Enter fullscreen mode Exit fullscreen mode
  1. Configuramos el firewall:

Ejemplo ufw:

sudo ufw allow 'WWW Full'
Enter fullscreen mode Exit fullscreen mode

Ejemplo iptables:

sudo iptables -I INPUT -p tcp --dport 443 -j ACCEPT
Enter fullscreen mode Exit fullscreen mode
  1. Generamos el certificado con certbot:
sudo certbot --apache
Enter fullscreen mode Exit fullscreen mode

Listo! Ya tenemos configurado nuestro certificado con LetsEncrypt y Apache. Recuerden que el certificado hay que renovarlo, para ver el instructivo de como se configura la renovación automática pueden verlo en el paso 5) de Configurando LetsEncrypt con Nginx en Ubuntu.

Cualquier duda o consulta no duden en dejar sus comentarios o bien me pueden consultar vía Twitter.

Saludos!

Image of AssemblyAI

Automatic Speech Recognition with AssemblyAI

Experience near-human accuracy, low-latency performance, and advanced Speech AI capabilities with AssemblyAI's Speech-to-Text API. Sign up today and get $50 in API credit. No credit card required.

Try the API

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay