Skip to content

Instantly share code, notes, and snippets.

@swade1987
Created April 25, 2016 18:33
Show Gist options
  • Save swade1987/c9952606254979531a49dddaa76fa7cb to your computer and use it in GitHub Desktop.
Save swade1987/c9952606254979531a49dddaa76fa7cb to your computer and use it in GitHub Desktop.
Make sure your web server displays the following content at
http://bamboo2.ukpds.org/.well-known/acme-challenge/49rG6t5UVV8jJRd8fUdGTB9_hDon-_5kCymSssiL84U before continuing:
49rG6t5UVV8jJRd8fUdGTB9_hDon-_5kCymSssiL84U.yiFi7876uY_e1VkyWsO8Adu7HrArr8n1k_i0q0ZVpUg
If you don't have HTTP server configured, you can run the following
command on the target server (as root):
mkdir -p /tmp/letsencrypt/public_html/.well-known/acme-challenge
cd /tmp/letsencrypt/public_html
printf "%s" 49rG6t5UVV8jJRd8fUdGTB9_hDon-_5kCymSssiL84U.yiFi7876uY_e1VkyWsO8Adu7HrArr8n1k_i0q0ZVpUg > .well-known/acme-challenge/49rG6t5UVV8jJRd8fUdGTB9_hDon-_5kCymSssiL84U
# run only once per server:
$(command -v python2 || command -v python2.7 || command -v python2.6) -c \
"import BaseHTTPServer, SimpleHTTPServer; \
s = BaseHTTPServer.HTTPServer(('', 80), SimpleHTTPServer.SimpleHTTPRequestHandler); \
s.serve_forever()"
Press ENTER to continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment