Skip to content

Commit 552fdbf

Browse files
committed
Update to latest let's encrypt / certbot steps.
1 parent 48cf78f commit 552fdbf

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

app/ch15_deploy/final/server/server_setup.sh

+22-4
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,27 @@ update-rc.d nginx enable
7474
service nginx restart
7575

7676

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

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

0 commit comments

Comments
 (0)