Skip to content

Instantly share code, notes, and snippets.

@selimb86
Last active January 14, 2017 12:30
Show Gist options
  • Save selimb86/5574b786101b7e6dbd6916b56b5db34d to your computer and use it in GitHub Desktop.
Save selimb86/5574b786101b7e6dbd6916b56b5db34d to your computer and use it in GitHub Desktop.
Generate LetsEncrypt certificates for use in your servers
# Download the certbot and make it executable
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
# When using --standalone make sure to turn your servers are down
./certbot-auto certonly --standalone -d hostname.exemple.com
# Certifications will be created under:
# Certificate: /etc/letsencrypt/live/hostname.exemple.com/fullchain.pem;
# AND
# Private Key: /etc/letsencrypt/live/hostname.exemple.com/privkey.pem;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment