cd /home/ubuntu/hugo-www
sudo python -m 'http.server'80
6. generate the cert
Open another terminal
1
2
3
4
5
sudo apt install certbot
sudo certbot certonly --webroot
Please enter in your domain name(s): 1genomics.com
Input the webroot for 1genomics.com: /home/ubuntu/hugo-www
The output message should be like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/1genomics.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/1genomics.com/privkey.pem
Your cert will expire on 2023-03-15. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew *all* of your certificates, run
"certbot renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
7. cleanup
Ctrl-C to terminate the python application “sudo python -m ‘http.server’ 80”