4

I am following this guide to install certbot and create ssl cert.

But when I run wget https://dl.eff.org/certbot-auto, error shows:

--2021-07-09 02:16:27--  https://dl.eff.org/certbot-auto
Resolving dl.eff.org (dl.eff.org)... xxx.xxx.xx.xxx, xxxx:xxxx:xx::xxx
Connecting to dl.eff.org (dl.eff.org)|xxx.xxx.xx.xxx|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-07-09 02:16:27 ERROR 404: Not Found.

How to solve it?

CCCC
  • 5,665
  • 4
  • 41
  • 88

2 Answers2

0

I just came across this page:

https://certbot.eff.org/docs/install.html#certbot-auto

We used to have a shell script named certbot-auto to help people install Certbot on UNIX operating systems, however, this script is no longer supported. If you want to uninstall certbot-auto, you can follow our instructions here.

Nick Manning
  • 2,828
  • 1
  • 29
  • 50
0

certbot-auto script " is no longer supported. "

Example of SOLUTION on Ubuntu : Cerbot + Nginx :

**install snapd**

sudo apt update
sudo apt install snapd

Execute the following instructions on the command line on the machine to ensure that you have the latest version of snapd.

sudo snap install core; sudo snap refresh core

Remove certbot-auto and any Certbot OS packages

If you have any Certbot packages installed using an OS package manager like apt, dnf, or yum, you should remove them before installing the Certbot snap to ensure that when you run the command certbot the snap is used rather than the installation from your OS package manager. The exact command to do this depends on your OS, but common examples are sudo apt-get remove certbot, sudo dnf remove certbot, or sudo yum remove certbot.

If you previously used Certbot through the certbot-auto script, you should also remove its installation by following the instructions here.

  • Install Certbot

Run this command on the command line on the machine to install Certbot.

sudo snap install --classic certbot

Prepare the Certbot command Execute the following instruction on the command line on the machine to ensure that the certbot command can be run.

sudo ln -s /snap/bin/certbot /usr/bin/certbot

Choose how you'd like to run Certbot Either get and install your certificates...

Run this command to get a certificate and have Certbot edit your Nginx configuration automatically to serve it, turning on HTTPS access in a single step.

 sudo certbot --nginx

Or, just get a certificate

If you're feeling more conservative and would like to make the changes to your Nginx configuration by hand, run this command.

sudo certbot certonly --nginx

Test automatic renewal The Certbot packages on your system come with a cron job or systemd timer that will renew your certificates automatically before they expire. You will not need to run Certbot again, unless you change your configuration.

You can test automatic renewal for your certificates by running this command:

  sudo certbot renew --dry-run

If that command completes without errors, your certificates will renew automatically in the background.

  • Confirm that Certbot worked

To confirm that your site is set up properly, visit https://yourwebsite.com/ in your browser and look for the lock icon in the URL bar.

It works ! enjoy and donate to Certbot and EFF