- SSH into the ubuntu server.
- install snapd
==>
==> sudo apt install snapd
to test if snapd installed correctly, do this:
==>
hello-world 6.4 from canonical installed.
==> hello-world
Hello world! - update snapd.
==> sudo snap install core; sudo snap refresh core - Remove any pre installed versions of certbot.
==> sudo apt-get remove certbot - Install classic certbot with snap
==> sudo snap install –classic certbot - Check if certbot is installed correctly.
==> sudo ln -s /snap/bin/certbot /usr/bin/certbot - Generate and install certificate.
==> sudo certbot –nginx
now follow the instructions from certbot to complete the installation.
when finished. it will add necessory stuff to ngnix config file.
it will also create a kron job that will renew the ssl before expiry. - If needed use this to test if the auto renewal is working.
==> sudo certbot renew –dry-run
How to install Let’s Encrypt SSL with auto-renewal – Ubuntu Server
23
Mar