Diferencia entre revisiones de «Let’s Encrypt SSL»
(Página creada con «Para instalar certificado gratuitos en un servidor Ubuntu debemos instalar una herramienta llamada certboot. Instalar Certboot Aclaracion esta instalación esta hecha p...») |
|||
(No se muestran 3 ediciones intermedias del mismo usuario) | |||
Línea 28: | Línea 28: | ||
certbot --authenticator webroot -w /var/www/html/ejemplo.com -d ejemplo.com --installer apache | certbot --authenticator webroot -w /var/www/html/ejemplo.com -d ejemplo.com --installer apache | ||
se debe aclarar el raiz del sitio y | se debe aclarar el raiz del sitio y luego el dominio. | ||
Saving debug log to /var/log/letsencrypt/letsencrypt.log | |||
Saving debug log to /var/log/letsencrypt/letsencrypt.log | |||
Plugins selected: Authenticator webroot, Installer apache | Plugins selected: Authenticator webroot, Installer apache | ||
Enter email address (used for urgent renewal and security notices) (Enter 'c' to | Enter email address (used for urgent renewal and security notices) (Enter 'c' to | ||
Línea 42: | Línea 43: | ||
https://acme-v02.api.letsencrypt.org/directory | https://acme-v02.api.letsencrypt.org/directory | ||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
(A)gree/(C)ancel: a #Luego tipia la letra (a) para acertar o esta de acuerdo con los terminos let's excript | (A)gree/(C)ancel: a #Luego tipia la letra (a) para acertar o esta de acuerdo con los terminos let's excript | ||
Línea 62: | Línea 65: | ||
Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access. | 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. | 1: No redirect - Make no further changes to the webserver configuration. | ||
Línea 93: | Línea 97: | ||
making regular backups of this folder is ideal. | making regular backups of this folder is ideal. | ||
- If you like Certbot, please consider supporting our work by: | - If you like Certbot, please consider supporting our work by: | ||
Una vez que termine le saldra este mensaje. | Una vez que termine le saldra este mensaje. | ||
Línea 112: | Línea 117: | ||
Estos certificado caducan en tres meses. | Estos certificado caducan en tres meses. | ||
Para poder agregar un nuevo dominio en el servidor ejecutamos el mismo comando | |||
certbot --authenticator webroot -w /var/www/html/ejemplo.com -d ejemplo.com --installer apache |
Revisión actual del 16:18 22 ago 2019
Para instalar certificado gratuitos en un servidor Ubuntu debemos instalar una herramienta llamada certboot.
Instalar Certboot
Aclaracion esta instalación esta hecha para un servidor apache montado en ubuntu 18.04. Si necesitar instalarlo en proxy o hosting entre en la siguientes paginas.
https://certbot.eff.org/lets-encrypt/ubuntubionic-apache
https://www.sslforfree.com/
https://letsencrypt.org/
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install certbot python-certbot-apache
Luego correremos el siguiente comando.
certbot --authenticator webroot -w /var/www/html/ejemplo.com -d ejemplo.com --installer apache
se debe aclarar el raiz del sitio y luego el dominio.
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer apache Enter email address (used for urgent renewal and security notices) (Enter 'c' to cancel): admin@ejemplo.com # Para empezar debemos poner el correo.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 https://acme-v02.api.letsencrypt.org/directory - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: a #Luego tipia la letra (a) para acertar o esta de acuerdo con los terminos let's excript
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Would you be willing 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: y # Aqui esta preguntando si quiere recibir proyecto de Let's excrypt Obtaining a new certificate Performing the following challenges: http-01 challenge for ejemplo.com Using the webroot path /var/www/html/ejemplo.com for all unmatched domains. Waiting for verification... Cleaning up challenges Created an SSL vhost at /etc/apache2/sites-available/ejemplo.com-le-ssl.conf Deploying Certificate to VirtualHost /etc/apache2/sites-available/ejemplo.com-le-ssl.conf Enabling available site: /etc/apache2/sites-available/ejemplo.com-le-ssl.conf
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 new sites, or if you're confident your site works on HTTPS. You can undo this change by editing your web server's configuration. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2 #Aqui puse la opcion 2 donde dice que todo el trafico este dirigido a https:// Redirecting vhost in /etc/apache2/sites-enabled/ejemplo.com.conf to ssl vhost in /etc/apache2/sites-available/ejemplo.com-ssl.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Congratulations! You have successfully enabled https://ejemplo.com
You should test your configuration at: https://www.ssllabs.com/ssltest/analyze.html?d=ejemplo.com - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/ejemplo.com/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/ejemplo.com/privkey.pem Your cert will expire on 2019-07-03. To obtain a new or tweaked version of this certificate in the future, simply run certbot again with the "certonly" option. To non-interactively renew *all* of your certificates, run "certbot renew" - Your account credentials have been saved in your Certbot configuration directory at /etc/letsencrypt. You should make a secure backup of this folder now. This configuration directory will also contain certificates and private keys obtained by Certbot so making regular backups of this folder is ideal. - If you like Certbot, please consider supporting our work by:
Una vez que termine le saldra este mensaje.
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-le
Luego debemos reinicar el apache
service apache2 restart
Listo ya esta navegando por https://
https://ejemplo.com
Estos certificado caducan en tres meses.
Para poder agregar un nuevo dominio en el servidor ejecutamos el mismo comando
certbot --authenticator webroot -w /var/www/html/ejemplo.com -d ejemplo.com --installer apache