/ apache

Instalar certificado SSL en Apache

De la guía Oficial de Certbot

1. Instalamos Certbot

Cerbot nos da certificados SSL gratuitos

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-apache 

2. Añadir SSL

Una vez instalado Certbot, podemos añadir el SSL

Cambiar midominio.com y www.midominio.com con tu nombre de dominio.

sudo certbot --authenticator standalone --installer apache -d midominio.com -d www.midominio.com --pre-hook "apachectl -k stop" --post-hook "apachectl -k start"

Te hará un par de preguntas.

Enter email address (used for urgent renewal and security notices) (Enter 'c' to

Ingresas tu email y [ENTER]

Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at

Respondes A para aceptar y [ENTER]

Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project[...]

Respondes no (porque es publicidad) y [ENTER]

We were unable to find a vhost with a ServerName or Address of www.estela.science.
Which virtual host would you like to choose?

Respondes 2 y [ENTER]

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for [...]

Respondes 2 y [ENTER]


**Congratulations! ** You have successfully enabled https://midominio.com and