Skip to content

Instantly share code, notes, and snippets.

@zaskem
Last active October 4, 2020 18:10
Show Gist options
  • Save zaskem/9b32ec7bc0a85c9292459eb6188320cf to your computer and use it in GitHub Desktop.
Save zaskem/9b32ec7bc0a85c9292459eb6188320cf to your computer and use it in GitHub Desktop.
Companion/Quickstart bash script to manually install and use Certbot with key command steps as outlined in the post https://mzonline.com/blog/2020-10/moving-certbot-lets-encrypt
# Update Ubuntu and obtain/install/update Certbot
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
# Make a manual certificate request
sudo certbot certonly --manual -d superdomain.net
# Spit out the freshtly-minted certificate:
sudo more /etc/letsencrypt/live/superdomain.net/cert.pem
# Spit out the certificate key:
sudo more /etc/letsencrypt/superdomain.net/privkey.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment