Skip to content

Instantly share code, notes, and snippets.

@ManishLSN
Created March 12, 2018 12:59
Show Gist options
  • Save ManishLSN/bb5096ec736cf9d8831cb840469accd0 to your computer and use it in GitHub Desktop.
Save ManishLSN/bb5096ec736cf9d8831cb840469accd0 to your computer and use it in GitHub Desktop.
install lets encrypt certificate for 90 days free
// INSTALL LETSENCRYPT ON UBUNTU 16.04
sudo apt update && sudo apt upgrade
# IGNORE if git already installed (to check git --version)
sudo apt-get install git
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
cd /opt/letsencrypt
sudo -H ./letsencrypt-auto certonly --standalone -d example.com -d www.example.com
# write email address if asked.
# press enter then agree terms condition then n for saying not to share email address.
#check your Certificate domain
sudo ls /etc/letsencrypt/live
# all the domain covered under this single certificate
./certbot-auto certificates
#####################################################
#### For Renew in 90 days lifespan
#####################################################
cd /opt/letsencrypt
sudo -H ./letsencrypt-auto certonly --standalone --renew-by-default -d example.com -d www.example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment