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?
2
Answers
I just came across this page:
https://certbot.eff.org/docs/install.html#certbot-auto
certbot-auto script " is no longer supported. "
Follow instructions here :
https://certbot.eff.org/
Example of SOLUTION on Ubuntu :
Cerbot + Nginx :
Execute the following instructions on the command line on the machine to ensure that you have the latest version of snapd.
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.
Run this command on the command line on the machine to install 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.
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.
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.
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:
If that command completes without errors, your certificates will renew automatically in the background.
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