Created
June 11, 2018 20:50
-
-
Save BenFausch/c2416aeb7829b1e993addb2c7ae51ae6 to your computer and use it in GitHub Desktop.
webfaction letsencrypt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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