Executando verificação de segurança...
1

[Dica] Renovar certificado (Amazon LightSail / Bitnami / Let's Encrypt)

As vezes que tentei configurar o certificado e renovar foram bem difíceis.
Encontrei este site
https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/

Que me ensinou o comando
sudo /opt/bitnami/bncert-tool

Apareceu um menu, escolhi a opção que me atendia.
Só informei o domínio do site, depois meu e-mail.
Pronto! Certificado renovado.
Parece que também configurou um job com o cron para renovar automático também.

Fica a dica para quem possui o serviço Amazon LightSail e precisa renovar o certificado.

Saída do terminal

Warning: Custom redirections were detected in your web server configuration files. 
This tool will not be able to enable/disable redirections.
Press [Enter] to continue:

An updated version is available. 
Would you like to download it? You would need to run it manually later. [Y/n]: n

----------------------------------------------------------------------------
Welcome to the Bitnami HTTPS Configuration tool.
----------------------------------------------------------------------------
Domains
Please provide a valid space-separated list of domains for which you wish to configure your web server.
Domain list []: dominio.com.br www.dominio.com.br

Warning: A certificate for the list of domains you entered already exists. 
It will be used instead of generating a new one.
Press [Enter] to continue:
----------------------------------------------------------------------------
Changes to perform
The following changes will be performed to your Bitnami installation:
1. Stop web server
2. Configure web server to use an existing Let's Encrypt certificate and renew: /opt/bitnami/letsencrypt/certificates/dominio.com.br.crt
3. Configure a cron job to automatically renew the certificate each month
4. Configure web server name to: dominio.com.br
5. Start web server once all changes have been performed
Do you agree to these changes? [Y/n]: Y
----------------------------------------------------------------------------
Create a free HTTPS certificate with Let's Encrypt
Please provide a valid e-mail address for which to associate your Let's Encrypt certificate.
Domain list: dominio.com.br www.dominio.com.br
Server name: dominio.com.br
E-mail address []: [email protected]
The Let's Encrypt Subscriber Agreement can be found at:
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf
Do you agree to the Let's Encrypt Subscriber Agreement? [Y/n]: Y
----------------------------------------------------------------------------
Performing changes to your installation
The Bitnami HTTPS Configuration Tool will perform any necessary actions to your Bitnami installation. 
This may take some time, please be patient.
----------------------------------------------------------------------------
Success
The Bitnami HTTPS Configuration Tool succeeded in modifying your installation.
The configuration report is shown below.
Backup files:* 
/opt/bitnami/apache2/conf/httpd.conf.back.202308090128* 
/opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf.back.202308090128* 
/opt/bitnami/apache2/conf/bitnami/bitnami.conf.back.202308090128
Find more details in the log file:
/tmp/bncert-202308090128.log
If you find any issues, please check Bitnami Support forums at:
https://community.bitnami.com
Press [Enter] to continue:
Carregando publicação patrocinada...