Fundamentos de Deployment y Control de Versiones
¿Cómo Desplegar Aplicaciones Python?
Introducción a WSGI y ASGI para aplicaciones Python
Control de versiones en Git y prácticas de versionamiento en Python
Configuración de entornos de desarrollo para despliegue
Buenas prácticas en el uso de variables de entorno
Configuración de Servidores en la Nube para Despliegue
Fundamentos de servidores y conexión por SSH
Creación y configuración de instancias en AWS, Linode y DigitalOcean
Creación de instancias en AWS
Configuración de SSH
Instalación y gestión de paquetes en el servidor
Configuración de DNS para dominios en despliegue
Certificados SSL con Let’s Encrypt para seguridad en producción
Administración y Optimización de Servidores para Producción
Configuración de servidores web y aplicaciones con WSGI y ASGI
¿Cómo configurar UWSGI con Python y NginX en producción?
Configuración de Proxy Reverso en Nginx para Aplicaciones WSGI
Manejo de errores y configuración de logs en producción
Monitoreo de aplicaciones Python en producción usando Sentry
¿Cómo configurar un archivo .env en Django para producción?
Integración de Servicios Complementarios para Aplicaciones Python
Configuración de Bases de Datos PostgreSQL en el Servidor de la Aplicación
Configuración de Bases de Datos en Producción con Amazon RDS
Servicios para archivos estáticos (S3, Cloudflare)
Automatización y CI/CD para Despliegues Python
Automatización de despliegue con Ansible
You don't have access to this class
Keep learning! Join and start boosting your career
Nowadays, maintaining security when visiting websites is essential. Using port 80 with the HTTP protocol is no longer secure, which is why most sites have migrated to port 443 using an SSL certificate. This allows an encrypted connection between the user's browser and the server, protecting information from interception. Here we will show you how to set up a certificate with Let's Encrypt on your server using Servbot.
To generate an SSL certificate, you must first install Servbot, an automation tool that facilitates this process. Along with Servbot, you also need to install some dependencies, especially if your server is Nginx.
Open your server's terminal.
Run the following command to install Servbot and Python 3:
sudo apt install certbot python3-certbot-nginx
Once installed, make a note of all the packages installed for future reference.
Setting up the certificate is a critical step. Once the necessary tools are installed, follow these steps:
Run the Servbot command, specifying the web server you are using:
sudo certbot --nginx
Enter a valid email address. This will be used for notifications about certificate expiration or security issues.
Accept the terms and conditions.
Decide if you want to notify Servbot once your certificate is successfully created, which is useful for statistics.
It is important to select the correct domain to which you want to apply the certificate. If there are several configured on your server, you will need to choose the right one. The system will show you the available domains for you to select yours.
After generating the certificate, Servbot will inform you in which directories the configuration files were created. You can check and verify the modification of these files to make sure that everything is configured correctly:
vim
.https://
to confirm that the certificate is valid and working.You can check the certificate details and validity directly from the browser.
Automatic certificate renewal is crucial to avoid service interruptions. Configure your server for automatic renewals by simulating the process:
On your server, exit the configuration file and run the following command:
sudo certbot renew --dry-run
This command performs a certificate renewal simulation, ensuring that when the time comes, the process will run smoothly.
An SSL certificate not only protects the integrity of the data between the browser and the server, but also builds trust among your users. Be sure to continually test and review your settings to always maintain the highest level of security. We invite you to install Servbot and generate a new certificate on your server right now!
Contributions 1
Questions 0
Want to see more contributions, questions and answers from the community?