I put my lets_encrypt directory and script inside this directory:
/data_local/cron_shell/lets_encrypt
The whole process takes about 10 min for 1st timer, and only about 2 min if you are already familiar with all the steps.
But yours can be anywhere, your home directory: (home_dir)/lets_encrypt would be a good choice.
STEP 1 - CREATE LETS_ENCRYPT DIRECTORY and Change Directory to there
mkdir -p /data_local/app/cron_shell/lets_encrypt
cd /data_local/app/cron_shell/lets_encrypt
STEP 2 - DOWNLOAD and Set as Executable
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
STEP 3 - CREATE GET CERTIFICATE SCRIPT (optional)
(I said this is script is optional because you can simply just type and execute this single line into your command line. I like to have this script file available so that it can remind me how to do the installation again in the future)
nano get_cert.shThe content of get_cert.sh looks like this (you must change the domain name to your own domain name)
#!/bin/bash
/data_local/app/cron_shell/lets_encrypt/certbot-auto certonly --webroot -w /data_local/app/www -d yourdomaainname.com dev0.yourdomainname.com
chmod a+x get_cert.sh
STEP 4 - EXECUTE FOR FIRST TIME (GET THE ACTUAL CERTIFICATE)
cd /data_local/app/cron_shell/lets_encrypt ./get_cert.sh