Skip to content

Instantly share code, notes, and snippets.

@BenFausch
Created June 11, 2018 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenFausch/c2416aeb7829b1e993addb2c7ae51ae6 to your computer and use it in GitHub Desktop.
Save BenFausch/c2416aeb7829b1e993addb2c7ae51ae6 to your computer and use it in GitHub Desktop.
webfaction letsencrypt
#REF:
#https://github.com/will-in-wi/letsencrypt-webfaction
#To install letsencrypt on webfaction
GEM_HOME=$HOME/.letsencrypt_webfaction/gems RUBYLIB=$GEM_HOME/lib gem2.2 install letsencrypt_webfaction
#Edit $HOME/.bash_profile to add the function below:
function letsencrypt_webfaction {
PATH=$PATH:$GEM_HOME/bin GEM_HOME=$HOME/.letsencrypt_webfaction/gems RUBYLIB=$GEM_HOME/lib ruby2.2 $HOME/.letsencrypt_webfaction/gems/bin/letsencrypt_webfaction $*
}
#Then run
source $HOME/.bash_profile
#to get it to reload bash_profile
#Then run
letsencrypt_webfaction init
#then edit this file
nano ~/letsencrypt_webfaction.toml
#add domains, add login info, rename cert to something useful, then use letsencrypt staging URL to test first
#then run
letsencrypt_webfaction run
#if successful, change to prod URL
#and go into webfaction->websites to use new cert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment