Skip to content

Commit 4a37bab

Browse files
committed
Update to the latest let's encrypt install steps.
1 parent f44aed8 commit 4a37bab

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

ch08-deployment/server/scripts/server_setup.sh

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,27 @@ update-rc.d nginx enable
7070
service nginx restart
7171

7272

73-
# Optionally add SSL support via Let's Encrypt:
74-
# https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04
73+
# Optionally add SSL support via Let's Encrypt
74+
# NOTE: These steps have changed since the recording.
7575

76-
add-apt-repository ppa:certbot/certbot
77-
apt install python3-certbot-nginx
76+
####### NEW STEPS ###############################################
77+
# See https://certbot.eff.org/instructions?ws=nginx&os=ubuntufocal&tab=standard
78+
79+
# Because always a good idea :)
80+
apt update
81+
apt upgrade
82+
83+
# Not need even though it's in the instructions, is installed on Ubuntu
84+
# Skip -> install snapd https://snapcraft.io/docs/installing-snapd
85+
86+
snap install --classic certbot
87+
ln -s /snap/bin/certbot /usr/bin/certbot
7888
certbot --nginx -d weatherapi.talkpython.com
89+
90+
####### THESE ARE THE OLD STEPS #################################
91+
#
92+
## https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04
93+
#
94+
#add-apt-repository ppa:certbot/certbot
95+
#apt install python-certbot-nginx
96+
#certbot --nginx -d weatherapi.talkpython.com

0 commit comments

Comments
 (0)