- Actualmente tenemos el virtual host de apache así
nano /etc/apache2/sites-available/sada.services.conf
<VirtualHost *:80>
#************************************************************************
#***************** DATOS DEL SITIO WEB ********************************
#************************************************************************
ServerName sada.services
ServerAlias www.sada.services
ErrorLog /var/log/apache2/sada_services_80.casa-error.log
CustomLog /var/log/apache2/sada_services_80.casa-access.log common
#************************************************************************
#******************** DATOS DEL WEBMASTER *****************************
#************************************************************************
ServerAdmin gustavomatamoros@sada.services
Header add Author "Gustavo Matamoros González"
#************************************************************************
#************************ DATOS DEL REDIRECCIONAMIENTO ****************
#************************************************************************
DocumentRoot /var/www/html/Sitios/sada.services
</VirtualHost>
sudo apt update
sudo apt install certbot python3-certbot-apache
sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and security notices)
(Enter 'c' to cancel): gustavo.matamoros@gmail.com
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf. You must
agree in order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Let's Encrypt project and the non-profit organization that
develops Certbot? We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: N
Account registered.
- Y los dominios que deseamos certificar
Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: sada.casa
2: sada.services
3: www.sada.services
4: www.sada.casa
5: sae2.casa
6: www.sae2.casa
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 2 3
Requesting a certificate for sada.services and www.sada.services
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/sada.services/fullchain.pem
Key is saved at: /etc/letsencrypt/live/sada.services/privkey.pem
This certificate expires on 2023-10-19.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
Deploying certificate
Successfully deployed certificate for sada.services to /etc/apache2/sites-available/sada.services-le-ssl.conf
Successfully deployed certificate for www.sada.services to /etc/apache2/sites-available/sada.services-le-ssl.conf
Congratulations! You have successfully enabled HTTPS on https://sada.services and https://www.sada.services
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
* Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
* Donating to EFF: https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -