Skip to content

Instantly share code, notes, and snippets.

@ryanpadilha
Created January 9, 2018 20:36
Show Gist options
  • Save ryanpadilha/bc5c4ddad744a5edebdbf56e63ec38e5 to your computer and use it in GitHub Desktop.
Save ryanpadilha/bc5c4ddad744a5edebdbf56e63ec38e5 to your computer and use it in GitHub Desktop.
Certbot is part of EFF’s effort to encrypt the entire Internet
#!/bin/bash
#
# Installation of Certbot for Ubuntu 16.04 (xenial)
# https://certbot.eff.org/#ubuntuxenial-nginx
add-apt-repository ppa:certbot/certbot
apt-get update
apt-get install -y software-properties-common
apt-get install -y python-certbot-nginx
# get a certificate and edit Nginx configuration automatically
certbot --nginx
# make the changes to your Nginx configuration by hand
certbot --nginx certonly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment