[PROMOÇÃO] Assine com + 30% de desconto ANUAL MENSAL (últimas horas)
Lucas Silva
Criador Lucas Silva 25/11/2023

carlos@Docker:~# sudo add-apt-repository ppa:certbot/certbot The PPA has been DEPRECATED. To get up to date instructions on how to get certbot for your systems, please see https://certbot.eff.org/docs/install.html. More info: https://launchpad.net/~certbot/+archive/ubuntu/certbot Press [ENTER] to continue or Ctrl-c to cancel adding it. Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease Hit:3 https://download.docker.com/linux/ubuntu focal InRelease Get:4 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Hit:5 https://deb.nodesource.com/node_16.x focal InRelease Hit:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease Ign:7 http://ppa.launchpad.net/certbot/certbot/ubuntu focal InRelease Hit:8 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease Err:9 http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release 404 Not Found [IP: 185.125.190.80 80] Reading package lists... Done E: The repository 'http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

Manager Carlos Ferreira 25/11/2023

Olá, Lucas! Tudo bem?

Segue um script shell para gerar o certificado ssl:

#!/bin/bash

DOMAIN="dominioapontadoparaoipdoseuservidor.com.br"

EMAIL="[email protected]"

sudo docker exec -it nginx certbot --nginx -d $DOMAIN --email $EMAIL --non-interactive --agree-tos

 

Esse curso aqui está mais atualizado: https://academy.especializati.com.br/curso/ambiente-docker-na-digital-ocean

Carlos Ferreira
Criador Lucas Silva 25/11/2023

Alternativa que encontrei e funcionou, muito semelhante em suas configurações do video.

 

sudo apt install python3 python3-venv libaugeas0 &&  
sudo python3 -m venv /opt/certbot/ &&  
sudo /opt/certbot/bin/pip install --upgrade pip &&  
sudo /opt/certbot/bin/pip install certbot certbot-nginx &&  
sudo ln -s /opt/certbot/bin/certbot /usr/bin/certbot  

sudo certbot --nginx
Lucas Silva
Sabe a Solução? Ajude a resolver!

Precisa estar logado para conseguir responder a este ticket!

Clique Aqui Para Entrar!